Monday, June 7, 2010

Enable local / remote error messages for classic ASP under IIS7

By default ASP error messages are hidden behind a really useful 500 message under IIS7.
You can go into the GUI -> Your site -> ASP -> Debugging Properties -> Send Errors to Browser -> True
but that doesn’t seem to help you remotely. You need to do this (remember, don’t do this on a production server):
Start -> Accessories -> Right Click Command Prompt and then Run as Administrator, then do the following:
  • CD C:\Windows\System32\Inetsrv

  • appcmd set config -section:asp -scriptErrorSentToBrowser:true

  • appcmd set config -section:system.webServer/httpErrors -errorMode:Detailed



  • Regards,
    феникс