Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Application_Error weirdness
Message
De
03/10/2003 17:29:06
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00834941
Message ID:
00835019
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform