No description
  • C# 53.3%
  • JavaScript 37.9%
  • HTML 8.2%
  • CSS 0.4%
  • PowerShell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-30 11:51:09 +01:00
App_Start Add project files. 2025-12-29 10:37:54 +01:00
Areas/HelpPage DPL Izvještaj 2026-04-28 09:41:24 +02:00
Connected Services/DPLService Dodavanje praćenja jedinične terapije. 2026-10-30 11:51:09 +01:00
Content DPL Izvještaj 2026-04-28 09:41:24 +02:00
Controllers Dodavanje praćenja jedinične terapije. 2026-10-30 11:51:09 +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 DPL Izvještaj 2026-04-28 09:41:24 +02:00
Services Dodavanje praćenja jedinične terapije. 2026-10-30 11:51:09 +01:00
Views Dodavanje praćenja jedinične terapije. 2026-10-30 11:51:09 +01:00
.gitattributes Add .gitattributes and .gitignore. 2025-12-29 10:37:51 +01:00
.gitignore DPL Izvještaj 2026-04-28 09:41:24 +02:00
DPLGateway.csproj Dodavanje praćenja jedinične terapije. 2026-10-30 11:51:09 +01:00
DPLGateway.sln DPL Izvještaj 2026-04-28 09:41:24 +02:00
DPLService.wsdl Dodavanje praćenja jedinične terapije. 2026-10-30 11:51:09 +01:00
DPLService_Help8.docx Dodavanje praćenja jedinične terapije. 2026-10-30 11:51:09 +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 Dodavanje praćenja jedinične terapije. 2026-10-30 11:51:09 +01:00
health.ps1 Pool recycle solutions. 2026-01-15 12:45:57 +01:00
packages.config DPL Izvještaj 2026-04-28 09:41:24 +02:00
README.md Read me changes. 2026-01-21 12:19:37 +01:00
Web.config Dodavanje praćenja jedinične terapije. 2026-10-30 11:51:09 +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 Pools → Add 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 Sites → Add 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.