J
jeff
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.SerializationException
"The constructor to deserialze an object of type
MyClass.MySubClass 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.config:
<service>
<wellknown
type="MyNameSpace.MyClass,MyAssemblyName"
objectUri = "MyClass.soap"
mode="Singleton"
/>
<wellknown type="MyNameSpace.MyClass.MySubClass,MyAssemblyName"
objectUri = "MyClass/MySubClass.soap"
mode="Singleton"
/>
</service>
as well as the corresponding lines in the client.exe.config.
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.SerializationException
"The constructor to deserialze an object of type
MyClass.MySubClass 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.config:
<service>
<wellknown
type="MyNameSpace.MyClass,MyAssemblyName"
objectUri = "MyClass.soap"
mode="Singleton"
/>
<wellknown type="MyNameSpace.MyClass.MySubClass,MyAssemblyName"
objectUri = "MyClass/MySubClass.soap"
mode="Singleton"
/>
</service>
as well as the corresponding lines in the client.exe.config.
What is the serialization/deserialization process for remoting?
What am I missing?
Cheers,
Jeff.