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 Plesk account.
  2. Click Websites and Domain Hosting.
  3. Click Hosting Settings.
  4. 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>
 

OR

 
  1. Log in to your Plesk account.
  2. Click Websites and Domain Hosting.
  3. Click "Preview URL" to view the correct error.
  4. Click "IIS Dedicated Application Pool", click "Stop" and then "Start" and try.
  5. Click "ASP.NET Settings", and change the version and try

Normally by doing the above, this error issue will get solved.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

URL Rewrite/mod_rewrite for Windows on IIS 7.x 8.x

For customers who are looking for a URL rewrite function (like Apache's mod_rewrite) on our...

Windows IIS Server - Reditect http:// to https://

Using the following code in your web.config file automatically redirects visitors to the HTTPS...

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...

Disabling Browser Cache on Windows Server static files

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

Scheduled Tasks (cron job)

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