When converting the project to asp.net 2 I can't figure out how to fix this casting issue. In the past I just had to ensure that the base.OnInit(e); came first in the OnInit method. However this is the case even with a fresh install of ThePhile being converted with VS2005 I get the following error everywhere this cast occurs.
An unexpected error has occurred on this page. The system administrators have been notified. Please feel free to contact us with the information surrounding this error.
The error occurred in:
http://localhost/ThePhile/Modules/Ne...ategories.aspx
Error Message: Unable to cast object of type 'System.Security.Principal.GenericPrincipal' to type 'Wrox.WebModules.Accounts.Business.PhilePrincipal' .
--------------------------------------------------------------------------------
Stack Trace:
System.InvalidCastException: Unable to cast object of type 'System.Security.Principal.GenericPrincipal' to type 'Wrox.WebModules.Accounts.Business.PhilePrincipal' . at Wrox.WebModules.NewsManager.Web.Categories.Page_Lo ad(Object sender, EventArgs e) in c:\wrox\ThePhile\Modules\NewsManager\Admin\Categor ies.aspx.cs:line 24 at System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Has anyone else come across this problem? Thanks in advance for any help.
Sean