This user control must be placed on an ASPX-page that inherits from EPiServer.PageBase

We get the following error stack on a page that inherits from our own base class which in turn inherits from EPiServer.TemplatePage. [EPiServerException: This user control must be placed on an ASPX-page that inherits from EPiServer.PageBase] EPiServer.UserControlBase.get_PageBase() +137 EPiServer.UserControlBase.get_CurrentPage() +15 ... This seems strange since we are in fact inheriting from PageBase. Can the message be caused by something else?
Aug 03, 2007 15:04
Correction: We are inheriting from EPiServer.TemplatePage directly, and the error occurs in one of our own Server Controls.
Aug 03, 2007 15:52
The code works in 4.61, but we get this error in CMS. The error occurs when we try to access CurrentPage in Page_Init.
Aug 03, 2007 15:59
Hello Kristian Sorry for the delay in the reply. I tried a simple User Control to reproduce this error, but I wasn't able to. Could you perhaps post the code you use to get the error?
Aug 16, 2007 13:52
It seems that the (somewhat embarassing) reason for the error was that we compiled our page template base class against old EPiServer libraries, so this particular problem is solved already. Thanks for answering, though.
Aug 20, 2007 11:05
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.