Use this when an IIS site returns errors or slow responses.
IIS Troubleshooting
Troubleshoot IIS with the HTTP status and substatus code, IIS logs in C:\inetpub\logs, Failed Request Tracing, application pool state and identity permissions, bindings, certificates and the Application event log.
1. Status code + substatus + win32 status from the log.
2. HTTPERR for requests not reaching the site.
3. Pool stopped? WAS events.
4. Failed Request Tracing.
5. Permissions (pool identity), bindings, certificates.
request → HTTP.sys → binding → pool → app → response
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Get-WebAppPoolState -Name <pool>Primary Commands
Configuration and operational commands for this Topic.
Get-WebAppPoolState -Name <pool>ReferenceOperational command for Read IIS application-pool state. Focus fields: application pool name and runtime state.
Use when: Use when working the canonical Topic windows--iis-iis-troubleshooting and the matching failure boundary.
Quick note: Known-good: the intended application pool is Started when the workload should be available. Suspicious: the pool is Stopped or cannot be resolved despite the site depending on it. Next discriminating check: inspect WAS/W3SVC events and application-pool failure settings before restarting.
Windows Server / IIS · serviceGet-WebsiteVerifyRead-only observation for website state, physical path and binding definitions.
Use when: Use when troubleshooting the linked operational Windows boundary.
Quick note: Command ownership closure. Output remains live/runtime evidence and is never pre-populated as captured production state.
Windows / PowerShell · configurationGet-WebAppPoolState -Name <app-pool>ReferenceRead-only observation for application-pool runtime state.
Use when: Use when troubleshooting the linked operational Windows boundary.
Quick note: Command ownership closure. Output remains live/runtime evidence and is never pre-populated as captured production state.
Windows / PowerShell · control planeVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verify IIS binding, worker state and the exact HTTP response from the client path Verify boundary
Capture the IIS site binding, certificate thumbprint when TLS is used, application pool state/identity and the HTTP status/substatus for the original URL. Expect the intended binding to own the host/port, the app pool to remain Started through repeated requests, and the response to return the expected status/content from the same client path. Correlate the request in IIS/application logs and repeat after an app-pool recycle only if that was part of the fix. HTTP 200 shows that request completed, but it does not show every backend dependency or endpoint is healthy.
Step 2 Branch IIS failures by listener/binding, authentication, app pool and backend response Narrow the fault
If IIS does not accept the connection, verify the configured binding, HTTP.sys listener and local port before changing the application. If TLS connects but the wrong certificate/site appears, inspect SNI/host binding and certificate association. If IIS returns 401/403, branch to authentication method, identity and ACL; if 503 or app-pool stop occurs, inspect worker-process crash/rapid-fail and application-pool identity. If IIS returns a 500-class application error, use the exact status/substatus, Failed Request Tracing or application logs to move to the failing module/backend rather than repeatedly recycling the pool.
Step 3 Common mistakes Narrow the fault
- Ignoring the sub-status code in IIS logs.
- The status and substatus code pinpoint most IIS problems.
- Failed Request Tracing records one request in detail.
- Application pool crashes show in the System and Application logs.
Get-Website— sites, state, bindingsGet-IISAppPool— application pools and stateGet-WebBinding— bindingsGet-ChildItem IIS:\SslBindings— certificate bindingsGet-Content C:\inetpub\logs\LogFiles\W3SVC<id>\*.log -Tail 20— request log
ReferenceWhy it matters1 section · depth on demand
IIS request success depends on HTTP.sys binding, site/app-pool config and application execution
IIS Troubleshooting follows the request from HTTP.sys listener/binding through site selection, TLS/SNI, authentication, application-pool identity and worker-process/application execution. A site can be Started while its application pool repeatedly crashes, and an app pool can be Running while a binding sends the request to another site. HTTP status/substatus and module logs are stronger boundaries than generic browser errors. Certificates, filesystem ACLs, backend databases and reverse proxies remain adjacent dependencies. Record host header, scheme/port, site, app pool and failing URL before recycling processes.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Read the sub-status code, not just the status
IIS logs status, sub-status and Win32 status in the W3C log (default C:\inetpub\logs\LogFiles\W3SVC<siteID>\u_exYYMMDD.log):
2026-11-27 10:21:33 10.0.10.11 GET /reports/ - 443 - 10.0.10.55 Mozilla/5.0 - 403 14 0 12
Fields at the end: sc-status 403, sc-substatus 14, sc-win32-status 0, time-taken 12 ms.
| Code | Meaning (Microsoft's IIS status code reference) | Typical fix |
|---|---|---|
| 401.1 | Logon failed | Credentials, authentication provider order |
| 401.2 | Logon failed due to server configuration | No enabled auth method the client supports |
| 403.14 | Directory listing denied | Default document missing or app not deployed |
| 404.0 | Not found | Wrong path, missing file |
| 404.3 | MIME map policy blocks the extension | Add MIME type or handler |
| 500.19 | Configuration data is invalid | Broken web.config, missing module (URL Rewrite) |
| 502.5 / 500.30 | ASP.NET Core process failed to start | stdout log, hosting bundle version |
| 503.0 | Application pool unavailable | Pool stopped (rapid-fail protection), identity password |
| 503.2 | Concurrent request limit exceeded | Load, queue limits |
When IIS never logs the request
Requests rejected by HTTP.sys before reaching IIS (bad host header, queue full, connection timeout) appear in C:\Windows\System32\LogFiles\HTTPERR\httperr*.log with reasons like Timer_ConnectionIdle, QueueFull, BadRequest.
Failed Request Tracing for hard cases
Install-WindowsFeature Web-Http-Tracing
# IIS Manager → site → Failed Request Tracing Rules → status 500-599 or time-taken > 5 s
The trace (C:\inetpub\logs\FailedReqLogFiles) shows every module in the pipeline and where the request failed or slowed.
Application pool checks
| Check | Command |
|---|---|
| Pool state | Get-WebAppPoolState -Name AppPool1 |
| Identity | Get-ItemProperty IIS:\AppPools\AppPool1 -Name processModel |
| Rapid-fail stops | System log, source WAS (events 5002, 5021, 5057) |
| Worker process crashes | Application log, Windows Error Reporting, procdump -e |
Method
IIS troubleshooting starts with the HTTP status and sub-status code, then failed request tracing and logs.
Get-Website | Select-Object Name, State, PhysicalPath
Get-WebAppPoolState -Name DefaultAppPool
Import-Module WebAdministration; Get-ChildItem IIS:\AppPools | Select-Object Name, State, ManagedRuntimeVersion
Get-Content C:\inetpub\logs\LogFiles\W3SVC1\u_ex*.log -Tail 20
| Status | Typical cause |
|---|---|
| 401.x | Authentication configuration, Kerberos/SPN |
| 403.14 | Directory browsing disabled, no default document |
| 404.x | Path, handler mapping, request filtering |
| 500.19 | Invalid web.config / missing module |
| 502.3 / 503 | App pool stopped or crashing, backend timeout |
Enable Failed Request Tracing for a specific status code to see which module failed, and check the app pool identity's permissions on content folders.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IIS → IIS Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/iis/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.