Pcornel
Browse topics
Options
Recent
Favorites
Web Infrastructure · Technical reference

IIS Troubleshooting

Direct answer

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.

When to use this

Use this when an IIS site returns errors or slow responses.

First 30 seconds

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.

Operational verification

request → HTTP.sys → binding → pool → app → response

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Microsoft Windows
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformMicrosoft Windows · Windows Server / IIS · Windows / PowerShell
Key commandGet-WebAppPoolState -Name <pool>
Scope / prerequisiteUse this when an IIS site returns errors or slow responses.
Verify · 1Reference · 2
What next?3 suggested next steps
Catalog command links3
Evidence0
On this pageJump to a specific section
Operational command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.
Key points
  • 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.
Key checks
  • Get-Website — sites, state, bindings
  • Get-IISAppPool — application pools and state
  • Get-WebBinding — bindings
  • Get-ChildItem IIS:\SslBindings — certificate bindings
  • Get-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.

CodeMeaning (Microsoft's IIS status code reference)Typical fix
401.1Logon failedCredentials, authentication provider order
401.2Logon failed due to server configurationNo enabled auth method the client supports
403.14Directory listing deniedDefault document missing or app not deployed
404.0Not foundWrong path, missing file
404.3MIME map policy blocks the extensionAdd MIME type or handler
500.19Configuration data is invalidBroken web.config, missing module (URL Rewrite)
502.5 / 500.30ASP.NET Core process failed to startstdout log, hosting bundle version
503.0Application pool unavailablePool stopped (rapid-fail protection), identity password
503.2Concurrent request limit exceededLoad, 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

CheckCommand
Pool stateGet-WebAppPoolState -Name AppPool1
IdentityGet-ItemProperty IIS:\AppPools\AppPool1 -Name processModel
Rapid-fail stopsSystem log, source WAS (events 5002, 5021, 5057)
Worker process crashesApplication log, Windows Error Reporting, procdump -e
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
StatusTypical cause
401.xAuthentication configuration, Kerberos/SPN
403.14Directory browsing disabled, no default document
404.xPath, handler mapping, request filtering
500.19Invalid web.config / missing module
502.3 / 503App 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docMicrosoft Windows current

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%
Terminology layer

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.

Aliases that resolve here
iis troubleshootingfailed request tracing
Confirmation

Confirm action

Continue?