I am using .NET remoting with a class,call it MyClass, that
contains many other classes (say one of them is
MySubClass). I have been able to successfully call
functions from the MyClass, but when I try to access the
sub-classes it gives me a:
System.Runtime. Serialization.S erializationExc eption
"The constructor to deserialze an object of type
MyClass.MySubCl ass was not found."
error. I do have the '[Serializable]' modifier preceeding
the MyClass defn. and preceeding the other subclasses as well.
Also I have included an extra line for MySubClass in my
server.exe.conf ig:
<service>
<wellknown
type="MyNameSpa ce.MyClass,MyAs semblyName"
objectUri = "MyClass.so ap"
mode="Singleton "
/>
<wellknown type="MyNameSpa ce.MyClass.MySu bClass,MyAssemb lyName"
objectUri = "MyClass/MySubClass.soap "
mode="Singleton "
/>
</service>
as well as the corresponding lines in the client.exe.conf ig.
What is the serialization/deserialization process for remoting?
What am I missing?
Cheers,
Jeff.
contains many other classes (say one of them is
MySubClass). I have been able to successfully call
functions from the MyClass, but when I try to access the
sub-classes it gives me a:
System.Runtime. Serialization.S erializationExc eption
"The constructor to deserialze an object of type
MyClass.MySubCl ass was not found."
error. I do have the '[Serializable]' modifier preceeding
the MyClass defn. and preceeding the other subclasses as well.
Also I have included an extra line for MySubClass in my
server.exe.conf ig:
<service>
<wellknown
type="MyNameSpa ce.MyClass,MyAs semblyName"
objectUri = "MyClass.so ap"
mode="Singleton "
/>
<wellknown type="MyNameSpa ce.MyClass.MySu bClass,MyAssemb lyName"
objectUri = "MyClass/MySubClass.soap "
mode="Singleton "
/>
</service>
as well as the corresponding lines in the client.exe.conf ig.
What is the serialization/deserialization process for remoting?
What am I missing?
Cheers,
Jeff.
Comment