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.

  1. 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.
  2. Open up a command line and run this command:
    %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpErrors -errorMode:Detailed
  3. 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.
  4. Thats it!  Your done.

One Response to “IIS7 and Classic ASP – Enabling Error Messages”

  1. Aditya  on June 17th, 2011

    I’m getting a blank page in IE when browsing htm or aspx page. I followed all the above steps. Kindly advise.


Leave a Reply