I have marked my remote class to be serilized and it has a blank constructo
and I am using my own host
,everything is fine I can get a soap description of my remote object by the
following
url:
http://myserver:8085/VS02?wsdl
My problem is that in client when I reference the remote object because I
have a reference to copy of remote object in my computer ,it makes the
reference from my cleint not the reference.here is cient code and
configuration file.
*********** Code**********
<system.runtime.remoting>
<application name="VersionClient">
<client>
<wellknown mode="Singleton" type=
"VersionServer.Test,VersionServer" url=
http://myserver:8085/VS02/>
</client>
</application>
*************************
*********Client Config fiel***
InitializeComponent();
RemotingConfiguration.Configure(
@"VersionClient.exe.config");
objRemote = new VersionServer.Test(); <-- it makes the refernece from copy
of the object in my computer
*************************
Thanks for your help!
Ali
Dmitriy Lapshin said:
Hi,
I think it is enough to mark the object with the [Serializable] attribute
and make sure the object has a default parameterless constructor and that
all public properties have getters and setters and are of serializable
types.
--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx
ALI-R said:
Is there somebody who can guid me to an example of marshal by value
implementation of remote object?.
I have read a lot of docs but they are mostly focused on marshal by ref
and
there is no complete implementation of marshal by value.
Thanks for your help.
ALI