ASP.NET 2.0: unexpected exception after Page_Unload()

R

RAM

Hello,
I am learning .NET 2.0 and I have written simple application with
Default.aspx page and logging in Logon.aspx/Logon.aspx.cs.
After Page_Unload of Logon.aspx.cs (I have checked by debugging) I
receive error that I don't understand:

Message: Exception of type 'System.Web.HttpUnhandledException' was
thrown.
Stack: at System.Web.UI.Page.HandleError(Exception e) at
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest() at
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at
System.Web.UI.Page.ProcessRequest(HttpContext context) at
ASP.default_aspx.ProcessRequest(HttpContext context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\mimmagazyn\64a9e8a5\4b2f62e8\App_Web_bl9uersv.0.cs:line 0 at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)
Source: System.Web

There's no error in my code - I have checked by debugging.
Please help. I cannot continue working.
/RAM/
 
P

Paolo

Please, ensure that you call the base Page_Unload, that is the Page_Unload
of the parent class at the end of your Page_Unload: maybe some cleanup code
is not performed correctly.

Otherwise, send the code in you Page_Unload; it's quite impossible to
understand what's going on only from the stack trace.

Regards,
Paolo.
 
R

RAM

Please, ensure that you call the base Page_Unload, that is the Page_Unload
of the parent class at the end of your Page_Unload: maybe some cleanup code
is not performed correctly.
I added base.page_Load(), base.Page_unload() but it didn't help.
Otherwise, send the code in you Page_Unload; it's quite impossible to
understand what's going on only from the stack trace.
My Page_Load()/Page_Uload() are empty.
I attach mini-project.
/RAM/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top