|
-
Feb 16th, 2006, 10:21 AM
#1
Thread Starter
Fanatic Member
Strange Remoting Problem
Hello !
I have developed a remote object that runs on a server and is communicating with the client through tcp.
This remote object does call functions of another remote object B and communicates with it through http.
Everything was ok until i changed the implementation of the remote object B and now it implements an interface.
Instead of RemotingConfiguration.Configure("RemoteobjectB.config")
and then RemoteObjectB obj=new RemoteObjectB();
i now do
ChannelServices.RegisterChannel(new HttpChannel());
IRemoteObjectB obj = (IRemoteObjectB)Activator.GetObject(typeof(IRemoteObjectB),
"http://someaddress:8989/RemObj);
where IRemoteObjectB is the interface of the remote object b
but i get this error despite the fact that i have already registered a httpchannel for communication .
System.Runtime.Remoting.RemotingException: Cannot create channel sink to connect to URL . An appropriate channel has probably not been registered.
at System.Runtime.Remoting.RemotingServices.Unmarshal(Type classToProxy, String url, Object data)
at System.Activator.GetObject(Type type, String url, Object state)
at System.Activator.GetObject(Type type, String url)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|