Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 5th, 2006, 06:58 AM
Registered User
 
Join Date: Feb 2006
Location: , Delhi, India.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:30 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.