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

Vote:
 
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?
#15724
Mar 25, 2008 19:07
Vote:
 
Correction: We are inheriting from EPiServer.TemplatePage directly, and the error occurs in one of our own Server Controls.
#16233
Mar 25, 2008 19:08
Vote:
 
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.
#16234
Mar 25, 2008 19:08
Vote:
 
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?
#16235
Mar 25, 2008 19:08
Vote:
 
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.
#16236
Mar 25, 2008 19:08
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.