Getting Detailed Errors on Your Windows Website
By default, our Windows hosting accounts display a custom/generic error when applications generate an exception. This generic error prevents malicious users from obtaining sensitive information about your site.
To troubleshoot the issue, you can modify your
web.config file and specify that a detailed error message displays instead of the custom error we created. A detailed error message helps you to locate the specific code that is causing the issue.
Use the sample code below to display detailed error messages on IIS 6:
Use the sample code below to display detailed error messages on IIS 7:
You must first disable Custom Error Documents, and then add the detailed error coding to the pages for which you want them to display.
To Disable Custom Error Documents
- Log in to your Account Manager.
- Click Web Hosting.
- Next to the account you want to use, click Manage.
- In the section of the domain name you want to use, click Show More.
- Click Hosting Settings.
- Deselect Custom error documents, and then click OK.
Now, use the sample code below to display detailed error messages on IIS 8:
Is Parent Path Enabled on Shared ASP Hosting?
What is ASP.NET 3.5?
What should I use to develop ASP.NET 3.5 Web sites?
Why are ASP.NET runtimes 2.0, 3.0 and 3.5 grouped together?
Using ASP.NET Cryptography Services with Your Web Site
Where Can I Find More Information About ASP.NET 2.0?