Duh! It was commented out

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

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.