Results 1 to 2 of 2

Thread: Strange Remoting Problem

  1. #1

    Thread Starter
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694

    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)

  2. #2

    Thread Starter
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694

    Re: Strange Remoting Problem

    never mind i solved it . i read the remote address wrongly

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width