Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application_Error weirdness
Message
From
03/10/2003 17:29:06
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00834941
Message ID:
00835019
Views:
18
OK, my bad ... I saw "error on FileStream" and missed that you said it initally burped on the .ToString().

It might have something to do with your ExceptionObj ... are you sure it exists? Are you sure .InnerException exists? I dunno ... I'm just grasping at straws here.

~~Bonnie


>>It probably has something to do with Write rights in IIS
>
>Hmmm... that probably doesn't account for the problem with ToString(), but it could be causing a problem with the file creation. I'll check that out and see if it narrows things down to only *one* problem <s>.
>
>FWIW, the Message property seems to be pretty useless, as it only returns the type of error, not the full text of the actual error condition as you get with the ToString().
>
>Actually, now that I think about it, your suggestion might apply if things were going south on the line implementing Sw.Write(), but it's barfing on the instantiation of the FileStream object.
>
>In doing some more experimenting, it seems that this behavior is definitely reflecting an error somewhere in the ExceptionHandler code. If, for instance I make a comparison of a value type to an integer value and the value type is null, I get the same behavior.
>
>The nagging question is why I'm getting an error from the ToString()?!?!
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform