Lord2702
8/25/2004 5:10:00 AM
Tue. Aug. 24, 2004 10:10 PM PT
I have a remoting server, SingleCall, on which I am hosting a COM+ Business
Object Component, Now when I am getting an Object/ Class, which is marked by
Serializable Attribute, also, using Custom serialization with ISerializable
interface, with protected: Constructor, and GetObjectData method. This
object is derived from MarshalByRefObject. Because, I only want to serialize
this on client and then server side.
Without applying any security permission I get this object passed correctly,
from server to client, and client receives it correctly.
Now, I want to pass it from client to Server, but I get
SerializationException, that security is not permitted. I apply the Security
attribute as follows:
[SecurityPermissionAttribute(SecurityAction::Demand,SerializationFormatter=t
rue)]
But still I am getting the same exception ? Why ? or anything more I have to
do, like instead using protected: constructor, do I have to use
SetObjectData, and mark this method with security attribute. Anyhow, I want
to send this object from Client to Server.
Any idea.
Thanks in advance.