Categories
Operating System Server Configuration

Classic ASP : Enable Debug mode on IIS7

After a long time today I need to work on Classic ASP website. Ofcourse, it was debugging job and the first hurdle was to make the site running in my test environment where unfortunately I don’t have Debugging for ASP.net enabled. So, I thought to do that by changing my IIS 7 setting so I don’t have to chance it everytime for every project after all it is debug server only.

So here are settings I need to change:

1. Select the Default website in IIS [or website you need to enable debugging].

2. Look for ASP icon, double click open it. In debugging settings check “Send to browser ” and Enable Server side debug to true. Close this dialog

3. Look for Error pages, Double Click open, look for 500 Error page, right click select “edit features”/advance options. Select Detail Error for all modes.

 

Update

Webmatrix (Parent Path):

In case you want to enable parent path for Webmatrix setup, then look for IIS Express icon in system tray and look for “Show all Application”, where you find the applicationhost.config file path. Open it in editor and at bottom of file you will find Configuration Tag for required site location. (Beware there you will find lot of location for all different projects you run through IIS express), just edit the required one and put the configuration from this ticket

Stackoverflow Issue

<asp 
     enableParentPaths="true" 
     bufferingOn="true" 
     errorsToNTLog="true" 
     appAllowDebugging="true" 
     appAllowClientDebug="true" 
     scriptErrorSentToBrowser="true">

     <session allowSessionState="true" />
     <cache diskTemplateCacheDirectory="%TEMP%\iisexpress\ASP Compiled Templates" />
     <limits />
</asp>

That is it.

 

By Sumit Gupta

Sumit Gupta, born on 7th Feb 1981 in NCR, India. He lives a quiet life until he turn to a developer. Once he is in his professional life people start recognizing him for his work. Sumit Gupta is always keen to learn more and share his knowledge to anyone who deserve it. His goal of life is to code at least one 3D action game by itself or with his company Vikasumit [http://www.vikasumit.com].

1 reply on “Classic ASP : Enable Debug mode on IIS7”

Thank you so much! This have been annoying me for ages. To be more detailed in the last step (3), there are three options:

“Custom error pages”
“Detailed errors”
“Detailed errors for local requests and…”

Select the middle one: “Detailed Errors”

Below that, “Path” can be empty and “Path type” set to File. Not sure about these, but that worked for me.

Have a great life!

Comments are closed.