It would appear that on my brand new Windows Server 2008 with IIS7, customErrors
is not working.
We have customErrors
set to RemoteOnly
in the web.config on our Asp.Net sites and applications. However, no matter what we do, it would appear that our sites act like it's set to On
and we can't get any detailed messages showing up on our applications when remoted into our servers.
I'm not entirely sure how to trace where this is being overrided, or if there is something in the way the server is configured that would make the server think the request is internal? How does this actually resolve correctly, anyway?
Any help is appreciated...
Our network admin has added domains to our hosts file to direct applications to the IP address.
You need to use the httpErrors element for IIS 7.
http://www.iis.net/ConfigReference/system.webServer/httpErrors