DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    May 2010

    Question Unable to connect to the remote server only to a specific machine [.Net Remoting]

    Hi! I had wrote a client server console applications using .NET remoting where the client reside in Computer A and the server listening in Server B. It works fine until I switch the client to place in Computer C.

    Currently when client in C make call to B it will threw out this error "Unable to connect to the remote server" caught from the exception.

    I had try to do a few experiments where C call to A, B call C and A call C, all works fine. Except C call to B.

    Does anyone had any idea that why only C could not call B? Thanks.

    Below is the error message and stack trace that I got:-

    Message: Unable to connect to the remote server

    Stack Trace:

    Server stack trace:

    at System.Net.HttpWebRequest.GetRequestStream()

    at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessAndSend(IMessage msg, ITransportHeaders headers, Stream inputStream)

    at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)

    at System.Runtime.Remoting.Channels.SoapClientFormatterSink.SyncProcessMessage(IMessage msg)

    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 DVS_Shared.RemoteObject.IRemoteServer.CallBackAgent(Int64 jobID, String machineName)

    at DVS_Agent.Classes.RemoteCall.CallBackAgent(Int64 requestID, String logPath, String machineName)

  2. #2
    Join Date
    May 2010


    I had found out the root cause. In B machine, there are 2 ip addresses found in ipconfig. When I try to ping B both from A and C it yields different ip address result.

    Therefore, it is more safer to use ip address when doing remoting call because you could not avoid this issue to happen again on another machine where there are some error in network configuration.

Similar Threads

  1. Replies: 0
    Last Post: 08-07-2009, 01:19 AM
  2. Visual Interdev error: Unable to Connect to Server
    By tom margraff in forum ASP.NET
    Replies: 1
    Last Post: 07-05-2001, 07:11 AM
  3. Replies: 7
    Last Post: 09-15-2000, 08:44 AM
  4. Need to call a function on a remote server from an ASP
    By Mark Alexander Bertenshaw in forum ASP.NET
    Replies: 0
    Last Post: 05-31-2000, 12:59 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.