Phil Jones
8/21/2004 2:17:00 AM
I'm having a problem with Exceptions. If I call my server application from
a client, and the invoked server procedure throws a standard system
[ApplicationException] there is no problem. The client reports accurately
the details of the excpetion.
However, if I have a custom error - for instance:
<Serializable()> Public Class MyException
Inherits Exception
End Class
....and the server procedure throw's this error - the following problem
occurs on the client:
[SerializationException] The constructor to deserialize an object of type
MyException was not found.
Am I missing something with the <Serializable()> attribute? Is there some
other adornment I need to give to the constructor to make it deserialize
correctly?
I'll be trapping these server errors and sending then to the event log - but
as I develop it gets confusing, because I'm not actually seeing the error -
I'm just getting the [Serialization] error.
Thanks everyone!
===
Phil