A connection attempt failed because the connected
Current scenario :
I am having an application using the .Net remoting concept.We are using SingleCall well-known objects to call remote object that do not retain state information that relates to each call in their memory.We are using tcp channel with binary formatter and port 7001.
The component to be used remotingly is hosted in a Windows Service and 2 instances of the services are installed on two machines.The configuration of the services, i.e. the URI to get the remoting running, is stored in the central configuration database.The proxy reads the configuration to determine how many services are available, and how they can be reached. When a request comes in (that is, a method has been called), the proxy chooses a random Service from a list with all available services and tries 10 times.
While creating an instance remote class through client proxy it tries 10 times,then gives an error: "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
Stack trace information
Error:A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Method:Void HandleReturnMessage(System.Runtime.Remoting.Messag ing.IMessage, System.Runtime.Remoting.Messaging.IMessage)
Server stack trace:
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Runtime.Remoting.Channels.RemoteConnection. CreateNewSocket()
at System.Runtime.Remoting.Channels.SocketCache.GetSo cket(String machineAndPort)
at System.Runtime.Remoting.Channels.Tcp.TcpClientTran sportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
at System.Runtime.Remoting.Channels.Tcp.TcpClientTran sportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
at System.Runtime.Remoting.Channels.BinaryClientForma tterSink.SyncProcessMessage(IMessage msg)
Exception rethrown at :
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 TCom.Wdhs.ResourceManager.IWDHSResourceManager.Cha ngeDBAdmin(String languageID, String realname, String username, String oldPWD, String newPWD)
at TCom.Wdhs.ResourceManager.ResourceManagerProxy.Cha ngeDBAdmin(String languageID, String realname, String username, String oldPWD, String newPWD)
Checks already made:
I have checked the destination address ,it is a valid IP address.I have validated hostname,it resolve to the correct address.
I am unable to figure out reasons for it.Any inputs for resolution will be of great help
Waiting for quick replies as one of my functionality is not working because of it