HighTechTalks DotNet Forums  

Requested service is not found

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Requested service is not found in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
rKrishna2k6@gmail.com
 
Posts: n/a

Default Requested service is not found - 12-18-2006 , 05:02 PM






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.


Reply With Quote
  #2  
Old   
Oliver Sturm
 
Posts: n/a

Default Re: Requested service is not found - 12-19-2006 , 06:40 AM






Hello rKrishna2k6,

I don't see anything immediately wrong with your code. Unless somebody
else comes forward with a good idea, it might help you to post code for a
sample project that we can try ourselves.


Oliver Sturm
--
http://www.sturmnet.org/blog

Reply With Quote
  #3  
Old   
Vinay Yeluri
 
Posts: n/a

Default RE: Requested service is not found - 12-26-2006 , 02:36 PM



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.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.