500 internal server error - How to Get detailed errors

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.

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 GoDaddy account.
  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 in your web.config file 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>
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Disabling Browser Cache on Windows Server static files

The following configuration sample adds an HTTP "Cache-Control: no-cache" header to the response,...

Enabling Cache on Your Windows Hosting Account using clientCache

With our Windows hosting accounts, you can create caching rules to enhance your website's speed...

How to install JAVA application in DocumentRoot directory?

There is no such functionality in Plesk at the moment to install java application in root...

How to set Session Timeout in web.config

There are two way to set session timeout property in ASP.Net.First Method : Edit the following in...

Scheduled Tasks (cron job)

Scheduling Tasks (Windows) If you need to run scripts on your hosting account at specific time,...