Runtime error and Enable Detail Error for ASP.NET sites

Programming, error messages and sample code
 

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

 
Solution:
If you are getting a Runtime error like above, that means there are problems with your code.  You'll need to turn on detail errors in your web.config to display the error details.  You can do the following to enable it.

1) Login to your "Hosting Control Panel"
2) Go to "My WebSites" on your left
3) Find your site in there and you should see a option to TURN ON/OFF detail errors.

Once you turn on the detail error, you should be able to see your website error message.