Please Help: My site is displaying this error message

Discussion in 'C#' started by digiserv, Dec 1, 2009.

  1. #1
    My site was working properly. Suddenly it started displaying this message:
    Can somebody suggest me what I should do. I am new to ASP Programming. Thanks in advance for your kind support.

    Digiserv

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

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


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

    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>
     
    digiserv, Dec 1, 2009 IP
  2. urstop

    urstop Peon

    Messages:
    224
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In the root directory locate the file called
    , open it search for
    xml tag, if it is not found
    add the following xml tag
    immediately after this tag
    If the tag is found, check the value for mode, and change it to Off if it is not the same.
     
    urstop, Dec 2, 2009 IP
  3. same

    same Greenhorn

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    If you have anything in the configuration file like connections configuration.
    The sequence of it sometimes it may be that it won't work.

    see the tags and server path at the same time see the content in system.web .

    other option make one config file make the old one disable and use new one.

    and then rebuild it.

    Thanks
    same
     
    same, Dec 3, 2009 IP
  4. makeitlive

    makeitlive Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    digiserv please change custom errors mode to off in your web.config file and then post the error message.
     
    makeitlive, Dec 21, 2009 IP