I am trying to execute Selenium tests written in C#.NET with NUnit through Jenkins, but the following error message is displayed:
-> error: Unexpected error. 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 127.0.0.1:13748
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
My build configuration in Jenkins is as follows:
The solution appears to build successfully, but again, upon executing the tests I receive the above error message.
Note: I've checked my firewall settings and Jenkins is allowed through the firewall.
Any feedback would be greatly appreciated.