Rakesh Rajan's blog

Thoughts on .NET, software and a few trivial things...

HttpUnhandledException and HttpParseException - they are now Serializable :)

In .NET 1.x, these exceptions weren't serializable - which meant we couldn't persist/transport them in a direct manner.

Thankfully, .NET 2.0 has both of them serializable

 

Posted: Jul 08 2005, 07:09 PM by rakeshrajan | with 3 comment(s)
Filed under:

Comments

rakeshrajan said:

can you describe a situation where we would apply this?
# July 21, 2005 9:58 PM

rakeshrajan said:

Sure...recently, I had to persist exceptions from an ASP.NET app temporarily into MSMQ, from which a Windows Service would later extract each of them and log them into an XML file.

Since these two exceptions weren't serializable, it wasn't possible to create a 'clean' generic solution (inside the Global.asax Application.Error handler) for serilizing the exception objects into MSMQ.
# July 21, 2005 10:47 PM

TrackBack said:

HttpUnhandledException and HttpParseException - they are now Serializable :)ooeess
# July 31, 2005 10:30 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)