Knowledgebase: Windows

ASP.Net Detailed Errors

Posted by on November 24 2013 01:52 PM

This article explains how to enable the display of detailed errors for ASP.Net websites. Showing errors is a big security risk. Therefore, we recommend you only enable errors during development of your website.

To enable detailed errors on your ASP.Net website, copy the below code into your editor of choice and save it as "web.config". Upload this file to your site's root directory.
________________________________________

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
    </system.webServer>
    <system.web>
        <customErrors mode="Off" />
    </system.web>
</configuration>

________________________________________

If you have any further questions that were not answered in this article, please contact us.

(3 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Copyright © 2016 HostMySite