Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 5th, 2006, 06:58 AM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default A connection attempt failed because the connected

Hi All,

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."

Error Message:

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

Source:mscorlib

Method:Void HandleReturnMessage(System.Runtime.Remoting.Messag ing.IMessage, System.Runtime.Remoting.Messaging.IMessage)

Stack:

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 [0]:

   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
Thanks
Purti Malhotra

Purti Malhotra





Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect. the connection failed kau_shuk VB.NET 2002/2003 Basics 0 December 29th, 2007 02:05 AM
mysql connection failed in linux kalai JSP Basics 0 December 14th, 2004 03:40 AM
Database connection failed after SP2 Ned VB Databases Basics 0 August 31st, 2004 02:59 PM
Login Failed: Not assoc. w/ Trusted Connection xgbnow Pro VB Databases 4 March 4th, 2004 11:52 AM
Sql server connection failed AcidHell2 All Other Wrox Books 0 February 26th, 2004 01:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.