ASP.NET Show Error Details

asp.netiis

I recently deployed my ASP.NET 3.5 application to my test server, a newly installed copy of Windows Server 2003 Standard on which is IIS 6.0 and .NET 3.5 SP1. When I view the application (even from a web browser on the server) I get:

Server Error in '/' Application.

Runtime Error

Description: An
application error occurred on the
server. The current custom error
settings for this application prevent
the details of the application error
from being viewed remotely (for
security reasons). It could, however,
be viewed by browsers running on the
local server machine.

Details: To enable the details of this
specific error message to be viewable
on remote machines, please create a
tag within a
"web.config" configuration file
located in the root directory of the
current web application. This
tag should then have
its "mode" attribute set to "Off".

I am, however, on the local server machine, so I'm not sure why I'm seeing this error. I've added <customErrors mode="Off"/> to my Web.Config file, but I still can't get see the error details. Does anyone know how to fix this?

Best Solution

Check the Application event log. By default, ASP .NET should dump uncaught errors in there.

Also, have you deployed the application into a subdirectory, but haven't set up the subdirectory as an application? ASP .NET may be looking at the root web.config rather than the one in your subdirectory if it's not an application.