Detailed errors on IIS

Categories Web HostingScriptingASP.NET

It is important to have detailed errors enabled during the web development process as you need to see the true server response to a command you are trying to apply. Without detailed errors enabled, upon an error occurring, the webserver will display a 500 Internal Server Error with no further information.

ASP.NET sites

Simply add the following code to your existing web.config file (somewhere around the start of the file), which describes your application configuration settings:
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed"/>
</system.webServer>
</configuration>
Save this file on the server and allow at least two minutes for the server to refresh. Try reloading the page with the error to get the true server response.

Classic ASP sites

Create a new file in your web root of the website web.config, with the following code inside the file:
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed"/>
</system.webServer>
</configuration>
After uploading the file to the web root directory via FTP, go back to the page displaying the 500 Internal Server Error and click to refresh - the true error will now be shown on the page. Generally it is easy to interpret the error, as it relates to a missing Object or other coding issue. If the error is still too ambiguous to you, please feel free to contact Support for further investigation.

Rate this article
Get more leads