ASP Detailed Error Messages [Answered]RSS

8 replies

Last post May 23, 2008 10:16 AM by anilr

  • ASP Detailed Error Messages

    May 21, 2008 04:47 PM|Dotren|LINK

    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

    ASP Classic IIS 7 ASP classic 500 error debugging

  • Re: ASP Detailed Error Messages

    May 22, 2008 06:09 AM|steve schofield|LINK

    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://iislogs.com/steveschofield
    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget

  • Re: ASP Detailed Error Messages

    May 22, 2008 11:03 AM|Dotren|LINK

    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

  • Re: ASP Detailed Error Messages

    May 22, 2008 11:56 AM|steve schofield|LINK

    Make sure to turn off HTTP Friendly errors.

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

    Steve Schofield
    Windows Server MVP - IIS
    http://iislogs.com/steveschofield
    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget

  • Re: ASP Detailed Error Messages

    May 22, 2008 12:16 PM|Dotren|LINK

    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.

  • Re: ASP Detailed Error Messages

    May 22, 2008 01:31 PM|anilr|LINK

    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
    Software Design Engineer
    IIS Core Server
  • Re: ASP Detailed Error Messages

    May 22, 2008 06:19 PM|Dotren|LINK

    That did it, thank you!

  • Re: ASP Detailed Error Messages

    May 22, 2008 09:53 PM|steve schofield|LINK

    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://iislogs.com/steveschofield
    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget

  • Re: ASP Detailed Error Messages

    May 23, 2008 10:16 AM|anilr|LINK

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

    Anil Ruia
    Software Design Engineer
    IIS Core Server