Try our conversational search powered by Generative AI!

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
Aug 03, 2007 15:04
Vote:
 
Correction: We are inheriting from EPiServer.TemplatePage directly, and the error occurs in one of our own Server Controls.
#16233
Aug 03, 2007 15:52
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
Aug 03, 2007 15:59
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
Aug 16, 2007 13:52
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
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.