Server.Transfer on Multiple pages
-
I have multiple pages doing server.transfer from one page to the next. I keep getting this on each page randomly...Any thoughts? If I recycle the AppPool in IIS one page works then the next one fails... Unable to cast object of type 'ASP.UserTaskMenu' to type 'ASP.UserTaskMenu'. 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.UserTaskMenu' to type 'ASP.UserTaskMenu'. Source Error: Line 86: Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Line 87: If Not IsPostBack Then Line 88: LoginPage = CType(Context.Handler, UserTaskMenu) Line 89: lblA.Text = CStr(LoginPage.Acct) Line 90: lblE.Text = CStr(LoginPage.Email) Thanks, Taen Karth