Today,
I bumped into my old nemesis commented code. I spent several hours tweaking and tweaking an IIS 7.5 site’s custom errors only to discover my custom error section looked similar to this
<customErrors mode="On" defaultRedirect="MyErrorPage.htm">
<error statusCode="404" redirect="My404.htm" />
</customErrors>
–>
I fixed the system.web portion in IIS 7. Checked everything. My eyes just glossed over the fact that the darn thing was commented out of the web.config.
What an idiot. I will not forget this now. (Until the next time I forget)
JT
Advertisement