I have a fairly extensive background with Selenium in both Java and C#
shops and normally when I would see this type of error I would be
reminded to start the Selenium proxy server. We have recently
upgraded to Selenium 2 which no longer requires the proxy but I am now
seeing the following stack trace. This doesn't seem to be a
widespread problem with our current code base on other development and
deployment machines in our shop so, it leads me to believe it's a
configuration issue. The exception seems straight forward in that
there is no service listening but Selenium 2 does not proxy the
connections like it used to. Any suggestions would be greatly
appreciated.
Stack Trace:
System.Exception : Cannot open('
http://www.[removed].com/search/
#170').
----> OpenQA.Selenium.WebDriverException : 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 [My IP was here]:7055
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, Int32
timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext&
context)
at System.Net.HttpWebRequest.GetRequestStream()
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command
commandToExecute) in e:\Projects\WebDriver\trunk\dotnet\src
\WebDriver.Remote\HttpCommandExecutor.cs:line 76
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(DriverCommand
driverCommandToExecute, Dictionary`2 parameters) in e:\Projects
\WebDriver\trunk\dotnet\src\WebDriver.Remote\RemoteWebDriver.cs:line
769