Well, the goodness of being a support engineer is that you can receive both “Holy Sh*t” and “Thanks a ton” from the same guy.
IIS 7 does introduce a new custom error mode, as documented in the following article,
You must pay much attention to digest the words. Otherwise, confusions can happen.
One simplest confusion is like this,
As a developer, you set up Visual Studio and IIS 7 on a Windows Vista machine. Then you configure custom error pages as usual. But, WHAT! Why in the browser you still see the ugly error page by IIS?
Please don’t mess up your configuration. Actually all you need is to change errorMode from DetailedLocalOnly to Custom in applicationHost.config.
If you rather use IIS Manager, please do the following,
- Find the web site,
- Click Error Pages icon in the middle.
- Click Edit Feature Settings… button in the left.
- Now please choose Custom error pages.
It’s simple, and I think most developers will like this non-default setting.
But why the IIS team set DetailedLocalOnly as default? The intention is part of the article mentioned above, so please read the article through and master the key points it states.
Personally speaking, I believe this mode is great for the deployment environment.