GoDaddy Support

Getting Detailed Errors on Your Windows Website

Date Submitted: 10/2/15

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.

CAUTION: The code samples we provide below do not constitute a complete web.config file. Do not replace your existing web.config file with the code we provide. Before changing your web.config file, we recommend creating a backup.

Disabling Custom Error Messages / Enabling Detailed Errors on IIS 6

Use the sample code below to display detailed error messages on IIS 6:

<configuration> <system.web> <customErrors mode="Off"/> <compilation debug="true"/> </system.web> </configuration>

Disabling Custom Error Messages / Enabling Detailed Errors on IIS 7

Use the sample code below to display detailed error messages on IIS 7:

<configuration> <system.webServer> <httpErrors errorMode="Detailed" /> <asp scriptErrorSentToBrowser="true"/> </system.webServer> <system.web> <customErrors mode="Off"/> <compilation debug="true"/> </system.web> </configuration>

Disabling Custom Error Messages / Enabling Detailed Errors on IIS 8 (Plesk)

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

  1. Log in to your Account Manager.
  2. Click Web Hosting.
  3. Next to the account you want to use, click Manage.
  4. In the section of the domain name you want to use, click Show More.
  5. Click Hosting Settings.
  6. Deselect Custom error documents, and then click OK.

Now, use the sample code below to display detailed error messages on IIS 8:

<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <httpErrors errorMode="Detailed" existingResponse="PassThrough" /> </system.webServer> </configuration>
NEED HELP? Call our award-winning support team 24/7 at (480) 505-8877
Submit

United States - English
Traffic Log Image