You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/developer/webapps/iis/site-behavior-performance/troubleshoot-http-error-code.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Troubleshoot HTTP Errors in IIS
3
3
description: Provides troubleshooting steps for resolving 4xx and 5xx HTTP status code errors in Internet Information Services (IIS).
4
-
ms.date: 01/09/2025
4
+
ms.date: 01/27/2025
5
5
ms.reviewer: khgupta, v-sidong
6
6
ms.custom: sap:Site Behavior and Performance\Runtime errors and exceptions, including HTTP 400 and 50x errors
7
7
---
@@ -37,13 +37,13 @@ If you find errors in the HTTPERR logs, note the reason (`s-reason`) and see [Ty
37
37
38
38
### 500 errors in classic ASP
39
39
40
-
If any error occurs in classic ASP, check the error code or error message in the `cs-uri-query` query of the IIS logs.
40
+
If a 500 error occurs in classic ASP, check the error code or error message in the `cs-uri-query` query of the IIS logs.
41
41
42
42
For more information, capture and examine [Failed Request Trace (FREB) logs](#steps-to-capture-freb-logs) for the 500 errors.
43
43
44
44
### 500 errors in general IIS
45
45
46
-
If any error occurs in general IIS, examine the IIS logs, note `sc-status` and `sc-substatus`, and look for the status code in [HTTP status code overview](../health-diagnostic-performance/http-status-code.md#5xx---server-error) for more information on the failure. Enable detailed error messages if feasible to get more details.
46
+
If a 500 error occurs in general IIS, examine the IIS logs, note `sc-status` and `sc-substatus`, and look for the status code in [HTTP status code overview](../health-diagnostic-performance/http-status-code.md#5xx---server-error) for more information on the failure. Enable detailed error messages if feasible to get more details.
47
47
48
48
To enable detailed error messages, follow these steps:
49
49
@@ -71,7 +71,7 @@ For more information, capture and examine [Failed Request Trace (FREB) logs](#st
71
71
72
72
### 500 errors in ASP.NET
73
73
74
-
If any error occurs in ASP.NET, use the following methods to identify the cause of the error and resolve it:
74
+
If a 500 error occurs in ASP.NET, use the following methods to identify the cause of the error and resolve it:
75
75
76
76
- Check the Application Event Logs.
77
77
@@ -105,7 +105,7 @@ If any error occurs in ASP.NET, use the following methods to identify the cause
105
105
106
106
### 500 errors in ASP.NET Core
107
107
108
-
If any error occurs in ASP.NET Core, use the following methods to identify the cause of the error and resolve it:
108
+
If a 500 error occurs in ASP.NET Core, use the following methods to identify the cause of the error and resolve it:
109
109
110
110
- Check the Application Event Logs.
111
111
@@ -136,7 +136,7 @@ If any error occurs in ASP.NET Core, use the following methods to identify the c
136
136
137
137
- Enable the ASP.NET Core Module `stdout` log.
138
138
139
-
To enable and view stdout logs, follow these steps:
139
+
To enable and view `stdout` logs, follow these steps:
140
140
141
141
1. Navigate to the site's deployment folder on the hosting system.
142
142
1. If the **logs** folder isn't present, create the folder. For instructions on how to enable MSBuild to create the **logs** folder in the deployment automatically, see [ASP.NET Core directory structure](/aspnet/core/host-and-deploy/directory-structure).
@@ -180,7 +180,7 @@ If any error occurs in ASP.NET Core, use the following methods to identify the c
180
180
181
181
### 502 errors in ARR
182
182
183
-
Follow the instructions in [Troubleshooting 502 errors in ARR](../application-request-routing/troubleshooting-502-errors-in-arr.md).
183
+
If a 502 error occurs in Application Request Routing (ARR), follow the instructions in [Troubleshooting 502 errors in ARR](../application-request-routing/troubleshooting-502-errors-in-arr.md).
184
184
185
185
### 503 errors
186
186
@@ -249,11 +249,13 @@ Once the **Tracing** role service is installed, follow these steps to capture FR
249
249
250
250
To capture a PerfView trace and dumps, follow the steps in the following sections.
251
251
252
-
#### Before the issue occurs
252
+
#### Configure PerfView and Procdump before the issue
253
+
254
+
Before the issue occurs, follow these steps to configure PerfView and Procdump for data collection:
253
255
254
256
1. Download [Procdump](/sysinternals/downloads/procdump). It's a lightweight executable file that doesn't require installation and automates dump collection.
255
257
1. Extract the **procdump.exe** file to a particular folder on the server.
256
-
1. Download the [PerfView](https://github.com/microsoft/perfview/releases) tool on the server. It's a profiler tool that captures ETW events (no installation required).
258
+
1. Download the [PerfView](https://github.com/microsoft/perfview/releases) tool on the server. It's a profiler tool that captures Event Tracing for Windows (ETW) events (no installation required).
257
259
1. For PerfView to provide useful information, add **Tracing** as a **Role Service** for IIS. Without **Tracing** enabled, an ETW trace will only include **HTTP.sys** information. If you aren't sure whether the **Tracing** role service is installed, follow these steps:
258
260
259
261
[!INCLUDE [Note when using Procdump](../../../../includes/enable-tracing-role.md)]
@@ -274,9 +276,11 @@ To capture a PerfView trace and dumps, follow the steps in the following section
274
276
> [!NOTE]
275
277
> Don't miss the asterisk (`*`) at the beginning.
276
278
277
-
#### During the time of issue
279
+
#### Collect data during the issue
280
+
281
+
During the time of the issue, follow these steps to collect data:
278
282
279
-
1. Select the **Start Collection** button in PerfView with the configuration settings you previously set up.
283
+
1. Select the **Start Collection** button in PerfView with the configuration settings you set up in the [Configure PerfView and Procdump before the issue](#configure-perfview-and-procdump-before-the-issue) section.
280
284
1. Open Internet Information Services (IIS) Manager.
281
285
1. Select your server name (on the left).
282
286
1. Double-click **Worker Processes** to see the **Process Id** of the services. For example:
0 commit comments