IIS7 and Classic ASP – Enabling Error Messages
Recently iv switched a lot of my web apps from an IIS6 to an IIS7 server although this came with a few headaches, one of which was that now, I was unable to debug my code from the browser on my remote machine, instead just seeing an “Error Code 500 – Internal Server Error” message, which is basically useless.
Iv found the solution, although it involves a few steps, heres how.
- In your IIS7 control panel, under your site home area, double click on the “ASP” icon (In the bottom half, on my window).
Expand the Debugging Properties toggle , and switch the Send Errors To Browser option to TRUE. - Open up a command line and run this command:
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpErrors -errorMode:Detailed
- If your using Internet Explorer, go into Tools > Internet Options > Advanced , find the “Show friendly HTTP error messages” under the “Browsing” section and disable it.
- Thats it! Your done.
