error while running asp.net application

Discussion in 'C#' started by kharearch, Sep 14, 2008.

  1. #1
    When I am running asp.net application it is giving following error. Please help me to solve this error. thanks.



    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>
     
    kharearch, Sep 14, 2008 IP
  2. vihutuo

    vihutuo Well-Known Member

    Messages:
    1,511
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    180
    #2
    Like the error msg says , change your web.config to include the following line to see the exact error msg
    <customErrors mode="Off"/>
     
    vihutuo, Sep 16, 2008 IP
  3. wisdomtool

    wisdomtool Moderator Staff

    Messages:
    15,825
    Likes Received:
    1,367
    Best Answers:
    1
    Trophy Points:
    455
    #3
    Which OS are you running? Windows 2000 or 2003? Is Network Service permissions enabled?
     
    wisdomtool, Sep 16, 2008 IP
  4. kharearch

    kharearch Member

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4


    I am using windows-xp as OS. How can I enable network service permission.
     
    kharearch, Sep 20, 2008 IP
  5. kharearch

    kharearch Member

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5

    After setting <custom errors mode = "Off"/>, it is giving same error message.
     
    kharearch, Sep 20, 2008 IP
  6. jgarrison

    jgarrison Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you're still getting the same error then that version of .Net is probably setup incorrectly in IIS. Right-click on the web site in IIS and select properties. Click on the ASP.Net tab. Use the drop-down to select the correct version of .Net.
     
    jgarrison, Oct 13, 2008 IP