By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,414 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,414 IT Pros & Developers. It's quick & easy.

ASP.NET 2.0: unexpected exception after Page_Unload()

P: n/a
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(Http Context 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\Temp orary ASP.NET
Files\mimmagazyn\64a9e8a5\4b2f62e8\App_Web_bl9uers v.0.cs:line 0 at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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/
Jul 18 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.


"RAM" <r_********@poczta.onet.plwrote in message
news:uc********************************@4ax.com...
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(Http Context 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\Temp orary ASP.NET
Files\mimmagazyn\64a9e8a5\4b2f62e8\App_Web_bl9uers v.0.cs:line 0 at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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/

Jul 20 '06 #2

P: n/a
RAM
On Thu, 20 Jul 2006 09:50:27 +0200, "Paolo"
<paolo_benetti@-NOSPAM-hotmail.comwrote:
>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/
Jul 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.