1. Namespace X
Namespace Y
Namespace Z
Public Class BasePage
Inherits System.Web.UI.Page
2. Public Class MainPageClass
Inherits X.Y.Z.BasePage
3. <%@ Page AutoEventWireup="false" CodeFile="myPage.aspx.vb" Inherits="myPage" %>
Code-behind:
Partial Public Class myPage
Inherits MainPageClass
----------------------------------------
It's working fine locally in VWD-2008 but it's throwing an exception when I run the same app in WSS(sharepoint).
Exception: error ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute,
and that it extends the correct base class (e.g. Page or UserControl). at System.Web.Compilation.AssemblyBuilder.Compile()
Any idea, where I am doing wrong!
Thanks