HostOnNet Blog

ASP.NET script showing error message

By Default ASP.NET scripts do not show actual error message in browser for security reason.

It will be helpfull to show the error message to browser when installing or developing a script.

To enable this, create a file “web.config” with following content and upload it to your web sites web root (the folder in which you upload index file.)

<configuration>
<system.web>
<customErrors mode=”Off”/>
</system.web>
</configuration>


Posted in Programming. Bookmark the permalink.