Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application_Error weirdness
Message
From
04/10/2003 13:50:23
 
 
To
03/10/2003 17:29:06
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00834941
Message ID:
00835131
Views:
20
>It might have something to do with your ExceptionObj ... are you sure it exists? Are you sure .InnerException exists?

Yes on both. What I was doing at one point is to save the exception object to a session variable, then call an error reporting ASPX page which retrieves it, and successfully does the ToString() and provides all the interesting information about the error that occurred, so I know that both the Exception and InnerException objects exist. I ended up doing this as I first started by calling the error reporting page and attempted to pass the value returned by ToString() as a parameter to the page, and the Application_Error method was choking on the ToString(). Then after I succeeded in getting the Exception object to the called page via the session variable, I figured that I might be able to get around this by calling the ToString() in a class (and also figured that a general-purpose ExceptionHandler was the way to go anyway), but it still causes a problem. Interesting that it doesn't cause a problem when it's called in the code-behind for a page launched from the Application_Error, huh?
>>-Steve->>

Steve Sawyer
Geeks and Gurus, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform