Server Error in '/' Application.

Discussion in 'ASP .Net Security' started by MSH, Oct 25, 2009.

  1. MSH

    MSH Guest

    wha is this?
    Server Error in '/' Application.
    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".

    <!-- Web.Config Configuration File -->

    <customErrors mode="Off"/>

    Notes: The current error page you are seeing can be replaced by a custom
    error page by modifying the "defaultRedirect" attribute of the application's
    <customErrors> configuration tag to point to a custom error page URL.

    <!-- Web.Config Configuration File -->

    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    MSH, Oct 25, 2009
    1. Advertisements

  2. By default, ASP.NET error message hides details about errors. Go to
    the Web.config file and find customErrors section inside <System.web>.
    By default, this section has

    <customErrors mode="RemoteOnly" />

    Change it to

    <customErrors mode="Off" />

    This should help you to see the detailed error message when error
    occurs again.

    You can also go to Event Log to see what was wrong.
    Alexey Smirnov, Oct 26, 2009
    1. Advertisements

  3. MSH

    lexa_klassik Guest

    lexa_klassik, Aug 16, 2010
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.