Answered by:
ASP Detailed Error Messages

Question
-
User242616555 posted
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!
JasonWednesday, May 21, 2008 4:47 PM
Answers
-
User511787461 posted
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).
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Thursday, May 22, 2008 1:31 PM
All replies
-
User1073881637 posted
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
Thursday, May 22, 2008 6:09 AM -
User242616555 posted
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
Thursday, May 22, 2008 11:03 AM -
User1073881637 posted
Make sure to turn off HTTP Friendly errors.
Thursday, May 22, 2008 11:56 AM -
User242616555 posted
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.
Thursday, May 22, 2008 12:16 PM -
User511787461 posted
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).
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Thursday, May 22, 2008 1:31 PM -
User242616555 posted
That did it, thank you!
Thursday, May 22, 2008 6:19 PM -
User1073881637 posted
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/294807To revert back to IIS6- behavior, simply run the following command:
%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:truePer 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).
Thursday, May 22, 2008 9:53 PM -
User511787461 posted
Note that you would never want to do the last step on a production server.
Friday, May 23, 2008 10:16 AM