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.
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
<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.