Skip to main content

How to Enable Detailed IIS Error Messages for Better Troubleshooting

Updated by Tim Rabbetts on
How to Enable Detailed IIS Errors

If you’re a web developer or administrator working with Internet Information Services (IIS), you might often encounter server errors that are quite generic and lack specific details. This can make troubleshooting and resolving issues a challenging task.

However, with some simple configuration changes, you can enable detailed error messages in IIS to gain more insight into the actual cause of an error. Here's how you can do it:

Step 1: Open IIS Manager

1. Launch Internet Information Services (IIS) Manager on your Windows server.

2. Go to the "Start" menu and search for "IIS Manager". Click on the "Internet Information Services (IIS) Manager" application that appears in the results.

Step 2: Select the Server

1. In IIS Manager, navigate to the "Connections" pane on the left-hand side.

2. Right-click on your server name (the topmost option) and choose "Properties" from the context menu.

Step 3: Configure Error Pages

1. Within the Server Properties window, switch to the "ASP" tab.

2. Under the "Debugging Properties" section, find and select the "Send Errors To Browser" option.

3. Set the value to "True" and click "Apply" to save the changes.

Step 4: Enable Detailed Error Messages

1. Now, go back to the main IIS Manager window.

2. Double-click on the "Error Pages" icon in the middle pane.

3. In the "Error Pages" configuration window, click on the "Edit Feature Settings" option on the right-hand side.

4. In the following dialog box, choose "Detailed errors" and click "OK" to confirm.

Step 5: Restart IIS

1. To apply the changes, you need to restart the IIS service.

2. Go to the "Connections" pane, right-click on your server name, and select "Restart" from the contextual menu.

Congratulations! You have successfully enabled detailed error messages in IIS. From now on, when an error occurs, you will receive more specific information about the issue, helping you pinpoint the root cause and resolve it efficiently.

Remember to disable detailed errors in a production environment to avoid potential security risks. Enabling detailed errors should only be used during development or troubleshooting.

Add new comment