locked
500 - Internal server error - how to debug? RRS feed

  • Question

  • User-1982395779 posted

    I have an ASPX website that I needed to convert from the 2.0 framework to v4.5. I have it working on a development computer, but when I publish it to my web server (Windows Server 2008, IIS 6, SP2), I'm getting the following error:

    500 - Internal server error.
    There is a problem with the resource you are looking for, and it cannot be displayed.

    There's nothing in the Event log on the server, nor is there any indication of an error in the Web log. 

    How can I debug this to determine what the issue is?

    thanks,
    bert

    Tuesday, July 14, 2015 4:40 PM

Answers

  • User-1982395779 posted

    I finally figured out that the following in the Web.config would give me additional information

    <system.webServer>
       <httpErrors errorMode="Detailed" />
       <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Tuesday, July 14, 2015 6:08 PM

All replies

  • User-2064283741 posted

    Use the iis logs to find the 500 subcode that will give your more info.
    Or try failed request tracing.
    or set it up to display full error messages in the browser.
    Look up the 500.x error online.
    Tuesday, July 14, 2015 4:44 PM
  • User-1982395779 posted

    I finally figured out that the following in the Web.config would give me additional information

    <system.webServer>
       <httpErrors errorMode="Detailed" />
       <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Tuesday, July 14, 2015 6:08 PM