Remoting Problem:Requested service Not found

V

vijay

Hello
I am learnign Dot NEt
I have implemted
1. remote object
2.Listener
3.Client

Listener started and listening to requests
Client started and able to nstantiate remote object
But when a Remote object method is invoked, following error happens
Error
System.Runtime.Remoting.RemotingException: Requested Service not found

Server stack trace:
at
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IS
erverChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeaders& responseHeaders, Stream& responseStream)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at RemotObject.CIPCClass.StringMethod()
at RemoteClient.Client.Main(String[] args) in
d:\project\source\remoteclient\client.cs:line 22

My server config file
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown
mode="Singleton"
type="CIPCClass, CIPCClass"
objectUri="CIPCClass.rem"
/>
</service>
<channels>
<channel ref="tcp" port="6123"/>
</channels>
</application>
</system.runtime.remoting>
</configuration>

Client config file
<configuration>
<system.runtime.remoting>
<application>
<client>
<wellknown
type="CIPCClass, CIPCClass"
url="tcp://localhost:6123/CIPCClass"
/>
</client>
</application>
</system.runtime.remoting>
</configuration>

I guess there is some problem with my configuration file
Please help
Regards
Srikanth B
 
F

Frans Bouma [C# MVP]

And if you replace 'localhost' with the machine name your machine really
has? localhost is an alias for 127.0.0.1, and your machine likely has
another IP address as well with a netbios name (or full domain name). The
service might listen on that IP address and port, not on localhost:6123

FB

Hello
I am learnign Dot NEt
I have implemted
1. remote object
2.Listener
3.Client

Listener started and listening to requests
Client started and able to nstantiate remote object
But when a Remote object method is invoked, following error happens
Error
System.Runtime.Remoting.RemotingException: Requested Service not found

Server stack trace:
at
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessag e
(IS erverChannelSinkStack sinkStack, IMessage requestMsg,
ITransportHeaders requestHeaders, Stream requestStream, IMessage&
responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)

Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage (IMessage
reqMsg, IMessage retMsg)
at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at RemotObject.CIPCClass.StringMethod()
at RemoteClient.Client.Main(String[] args) in
d:\project\source\remoteclient\client.cs:line 22

My server config file
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown
mode="Singleton"
type="CIPCClass, CIPCClass"
objectUri="CIPCClass.rem"
/>
</service>
<channels>
<channel ref="tcp" port="6123"/>
</channels>
</application>
</system.runtime.remoting>
</configuration>

Client config file
<configuration>
<system.runtime.remoting>
<application>
<client>
<wellknown
type="CIPCClass, CIPCClass"
url="tcp://localhost:6123/CIPCClass"
/>
</client>
</application>
</system.runtime.remoting>
</configuration>

I guess there is some problem with my configuration file
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top