IIS 7 Strangeness
I'm working on a project which has been successfully deployed to a local instance of IIS7.
When I type in the wrong URL I get an error 404 (as expected). Both fiddler and the web config both tell me that the error page is located at /site/service/error.aspx开发者_运维问答
however this file does not exist anywhere within the server's physical path.
As far as I can tell there are no redirection rules set up on the server and no handlers / modules.
So where is this file? And (more importantly) How can the server access it if it's outside the server's root?
It sounds like this is being configured in the <customErrors>
node of an upstream *.config file.
You should check the upstream files such as machine.config or ApplicationHost.config.
This MSDN article covers all of the config files in the hierarchy and where they can be found on disk.
精彩评论