Classic ASP in IIS 7: Displaying Error Details
Site Creator | Administrator
Joined: 24 May 2006
Posted: 09 Nov 2010 at 7:45pm
When running classic ASP files on IIS 7 (not sure if this applies to other script types), I got a few errors but they were very generic server-genertaed errors that didn't really display the actual error. For example, the error may display as:
In IIS 7, "scriptErrorSentToBrowser" flag is set to False.
This setting is actually a good thing, from a security stand point as it prevents malicious users from determing exactly what the error is or why it's occuring.
However, because you need to fix a website problem, you will need to "temporarily" change this setting to "true" so the actual error message gets sent to the browser, and so you can see it.
To do so, follow these steps:
After doing the above, you should now be able to see the exact error message on the page in question. (If you don't, then make sure that you turn off "Show Friendly HTTP Error Messages" in your browser).
Important: Once you have determined the exact error message and took action to resolve it, it is recommended that you change the setting back to false, by running the command:
%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:false
Follow IamIraqi on twitter: http://twitter.com/iamiraqi
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum