Tests randomly failing with error "No connection could be made because the target machine actively refused it 127.0.0.1:64458"

178 views
Skip to first unread message

Sathishkumar Kaliavaradhan

unread,
Mar 24, 2017, 3:36:43 PM3/24/17
to NUnit-Discuss
Hi All,

I am randomly getting the below error while executing the test but second time same test executes successfully.

Tests executed from the automation nunit engine sometimes randomly fail with error below

Message:No connection could be made because the target machine actively refused it 127.0.0.1:64458
StackTrace:
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.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& responseHeaders, Stream& 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& msgData, Int32 type)
at NUnit.Engine.ITestEngineRunner.Unload()
at NUnit.Engine.Runners.ProcessRunner.UnloadPackage()
at NUnit.Engine.Runners.AbstractTestRunner.Unload()
at NUnit.Engine.Runners.MasterTestRunner.UnloadPackage()
at NUnit.Engine.Runners.AbstractTestRunner.Dispose(Boolean disposing)
at NUnit.Engine.Runners.MasterTestRunner.Dispose(Boolean disposing)
at NUnit.Engine.Runners.AbstractTestRunner.Dispose()

Any idea, what is wrong with the test to NUnit throw this exception?

Thanks,

Sathish


Charlie Poole

unread,
Mar 24, 2017, 6:30:56 PM3/24/17
to NUnit-Discuss
Versions?

--
You received this message because you are subscribed to the Google Groups "NUnit-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nunit-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to nunit-...@googlegroups.com.
Visit this group at https://groups.google.com/group/nunit-discuss.
For more options, visit https://groups.google.com/d/optout.

Sathishkumar Kaliavaradhan

unread,
Mar 27, 2017, 9:15:50 AM3/27/17
to NUnit-Discuss
Hi Charlie,

Thanks for your reply, I am using the nunit version 3.4.0.0.

Thanks,
Sathish
Versions?

To unsubscribe from this group and stop receiving emails from it, send an email to nunit-discus...@googlegroups.com.

Sathishkumar Kaliavaradhan

unread,
Apr 12, 2017, 11:51:53 AM4/12/17
to NUnit-Discuss
Hi Charlie,

Do you have any solution for this problem?

Thanks,
Sathish

Sathishkumar Kaliavaradhan

unread,
Apr 17, 2017, 10:44:14 AM4/17/17
to NUnit-Discuss
Hi Charlie,

Do you have any update on this issue?

May I know exact exception type from the Nunit engine? it's really hard for me to reproduce to get the exception type

Is there any chance that latest release should have fix for this issue?

Thanks in advance for your help on this issue.

-Sathish
Reply all
Reply to author
Forward
0 new messages