Server Error in '/' Application.

Unable to cast object of type 'ASP.professorstudymanuals_aspx' to type 'BookstoreEngine.Helpers.BasePage'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Unable to cast object of type 'ASP.professorstudymanuals_aspx' to type 'BookstoreEngine.Helpers.BasePage'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidCastException: Unable to cast object of type 'ASP.professorstudymanuals_aspx' to type 'BookstoreEngine.Helpers.BasePage'.]
   Actex.ActexMasterPage.HandleLogout() in D:\projects\Pinnacle\Actex\ActexMasterPage.cs:35
   Actex.ActexMasterPage.OnPreRender(EventArgs e) in D:\projects\Pinnacle\Actex\ActexMasterPage.cs:27
   System.Web.UI.<PreRenderRecursiveInternalAsync>d__249.MoveNext() +638
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.UI.<PreRenderRecursiveInternalAsync>d__249.MoveNext() +1166
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.Util.WithinCancellableCallbackTaskAwaiter.GetResult() +32
   System.Web.UI.<ProcessRequestMainAsync>d__523.MoveNext() +7482


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0