Disable ASP.NET Custom Errors in Web.Config
How to disable ASP.NET Custom Errors in the Web.Config file.
Many times during the processing of an ASP.NET application, you will get the following runtime error.

This is a generic error generated by ASP.NET When customErrors are set to ON. To resolve this issue, create a web.config file if one is not already present in your C:/Inetpub/wwwroot/yourdomain directory.

Once you've located/created web.config edit the lines containing the <customErrors> configuration element. If the <customErrors> element does not exist, add the <customErrors> element under the <system.web> element.
You can locate the <customErrors> element by CTRL +F
Change the <customErrors mode ="on"/> to <customErrors mode ="off"/>
Your end result should look similar to the following:

When saved, ASP.NET should restart itself. To test your application, enter the URL in the browser.
Your final result should be a completely different (and detailed) ASP.NET error page, similar to the following

Congratulations, now you have detailed errors of your pages!