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
- Log in to your Plesk account.
- Click Websites and Domain Hosting.
- Click Hosting Settings.
- 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
- Log in to your Plesk account.
- Click Websites and Domain Hosting.
- Click "Preview URL" to view the correct error.
- Click "IIS Dedicated Application Pool", click "Stop" and then "Start" and try.
- Click "ASP.NET Settings", and change the version and try
Normally by doing the above, this error issue will get solved.