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.)

<customErrors mode=”Off”/>

Posted in Programming. Bookmark the permalink.

  • Chris Benadie

    Hi Please help
    I have this web config file.But the firefox browser does not show me detailed errors:
    Sorce script:

    Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in

    The section enables configuration
    of the security authentication mode used by
    ASP.NET to identify an incoming user.

    The section enables configuration
    of what to do if/when an unhandled error occurs
    during the execution of a request. Specifically,
    it enables developers to configure html error pages
    to be displayed in place of a error stack trace.