Try our conversational search powered by Generative AI!

Unable to cast object of type 'ASP._404_aspx' to type 'EPiServer.PageBase'

Vote:
 

Hi,

I have been trying to create a content mangeable 404 error page. Mostly successful and appears to work locally. On deploying to the server I get a the error Unable to cast object of type 'ASP._404_aspx' to type 'EPiServer.PageBase'.

I have created a custom 404.aspx page at the root of the site, following an article found here: http://labs.episerver.com/en/Blogs/LBi/Dates/2009/9/Creating-Custom-Error-Pages-in-EPiServer-CMS-5/. It's a fairly old article but appears to apply exatly to our setup. Any thing extra I need to do to avoid this error?

CMS 5 as in the article.

Cheers,

Henrik

#46610
Dec 20, 2010 17:58
Vote:
 

Hi Henrik,

you need to inherit from SimplePage or TemplatePage. Will probably solve the issue. :)

#46611
Dec 20, 2010 18:15
Vote:
 
Hi Erik, Thanks very much - had to be something simple; works perfectly now.
#46616
Dec 21, 2010 10:09
* 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.