četvrtak, 10. srpnja 2008.

An error occurred on the server when processing the URL. Please contact the system administrator



I am getting the following error message running a classic ASP site on IIS7 (Vista):
"An error occurred on the server when processing the URL. Please contact the system administrator"
To say it is vague is an understatement. Does anyone have any idea where I should start troubleshooting.
ASP is installed and the site is running in a classic pool.



********* SOLUTION **********
It seems like "Send Errors to Browser" is set to False and you are seeing generic error message instead of detailed ASP error.

f you are using Vista build, you need to make the following change to see the error message.

1) Internet Option:

Internet Explorer:

Internet Explorer/Tools/Internet Option/Adwanced

uncheck "Show friendly HTTP error message" check box

Firefox:
  1. Open up a new tab (CTRL+T) or window (CTRL+N).
  2. Type in de addressbar: about:config.
  3. In the filterbar type: error and press enter.
  4. Now set the value of the ‘browser.xul.error_pages.enabled‘ to ‘true‘. Double clicking will do.
  5. Restart Firefox.

2) IIS Settings:

Start/Control Panel/Administrator tools/Internet Information Services (IIS) Mananger

Make sure you're in Features View (not Content View), then double-click the ASP icon.
Expand "Compilation" and then "Debugging Properties". Set the "Send Errors To Browser" to True. Now when you browse the ASP page, you should get the underlying script error, instead of the default "An error occurred". This will help troubleshooting efforts.