Try our conversational search powered by Generative AI!

Error handling in CMS 6 R2

Vote:
 

Hello!

In my CMS 6 R2 project, I want to use Episerver default error page, so I have changed the configuration to globalErrorHandling = "On" in episerver.config and <customerrors mode="On" /> in web.config, however i still get IIS7 default error page when trying to surf to a page that doesn't exist. (I have refreshed many times and even ran iisreset) The only thing I've noticed is that there's a custom Episerver text above the exception messages when they occur, but this is not enough.

Is there anything else I need to change/configure?
TIA,

/Kenia

#54887
Nov 08, 2011 14:14
Vote:
 

Hi Kenia

I would check out ErrorHandler on nuget.episerver.com. Does all the configuration for you and let's you easily create your own custom error pages for 404, 500 etc.

Hope this helps.

Frederik

#54888
Nov 08, 2011 14:25
Vote:
 

Hello!

Thanks for your reply.
I've tried to download the package, but the link to the Project Site in coderesort seems to be broken...?

/Kenia

#54889
Nov 08, 2011 14:38
Vote:
 

Yeah you need to install it through NuGet for now (see nuget.org).

#54890
Nov 08, 2011 14:40
Vote:
 

Try to set errorMode="Custom" in the httpErrors element since you are running IIS7. It's the IIS7 version of IIS6 customErrors sort of...

http://www.iis.net/ConfigReference/system.webServer/httpErrors

#54895
Nov 08, 2011 23:04
Vote:
 

Hi guys and thanks for your replies. Actually, Frederik i didn't install the module although it would have been the best solution, but our project leader said we need a simple solution for this, since the client doesn't want custom error pages, so episervers default will do.
Johan, your suggestion worked! That was one great link you pointed me to.

 

#54898
Nov 09, 2011 9:18
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.