title: Nunit locks while is running a test suite
body: <p>I have an issue when I try to run a test suite in NUnit. It locks while is running the tests and then displays this error message. I used the lastest version of NUnit and I wrote this tests using c#, Visual Studio 2010 and Selenium Client Drivers 2.12.</p>
  
  <p>Any idea?.</p>
  
  <h2><strong>ERROR DETAIL:</strong></h2>
  
  <p>See the end of this message for details on invoking </p>
  
  <p>just-in-time (JIT) debugging instead of this dialog box.</p>
  
  <p><strong>**********</strong> Exception Text <strong>**********</strong></p>
  
  <pre><code>System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:4829
  
  
  
      Server stack trace:
  
  
  
     at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
  
     at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
  
     at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)
  
     at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
  
     at System.Runtime.Remoting.Channels.RemoteConnection.GetSocket()
  
     at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
  
     at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
  
     at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders&amp; responseHeaders, Stream&amp; responseStream)
  
     at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
  
  
  
  Exception rethrown at [0]: 
  
     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
  
     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)
  
     at NUnit.Core.TestRunner.get_Running()
  
     at NUnit.Core.ProxyTestRunner.get_Running()
  
     at NUnit.Util.TestLoader.get_Running()
  
     at NUnit.Gui.NUnitForm.get_IsTestRunning()
  
     at NUnit.Gui.NUnitForm.NUnitForm_Closing(Object sender, CancelEventArgs e)
  
     at System.Windows.Forms.Form.OnClosing(CancelEventArgs e)
  
     at System.Windows.Forms.Form.WmClose(Message&amp; m)
  
     at System.Windows.Forms.Form.WndProc(Message&amp; m)
  
     at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
  
     at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
  
     at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  </code></pre>
  
  <p><strong>**********</strong> Loaded Assemblies <strong>**********</strong></p>
  
  <p>mscorlib</p>
  
  <pre><code>Assembly Version: 2.0.0.0
  
  Win32 Version: 2.0.50727.3625 (GDR.050727-3600)
  
  CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
  </code></pre>
  
  <hr>
  
  <p>nunit</p>
  
  <pre><code>Assembly Version: 2.5.10.11092
  
  Win32 Version: 2.5.10.11092
  
  CodeBase: file:///C:/Program%20Files/NUnit%202.5.10/bin/net-2.0/nunit.exe
  </code></pre>
  
  <hr>
  
  <p>nunit-gui-runner</p>
  
  <pre><code>Assembly Version: 2.5.10.11092
  
  Win32 Version: 2.5.10.11092
  
  CodeBase: file:///C:/Program%20Files/NUnit%202.5.10/bin/net-2.0/lib/nunit-gui-runner.DLL
  </code></pre>
  
  <hr>
  
  <p>nunit.core</p>
  
  <pre><code>Assembly Version: 2.5.10.11092
  
  Win32 Version: 2.5.10.11092
  
  CodeBase: file:///C:/Program%20Files/NUnit%202.5.10/bin/net-2.0/lib/nunit.core.DLL
  </code></pre>
  
  <hr>
  
  <p>nunit.util</p>
  
  <pre><code>Assembly Version: 2.5.10.11092
  
  Win32 Version: 2.5.10.11092
  
  CodeBase: file:///C:/Program%20Files/NUnit%202.5.10/bin/net-2.0/lib/nunit.util.DLL
  </code></pre>
  
  <hr>
  
  <p>nunit.uikit</p>
  
  <pre><code>Assembly Version: 2.5.10.11092
  
  Win32 Version: 2.5.10.11092
  
  CodeBase: file:///C:/Program%20Files/NUnit%202.5.10/bin/net-2.0/lib/nunit.uikit.DLL
  </code></pre>
  
  <hr>
  
  <p>System.Windows.Forms</p>
  
  <pre><code>Assembly Version: 2.0.0.0
  
  Win32 Version: 2.0.50727.3623 (GDR.050727-3600)
  
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
  </code></pre>
  
  <hr>
  
  <p>System</p>
  
  <pre><code>Assembly Version: 2.0.0.0
  
  Win32 Version: 2.0.50727.3624 (GDR.050727-3600)
  
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
  </code></pre>
  
  <hr>
  
  <p>System.Drawing</p>
  
  <pre><code>Assembly Version: 2.0.0.0
  
  Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
  </code></pre>
  
  <hr>
  
  <p>nunit.core.interfaces</p>
  
  <pre><code>Assembly Version: 2.5.10.11092
  
  Win32 Version: 2.5.10.11092
  
  CodeBase: file:///C:/Program%20Files/NUnit%202.5.10/bin/net-2.0/lib/nunit.core.interfaces.DLL
  </code></pre>
  
  <hr>
  
  <p>System.Configuration</p>
  
  <pre><code>Assembly Version: 2.0.0.0
  
  Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
  </code></pre>
  
  <hr>
  
  <p>System.Xml</p>
  
  <pre><code>Assembly Version: 2.0.0.0
  
  Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
  
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
  </code></pre>
  
  <hr>
  
  <p>System.Runtime.Remoting</p>
  
  <pre><code>Assembly Version: 2.0.0.0
  
  Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
  </code></pre>
  
  <hr>
  
  <p>nunit.uiexception</p>
  
  <pre><code>Assembly Version: 2.5.10.11092
  
  Win32 Version: 2.5.10.11092
  
  CodeBase: file:///C:/Program%20Files/NUnit%202.5.10/bin/net-2.0/lib/nunit.uiexception.DLL
  </code></pre>
  
  <hr>
  
  <p>System.Web</p>
  
  <pre><code>Assembly Version: 2.0.0.0
  
  Win32 Version: 2.0.50727.3618 (GDR.050727-3600)
  
  CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
  </code></pre>
  
  <hr>
  
  <p>cdqzko4t</p>
  
  <pre><code>Assembly Version: 2.5.10.11092
  
  Win32 Version: 2.0.50727.3624 (GDR.050727-3600)
  
  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
  </code></pre>
  
  <hr>
  
  <p><strong>**********</strong> JIT Debugging <strong>**********</strong></p>
  
  <p>To enable just-in-time (JIT) debugging, the .config file for this</p>
  
  <p>application or computer (machine.config) must have the</p>
  
  <p>jitDebugging value set in the system.windows.forms section.</p>
  
  <p>The application must also be compiled with debugging</p>
  
  <p>enabled.</p>
  
  <p>For example:</p>
  
  <p></p>
  
  <pre><code>&lt;system.windows.forms jitDebugging="true" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>When JIT debugging is enabled, any unhandled exception</p>
  
  <p>will be sent to the JIT debugger registered on the computer</p>
  
  <p>rather than be handled by this dialog box.</p>