473,719 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET 2.0: unexpected exception after Page_Unload()

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.Htt pUnhandledExcep tion' was
thrown.
Stack: at System.Web.UI.P age.HandleError (Exception e) at
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
at System.Web.UI.P age.ProcessRequ est(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
at System.Web.UI.P age.ProcessRequ est() at
System.Web.UI.P age.ProcessRequ estWithNoAssert (HttpContext context) at
System.Web.UI.P age.ProcessRequ est(HttpContext context) at
ASP.default_asp x.ProcessReques t(HttpContext context) in
c:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET
Files\mimmagazy n\64a9e8a5\4b2f 62e8\App_Web_bl 9uersv.0.cs:lin e 0 at
System.Web.Http Application.Cal lHandlerExecuti onStep.System.W eb.HttpApplicat ion.IExecutionS tep.Execute()
at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
Boolean& completedSynchr onously)
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
2 2132
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_********@poc zta.onet.plwrot e in message
news:uc******** *************** *********@4ax.c om...
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.Htt pUnhandledExcep tion' was
thrown.
Stack: at System.Web.UI.P age.HandleError (Exception e) at
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
at System.Web.UI.P age.ProcessRequ est(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
at System.Web.UI.P age.ProcessRequ est() at
System.Web.UI.P age.ProcessRequ estWithNoAssert (HttpContext context) at
System.Web.UI.P age.ProcessRequ est(HttpContext context) at
ASP.default_asp x.ProcessReques t(HttpContext context) in
c:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET
Files\mimmagazy n\64a9e8a5\4b2f 62e8\App_Web_bl 9uersv.0.cs:lin e 0 at
System.Web.Http Application.Cal lHandlerExecuti onStep.System.W eb.HttpApplicat ion.IExecutionS tep.Execute()
at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
Boolean& completedSynchr onously)
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
RAM
On Thu, 20 Jul 2006 09:50:27 +0200, "Paolo"
<paolo_benett i@-NOSPAM-hotmail.comwrot e:
>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_unloa d() 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
15696
by: Robert Scheer | last post by:
Hi. Debugging one of my pages I noticed that everytime I call the page, the first event to run is Page_Load and after it the Page_Unload. If I postback to the page the Page_Unload runs again. Shouldn't the Page_Unload event runs only when I close the page or submit the page? I can't understand why the Unload event runs when I load the page !! Thanks,
19
3489
by: Heidi Hundåla | last post by:
Hi ! I have a Wep App in C#. Page_Unload fires after Page_Load, and it seems totally unreasonable when you want to use this event when you _leave_ the page. In my project we wanted to use the Page_Unload - event to clean up the Session variables, but when it turns out that it fires before the end, it screws up the code, and
0
1112
by: bburkhart | last post by:
I am running into a issue catching a thrown error in the Control.Unload event. Is it possible to throw an Application error from the Unload event and have the global.asax Application_Error catch it? Here is a code sample, this is in my PageBase.cs private void InitializeComponent() { this.Unload += new System.EventHandler(this.Page_UnLoad); this.Load += new System.EventHandler(this.Page_Load); this.PreRender += new...
4
6093
by: Larry Morris | last post by:
The following code, pasted into a web form with a link button on it, will cause the page_unload event to fire twice. If I remove the response.redirect, the problem goes away :). I've got a work around, but I'm curious how one is supposed to programmatically navigate between web pages without the page_unload event firing twice. Thanks, Larry
3
9585
by: Andrew Vickers | last post by:
Hi, I'm just trying to manually add a page_unload function in my code-behind module, but with no success. Can anyone help me with the correct syntax to add the function to my code? I've tried the following already with no joy: protected void Page_Unload(object sender, System.EventArgs e) { Session.Add("SES_CURRENT_SRQ", 34);
0
1708
by: JeffM | last post by:
This seems odd, but it appears that the Page_Unload event is fired twice on a Response.Redirect or a Server.Transfer. The output below demonstrates that during the move from the first to the 2nd page, the event fires twice on the 1st page during Postback. The "var" set the first time is visible the 2nd time it fires. Anyone else notice this? Thanks, Jeff
7
2113
by: Cenk | last post by:
Hi, After converting my projects to ASP.Net 2.0 I have seen a problem with Page_unload. Ä°n framework 1.1 page_unload event fires when you are leaving the page or has closed the browser window. Now in 2.0 when you initally load the page Page_unload event fires after page_load event. In some of our aspx pages we craete some versions of original records and if the user presses cancel button or just leaves the page without cancelling we...
2
1678
by: R.A.M. | last post by:
Hello, I have written simple ASP.NET application but during execution I got unhandled exception. I have checked (debugging): it is not raised in my code, it uccurs after Page_Unload. Here's description: 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
0
841
by: RAM | last post by:
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
0
8829
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8726
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9361
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9125
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9054
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7997
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
3186
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.