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
Server stack trace:
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 :
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)
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.
By rupen.paul in forum .NET
Last Post: 08-07-2009, 02:19 AM
By tom margraff in forum ASP.NET
Last Post: 07-05-2001, 08:11 AM
Last Post: 09-15-2000, 09:44 AM
By Mark Alexander Bertenshaw in forum ASP.NET
Last Post: 05-31-2000, 01:59 PM
Tags for this Thread
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL