Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Internal ASP.Net error bubbling events

Reply
Thread Tools

Internal ASP.Net error bubbling events

 
 
=?Utf-8?B?RGFsZQ==?=
Guest
Posts: n/a
 
      04-11-2006
I have an application that, on my development PC and in production, throws
unexpected null reference exceptions when returning from the click event
handler of a button. The only fix is to do an IISReset or to reboot the
server. This is obviously not acceptable in production.

The call stack shows non-user code, and my code works most of the time, so I
have to assume it is internal to ASP.Net. The exception never occurs in the
hander, only upon exiting the handler. The only way to catch the exception
is in the Application_Error method in Global.asax.

The stack trace is:

StackTrace: " at System.Web.UI.Control.OnBubbleEvent(Object source,
EventArgs args) at System.Web.UI.Control.RaiseBubbleEvent(Object source,
EventArgs args) at
System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e) at
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) at
System.Web.UI.Page.ProcessRequestMain()"

Thanks
--
Dale Preston
MCAD C#
MCSE, MCDBA
 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      04-12-2006
Hi Dale,

Welcome to the ASP.NET newsgroup.

As for the problem you mentioned, it does like something incorrect in the
ASP.NET runtime's event processing. However, I still think it we should
isolate the problem to see whether it is page or environment specific.
Since you mentioned that the problem can be catched through the
Application_Error event, can you also catch it through the page's
Page_Error event?

Also, it'll be better if you can use a simplified page (or in a new created
project) to reproduce this behavior. That can let us concencrate on
isolated code logic.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)











 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGFsZQ==?=
Guest
Posts: n/a
 
      04-13-2006
Thank you, those are both excellent suggestions. Unfortunately, the problem
is very intermittent and not reproducable at will. I will prepare the code
for a test and when it occurs again, I will attempt to test those suggestions.

Thanks,
--
Dale Preston
MCAD C#
MCSE, MCDBA


"Steven Cheng[MSFT]" wrote:

> Hi Dale,
>
> Welcome to the ASP.NET newsgroup.
>
> As for the problem you mentioned, it does like something incorrect in the
> ASP.NET runtime's event processing. However, I still think it we should
> isolate the problem to see whether it is page or environment specific.
> Since you mentioned that the problem can be catched through the
> Application_Error event, can you also catch it through the page's
> Page_Error event?
>
> Also, it'll be better if you can use a simplified page (or in a new created
> project) to reproduce this behavior. That can let us concencrate on
> isolated code logic.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Community Support
>
>
> ==================================================
>
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
>
> ==================================================
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
>
>
>
>
>
>
>
>
>
>

 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      04-14-2006
Thanks for your response Dale,

Glad to be of assistance. If there is any new update, please feel free to
post here.

Good luck!

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ascx / dhtml events bubbling up to ctl event John ASP .Net 1 05-18-2005 09:09 PM
Bubbling up custom events in datagrid Anonymous Poster ASP .Net Datagrid Control 0 01-25-2005 02:02 PM
Bubbling Up Events a ASP .Net Web Controls 4 11-13-2003 11:52 AM
C# UserControl Bubbling events Andy ASP .Net 3 10-28-2003 04:08 PM
Composite Controls and Bubbling events Javi ASP .Net Building Controls 1 07-09-2003 08:02 PM



Advertisments