Enabling Windows Detailed Error Messages
Occasionally, you may find that in-order to debug a generic error on a webpage detailed errors must be enabled. Here is how to enable detailed error messages for your website using a web.config file:
If there isn’t already a web.config file created in the root of the website you will need to create one. To create a web.config file open notepad or any text editor on your local computer and save the file as web.config. Right-click the web.config file and click edit and put in the following snippet of code below in the file and click save.
<?xml version="1.0" encoding="UTF-8"?>
<httpErrors errorMode="Detailed" />
Once the web.config is modified, FTP upload the file in the root of your website or in the directory the error is being rendered from. Refresh (ctrl F5) the page giving the generic 500 error and detailed error messages will be displayed.
Note: Detailed error messages are normally used for debugging purposes and for security reasons it is not advised to leave this setting enabled.