Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

404 on pages inheriting from SimplePage after upgrade 5 R2 -> 6 R2

Vote:
 

Hi,

I have several pages that are used for administrative purposes and that inherrit from EPiServer.SimplePage to get some basic functionality. Now after upgrading to EPiServer 6 R2 these pages are generating a 404 so I assume I need to set some properties or override some method(s) but I am unsure which. Also by looking at the implementation of SimplePage it isn't obvious to me where the 404 is being generated. Could someone tell me what I need to do to prevent the 404?

#53344
Sep 05, 2011 14:29
Vote:
 

Are you using these templates in a page type and creating instances in the page tree? Or are you using them as standard standalone aspx pages?

#53352
Sep 05, 2011 19:39
Vote:
 

Standard standalone aspx pages.

#53367
Sep 06, 2011 9:47
Vote:
 

Does it need to be? I mean, can it inherit System.Web.UI.Page instead? I'm thinking it's something with the CurrentPage being null that triggers the 404. If you want it to be SimplePage I'm out of ideas. I suggest you enable debug logging to try to find out what happens to it.

#53370
Sep 06, 2011 10:06
Vote:
 

I am sure I can re-implement it using System.Web.UI.Page but it would be quite some work I think so I will look some more into if I can find the source of the 404 and update the post if I find something.

#53384
Sep 06, 2011 12:35
Vote:
 

Hi Olle!

My guess is that this is an effect of a bug fix where pages should not get master language fallback automatically. I'd suggest that you try to inherit from EPiServer.UI.SystemPageBase class which resides in the EPiServer.UI assembly. This is the base class that we use ourselves for edit/admin-pages.

#53388
Sep 06, 2011 15:50
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.