« Previous Next »

Thread: How To Display Detail Message on IIS 7?

Last post 01-08-2009 1:20 AM by ksingla. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 01-06-2009, 8:33 PM

    How To Display Detail Message on IIS 7?

    I have been using GoDaddy with IIS 6 and now moved to IIS 7. My problem is that I can not see detail error message that I use to get in IIS 6. I have learned that in web.config file I can use these setting but that did not help. I know I am missing something, what is it?


    <?xml version="1.0"?>
    <configuration>
    <system.webServer>
    <httpErrors errorMode="Detailed"/>
    </system.webServer>
    </configuration>

  • 01-06-2009, 9:09 PM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-13-2006, 11:02 PM
    • Redmond, WA
    • Posts 863

    Re: How To Display Detail Message on IIS 7?

    IIS6 didn't really have detailed error messages. Are you referring to asp.net error messages? If yes, you can try setting existingResponse property to "Auto" which is the default property but might be changed to something else by your hoster at the server level.

    <configuration>
      <system.webServer>
        <httpErrors existingResponse="Auto" />
      </system.webServer>
    </configuration>

    Thanks,
    Kanwal

    Follow me on twitter at http://twitter.com/kjsingla
  • 01-06-2009, 9:32 PM In reply to

    Re: How To Display Detail Message on IIS 7?

    Thats correct. I am reffering to asp.net error messages. I have already tried setting existingResponse to "Auto" but that comes back as 500 Internal error message and not the detail message that I am looking for.

  • 01-06-2009, 9:45 PM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-13-2006, 11:02 PM
    • Redmond, WA
    • Posts 863

    Re: How To Display Detail Message on IIS 7?

    It might be because httpErrors section is locked at a parent level (default configuration has it locked) and you are not allowed to set the section in your web.config. Can you remove httpErrors section completely and paste the error you are getting? Also what is the error you are expecting from asp.net?

    Follow me on twitter at http://twitter.com/kjsingla
  • 01-06-2009, 10:56 PM In reply to

    Re: How To Display Detail Message on IIS 7?

    I appricate your help. I am expecting like "variable is not defined" or any detail message that usuly appears when you are on IIS 6 server.  Instead I get this message when I have web.config set  for errorMode="Detailed":

     "An error occurred on the server when processing the URL. Please contact the system administrator.

    If you are the system administrator please click here to find out more about this error."

    When I existingResponse="Auto" in web.config  or without web.config even I get this message

    500 - Internal server error.

    There is a problem with the resource you are looking for, and it cannot be displayed.

    I have talked to GoDaddy and they tested with their version of web.config file and it works but they are not letting me see what is in that  working web.config file.

    I hope you can help me! Thanks.

  • 01-08-2009, 1:20 AM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-13-2006, 11:02 PM
    • Redmond, WA
    • Posts 863

    Re: How To Display Detail Message on IIS 7?

    Try keeping <httpErrors errorMode="detailed"/> configuration in your web.config and send a request to "/nonexistingpage.htm" which should return 404. If you get a 500, httpErrors section is probably locked at parent level. In that case you need to talk to your hoster.

    Follow me on twitter at http://twitter.com/kjsingla
Page 1 of 1 (6 items)
Microsoft Communities