Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System.Net.WebException : Unable to connect to the remote server

Status
Not open for further replies.

CTl06

Programmer
Aug 22, 2006
17
US
Hello all,
I am keep having this problem when hitting the Webservice from remotely. Below is my error message. I have try turn off firewall, account access but no help. Please help if you have any ideas why?
TheCollectiveTest.tcLayerTests.test_DTO_AddLayer_entity : System.Net.WebException : Unable to connect to the remote server
----> System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at TheCollectiveDTOLayer.LayerService.LayerService.GetNextLayers(Int32 inParentLayerId) in c:\Builds\TheCollective\Collectivebuild3\Sources\DMS\TheCollectiveDTOLayer\Web References\LayerService\Reference.cs:line 155
at TheCollectiveDTOLayer.tcLayerDTO.initTopLayer() in c:\Builds\TheCollective\Collectivebuild3\Sources\DMS\TheCollectiveDTOLayer\tcLayerDTO.cs:line 37
at TheCollectiveDTOLayer.tcLayerDTO.reloadAllLayers() in c:\Builds\TheCollective\Collectivebuild3\Sources\DMS\TheCollectiveDTOLayer\tcLayerDTO.cs:line 82
at TheCollectiveDTOLayer.tcLayerDTO.GetAllLayerNodes() in c:\Builds\TheCollective\Collectivebuild3\Sources\DMS\TheCollectiveDTOLayer\tcLayerDTO.cs:line 386
at TheCollectiveDTOLayer.tcLayerDTO..ctor() in c:\Builds\TheCollective\Collectivebuild3\Sources\DMS\TheCollectiveDTOLayer\tcLayerDTO.cs:line 26
at TheCollectiveTest.tcLayerTests.test_DTO_AddLayer_entity() in c:\Builds\TheCollective\Collectivebuild3\Sources\DMS\TheCollectiveTest\Tests\tcLayerTests.cs:line 425
--WebException
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
 
KDavie
how to do I check whether tcp port is listening or not?

Thank you for your response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top