Hello rKrishna,
I have faced this problem before, After registering the channel on the
client side i just did an Activator.GetObject and it seemed to work, i'm
still looking for an explanation as to why the error occured, hope the
following code helps
remoteObject = Activator.GetObject(typeof("objectname"),RemoteURL );
my RemoteURL in the web.config file is as follows
tcp://servername:9010/ClassName
On the server side this is what i did after the channel registration
RemotingConfiguration.RegisterWellKnownServiceType (
typeof(AssemblyName),
"Complete Class Name",
WellKnownObjectMode.SingleCall);
Hope this helps
Vinay
"rKrishna2k6 (AT) gmail (DOT) com" wrote:
Quote:
server registration is as follows....
TcpServerChannel channel = new TcpServerChannel(10000);
ChannelServices.RegisterChannel(channel);
RemotingConfiguration.RegisterWellKnownServiceType (typeof(serverservice),"serverservice",WellKnownOb jectMode.SingleCall);
client code is as follows....
TcpClientChannel channel = new TcpClientChannel();
ChannelServices.RegisterChannel(channel);
RemotingConfiguration.RegisterActivatedClientType( typeof(serverservice),"tcp://127.0.0.1:10000/serverservice");
serverservice ss = new serverservice(); Here I am getting requested
service is not found error.
Any help greatly appreciated. |