I have a program that makes repeated calls to a web service that works fine during the day, but during nightly builds and testing the program repeatedly throws the following exception:
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 192.168.14.115:8090 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)
Oddly enough, if I point a web browser at the web service it works fine so IIS/firewall isn't blocking it. Also, even though the service requires Windows Authentication, both myself and the account the nightly test runs on have permissions to the web site. Any help?