No description
  • C# 53%
  • JavaScript 43.4%
  • HTML 2.9%
  • CSS 0.5%
  • PowerShell 0.2%
Find a file
2026-01-23 14:25:56 +01:00
App_Start Add project files. 2025-12-29 10:37:54 +01:00
Areas/HelpPage Add project files. 2025-12-29 10:37:54 +01:00
Connected Services/DPLService HL7 changes. 2026-01-13 10:03:13 +01:00
Content Add project files. 2025-12-29 10:37:54 +01:00
Controllers Pool recycle solutions. 2026-01-15 12:45:57 +01:00
Models Izbačen zag doku i dodan logging. 2025-12-30 15:34:50 +01:00
Properties Add project files. 2025-12-29 10:37:54 +01:00
Scripts Add project files. 2025-12-29 10:37:54 +01:00
Services Reprocesuiranje dokumenata na kojima su novi povezani lijekovi. 2026-01-23 14:25:56 +01:00
Views Add project files. 2025-12-29 10:37:54 +01:00
.gitattributes Add .gitattributes and .gitignore. 2025-12-29 10:37:51 +01:00
.gitignore Read me changes. 2026-01-21 12:19:37 +01:00
DPLGateway.csproj Read me changes. 2026-01-21 12:19:37 +01:00
DPLGateway.sln Read me changes. 2026-01-21 12:19:37 +01:00
favicon.ico Add project files. 2025-12-29 10:37:54 +01:00
Global.asax Add project files. 2025-12-29 10:37:54 +01:00
Global.asax.cs Pool recycle solutions. 2026-01-15 12:45:57 +01:00
health.ps1 Pool recycle solutions. 2026-01-15 12:45:57 +01:00
packages.config Izbačen zag doku i dodan logging. 2025-12-30 15:34:50 +01:00
README.md Read me changes. 2026-01-21 12:19:37 +01:00
Web.config Pool recycle solutions. 2026-01-15 12:45:57 +01:00
Web.Debug.config Add project files. 2025-12-29 10:37:54 +01:00
Web.Klaic.config Pool recycle solutions. 2026-01-15 12:45:57 +01:00
Web.Release.config Add project files. 2025-12-29 10:37:54 +01:00
Web.Vukovar.config HL7 changes. 2026-01-13 10:03:13 +01:00

Instaliraj IIS

Provjera da li je IIS instaliran:

Get-WindowsFeature Web-Server | Select Name, InstallState
Get-WindowsFeature Web-Asp-Net45, NET-Framework-45-Features |
    Select Name, InstallState
Get-WindowsFeature Web-AppInit

Instalacija IIS-a i potrebnih komponenti:

Install-WindowsFeature -Name Web-Server -IncludeManagementTools
Install-WindowsFeature Web-Asp-Net45,NET-Framework-45-Features
Install-WindowsFeature Web-AppInit

Baza

  1. U tablici global unijeti parametar DPLToken.
  2. Kada je spremno u tablici skladisni staviti stupac dpl na 'da'.

Pool

  1. Open IIS Manager (press Windows + R, type inetmgr)

  2. In Connections pane, click your server name

  3. Right-click Application PoolsAdd Application Pool...

  4. Configure:

    • Name: DPL
    • .NET CLR Version:
      • ASP.NET Framework: Select matching version (e.g., v4.0)
    • Managed pipeline mode: Integrated (recommended for modern apps)
    • Click OK
  5. Advanced Settings (right-click app pool → Advanced Settings):

    • Process Model:
      • Identity: NetworkService (default, least privileges)
      • Always running

Site

  1. Right-click SitesAdd Website...
  2. Configure:
    • Site name: DPL
    • Application pool: Select DPL (created above)
    • Physical path: C:\inetpub\wwwroot\MyApp (where you published files)
    • Binding:
      • Type: http
      • IP address: All Unassigned (or specific IP)
      • Port: 80 (HTTP)
    • Preload enabled

Permissions

Application pool identity needs access to:

  1. Application files (read/execute)
  2. Temp folder (read/write)
  3. Logs folder (write)
  4. Database (read/write - via connection string)
function Grant-AppPoolAccess {
    param([string]$Path, [string]$AppPoolName)

    $identity = "IIS AppPool\$AppPoolName"
    $acl = Get-Acl $Path

    $rule = New-Object System.Security.AccessControl.FileSystemAccessRule($identity, "Modify", "ContainerInherit,ObjectInherit", "None", "Allow")
    $acl.SetAccessRule($rule)
    Set-Acl $Path $acl
}

# Usage
$appPath = "C:\inetpub\wwwroot\MyApp"
Grant-AppPoolAccess "$appPath" "YourAppPoolName"
Grant-AppPoolAccess "$appPath\Logs" "YourAppPoolName"

Common Issues & Solutions

Issue Cause Solution
500.21 Error IIS module not installed Install .NET Hosting Bundle, restart IIS
Access Denied Missing file permissions Grant app pool identity Modify on app folder
500.30 In-Process Load Failure Wrong .NET version Verify Hosting Bundle matches your .NET
502 Bad Gateway App crashes Enable stdout logging in web.config, check logs
404 Not Found Wrong physical path Verify path in site binding matches published folder
Connection timeout Database unreachable Test connection string from server, check firewall

Unlocking Configuration Sections in IIS

Open IIS Manager → Select your server (top level).

Double-click Configuration Editor (under Management).

Navigate to the locked section (common ones):

system.webServer/handlers

system.webServer/modules

system.webServer/asp

Actions pane (right) → Unlock Section.

Apply → Yes to confirm (server-wide unlock).

Restart IIS: iisreset in admin command prompt.