« Previous Next »

Thread: ASP Detailed Error Messages

Last post 05-23-2008 10:16 AM by anilr. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 05-21-2008, 4:47 PM

    • Dotren
    • Not Ranked
    • Joined on 05-21-2008, 8:10 PM
    • Posts 8

    ASP Detailed Error Messages

    Greetings,

     I've got a IIS7.0 web server on our local network here at my office and I'm using it to learn Server 2008 and IIS7 features along with testing our new company website before we push it live.

     I was doing some ASP the other day and noticed I could not get the older styled detailed error messages to appear.  Even after making sure Send Errors to Browser was turned on I still only got the default error message to appear on the box I was using to access the website.

    So far, the only instance where I've gotten the detailed error messages to appears if I accessed the webpage from on the server itself.

    I understand the security issues here and really its not a huge deal to remote onto the web server and run my classic ASP on the server's browser but now I'm curious if there is a setting to allow it to send detailed error messages to remote clients?

    Thanks!
    Jason

  • 05-22-2008, 6:09 AM In reply to

    Re: ASP Detailed Error Messages

    Let me make sure I follow.  You want the old style Classic ASP errors sent to the browser for debugging and such?  If so, I'd double check the Send Errors to Browser setting on your site.  This usually takes care of that issue.  Here is an article by Bill Staples that might help.

    http://blogs.iis.net/bills/archive/2007/05/21/tips-for-classic-asp-developers-on-iis7.aspx

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 05-22-2008, 11:03 AM In reply to

    • Dotren
    • Not Ranked
    • Joined on 05-21-2008, 8:10 PM
    • Posts 8

    Re: ASP Detailed Error Messages

    Yep thats the gist of it.  I've verified that he Send Errors to Browser setting on my site is indeed set to the True value.

    Unfortunately, the classic ASP errors are still only visible when I'm browsing the page using my server's IE browser (remote desktop).  When I try to view the same page with my desk computer, I get the default "500 - Internal server error" message.

    Thanks

  • 05-22-2008, 11:56 AM In reply to

    Re: ASP Detailed Error Messages

    Make sure to turn off HTTP Friendly errors.

    http://support.microsoft.com/kb/294807

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 05-22-2008, 12:16 PM In reply to

    • Dotren
    • Not Ranked
    • Joined on 05-21-2008, 8:10 PM
    • Posts 8

    Re: ASP Detailed Error Messages

    Yep, already tried that as well, then recleared the cache and tried again, same result unfortunately.  Also I'm getting the same thing in Firefox and, to my knowledge, Firefox doesn't do the HTTP friendly error thing.

     The page doesn't look like a standard IE error page like a 404 or anything, it definetly looks server generated.

  • 05-22-2008, 1:31 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: ASP Detailed Error Messages

    You also have to configure IIS custom-error to allow detailed errors to be sent to remote clients.

    %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpErrors -errorMode:Detailed (default is DetailedLocalOnly).

     

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 05-22-2008, 6:19 PM In reply to

    • Dotren
    • Not Ranked
    • Joined on 05-21-2008, 8:10 PM
    • Posts 8

    Re: ASP Detailed Error Messages

    That did it, thank you!

  • 05-22-2008, 9:53 PM In reply to

    Re: ASP Detailed Error Messages

    Thanks Anil for posting that gem.  So in summary.  These three steps is what was needed.

    Turn off HTTP Friendly Errors.
    http://support.microsoft.com/kb/294807

    To revert back to IIS6- behavior, simply run the following command:
    %windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true

    Per Anil R.
    You also have to configure IIS custom-error to allow detailed errors to be sent to remote clients.
    %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpErrors -errorMode:Detailed (default is DetailedLocalOnly).


     

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 05-23-2008, 10:16 AM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: ASP Detailed Error Messages

    Note that you would never want to do the last step on a production server.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (9 items)
Microsoft Communities