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.BinaryServerForma tterSink.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.HandleRe turnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(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