Custom Error Page not Working in Umbraco 4.7

If you are using Umbraco 4.7 on IIS 7, you might stumble upon a weird issue, that your Custom Umbraco Error Page configurations are not detected anymore by IIS.

To know how to configure the Custom Error Pages in Umbraco , check this earlier post here.

Even if the above specified steps are followed, your site would show the 404 error page of IIS or the Umbraco Ugly Page.

This is because, IIS 7 always looks for HttpErrors section in web.config and does not pay attention to umbracoSettings.config. To overcome this issue, follow these steps:

1. Open your web.config. Browse to the ‘ <system.webServer>’ section.

2. Here you can tell the site to pass all of the error handling through to the application by using the code :

<httpErrors existingResponse="PassThrough" />

This has the disadvantage that Umbraco doesn’t handle anything but .aspx pages that are not found.

3. You could make it better by doing something like this instead:

<httpErrors errorMode="Custom">
       <remove statusCode="404" subStatusCode="-1" />
       <error statusCode="404" prefixLanguageFilePath="" path="/non-existing-page.aspx" responseMode="ExecuteURL" />

The non-existing-page.aspx does not exist yet in Umbraco, so it triggers a 404 (because it has the aspx extension) and.. presto: Umbraco handles the 404 perfectly!

Hope it helps !


About mytechlifedays

Its been a wonderful learning period over the last 6 years in the IT industry , getting exposed to whole lot of technologies and ideas. The hurdles and the crisis that came along have been wonderful experience ... And now its time to pen them down so that let some others execute faster and easily with these information .....
This entry was posted in Umbraco and tagged . Bookmark the permalink.

Leave a Reply ! It would be always appreciated ! :)

Fill in your details below or click an icon to log in: Logo

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

Google photo

You are commenting using your Google 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