none
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. RRS feed

  • Question

  • Hi,

    I m getting below error 

    "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."

    I m using Owin based hosting and Asp.net middleware pipeline. On using SSL security getting below error but not consistently.

    Thanks in advance.

    Below are trace logs:


    Philips.Platform.Tests.Common.FrameworkTests.CustomContentHandlerTests(False) »Suite »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »TestFlow »#< SUITE xyz.Tests.Common.FrameworkTests.CustomContentHandlerTests(False) » » » » »39f8906c-af10-4371-9dba-56a9e9d4453c »
    20181009-030623.376696 »xyz.Tests.Common.FrameworkTests.CustomContentHandlerTests(True) »Suite »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »TestFlow »#> SUITE xyz.Tests.Common.FrameworkTests.CustomContentHandlerTests(True) » » » »PF-EHV-155 »dd4d30e2-424a-4889-a3e2-e78d954b52ab »
    20181009-030623.679944 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »TestFlow »#> TEST xyz.Tests.Common.FrameworkTests.CustomContentHandlerTests(True).TestBsonContentHandler » » » »PF-EHV-155 »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030625.389484 »xyz.TestFramework »ExceptionTracer »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »19 »Thread 19 »DebugInfo »Trace »FirstChanceException »FirstChanceException 'Expected/ThirdParty/Microsoft® .NET Framework' causing 'System.Net.Sockets.SocketException' - An existing connection was forcibly closed by the remote host »[CausedBy=Expected/ThirdParty/Microsoft® .NET Framework],[FirstChanceException=System.Net.Sockets.SocketException],[Count=1] » » »PF-EHV-155 »d9321c4b-b583-40f2-be62-efb0ea9ae24b »
    20181009-030625.390395 »xyz.TestFramework »ExceptionTracer »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »19 »Thread 19 »DebugInfo »Trace »FirstChanceException »FirstChanceException 'NotExpected/ThirdParty/Microsoft® .NET Framework' causing 'System.IO.IOException' - Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. »[CausedBy=NotExpected/ThirdParty/Microsoft® .NET Framework],[FirstChanceException=System.IO.IOException],[Count=1] » »CallStack:
        at System.Net.Sockets.NetworkStream.EndRead(System.IAsyncResult asyncResult) [IL: 0x5F][Native: 0x31]
        at System.Net.FixedSizeReader.ReadCallback(System.IAsyncResult transportResult) [IL: 0x1C][Native: 0x7E]
        at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) [IL: 0x3E][Native: 0x8C]
        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x79][Native: 0x160]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x9][Native: 0x14]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state) [IL: 0x34][Native: 0x52]
        at System.Net.ContextAwareResult.Complete(System.IntPtr userToken) [IL: 0x61][Native: 0xC9]
        at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result,System.IntPtr userToken) [IL: 0x6B][Native: 0xBC]
        at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(System.UInt32 errorCode,System.UInt32 numBytes,System.Threading.NativeOverlapped* nativeOverlapped) [IL: 0xA3][Native: 0x127]
        at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(System.UInt32 errorCode,System.UInt32 numBytes,System.Threading.NativeOverlapped* pOVERLAP) [IL: 0x78][Native: 0x7C]

    »PF-EHV-155 »d9321c4b-b583-40f2-be62-efb0ea9ae24b »
    20181009-030626.197222 »xyz.TestFramework »ExceptionTracer »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »19 »Thread 19 »DebugInfo »Trace »FirstChanceException »FirstChanceException 'NotExpected/ThirdParty/Microsoft® .NET Framework' causing 'System.ObjectDisposedException' - Safe handle has been closed »[CausedBy=NotExpected/ThirdParty/Microsoft® .NET Framework],[FirstChanceException=System.ObjectDisposedException],[Count=1] » »CallStack:
        at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(System.Boolean& success)[Native: 0x0]
        at System.Net.SafeFreeContextBufferChannelBinding.QueryContextChannelBinding_SECURITY(System.Net.SafeDeleteContext phContext,System.Net.ContextAttribute contextAttribute,System.Net.Bindings* buffer,System.Net.SafeFreeContextBufferChannelBinding refHandle) [IL: 0x19][Native: 0x5B]
        at System.Net.SSPISecureChannelType.QueryContextChannelBinding(System.Net.SafeDeleteContext phContext,System.Net.ContextAttribute attribute,System.Net.SafeFreeContextBufferChannelBinding& refHandle) [IL: 0x14][Native: 0x4D]
        at System.Net.TlsStream.Dispose(System.Boolean disposing) [IL: 0x14][Native: 0xA8]
        at System.IO.Stream.Close() [IL: 0x7][Native: 0x1A]
        at System.Net.Connection.HandleError(System.Boolean writeDone,System.Boolean readDone,System.Net.WebExceptionStatus webExceptionStatus,System.Net.ConnectionReturnResult& returnResult) [IL: 0x38][Native: 0xBF]
        at System.Net.ConnectStream.IOError(System.Exception exception,System.Boolean willThrow) [IL: 0x84][Native: 0x165]
        at System.Net.ConnectStream.WriteHeadersCallback(System.IAsyncResult ar) [IL: 0x31][Native: 0xA4]
        at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) [IL: 0x3E][Native: 0x8C]
        at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result,System.IntPtr userToken) [IL: 0x6B][Native: 0xBC]
        at System.Net.TlsStream.ResumeIOWorker(System.Object result) [IL: 0x7][Native: 0x42]
        at System.Net.TlsStream.WakeupPendingIO(System.IAsyncResult ar) [IL: 0xAD][Native: 0x11D]
        at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) [IL: 0x3E][Native: 0x8C]
        at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result,System.IntPtr userToken) [IL: 0x6B][Native: 0xBC]
        at System.Net.AsyncProtocolRequest.CompleteWithError(System.Exception e) [IL: 0xC][Native: 0x13]
        at System.Net.FixedSizeReader.ReadCallback(System.IAsyncResult transportResult) [IL: 0x1C][Native: 0x7E]
        at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) [IL: 0x3E][Native: 0x8C]
        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x79][Native: 0x160]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x9][Native: 0x14]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state) [IL: 0x34][Native: 0x52]
        at System.Net.ContextAwareResult.Complete(System.IntPtr userToken) [IL: 0x61][Native: 0xC9]
        at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result,System.IntPtr userToken) [IL: 0x6B][Native: 0xBC]
        at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(System.UInt32 errorCode,System.UInt32 numBytes,System.Threading.NativeOverlapped* nativeOverlapped) [IL: 0xA3][Native: 0x127]
        at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(System.UInt32 errorCode,System.UInt32 numBytes,System.Threading.NativeOverlapped* pOVERLAP) [IL: 0x78][Native: 0x7C]

    »PF-EHV-155 »d9321c4b-b583-40f2-be62-efb0ea9ae24b »
    20181009-030626.210759 »xyz.TestFramework »ExceptionTracer »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »19 »Thread 19 »DebugInfo »Trace »FirstChanceException »FirstChanceException 'NotExpected/ThirdParty/Microsoft® .NET Framework' causing 'System.Net.WebException' - The underlying connection was closed: An unexpected error occurred on a send. »[CausedBy=NotExpected/ThirdParty/Microsoft® .NET Framework],[FirstChanceException=System.Net.WebException],[Count=1] » »CallStack:
        at System.Net.HttpWebRequest.EndGetRequestStream(System.IAsyncResult asyncResult,System.Net.TransportContext& context) [IL: 0x1E][Native: 0x1E6]
        at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(System.IAsyncResult ar) [IL: 0x20][Native: 0x92]
        at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) [IL: 0x3E][Native: 0x8C]
        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x79][Native: 0x160]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x9][Native: 0x14]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state) [IL: 0x34][Native: 0x52]
        at System.Net.ContextAwareResult.Complete(System.IntPtr userToken) [IL: 0x61][Native: 0xC9]
        at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result,System.IntPtr userToken) [IL: 0x6B][Native: 0xBC]
        at System.Net.HttpWebRequest.SetResponse(System.Exception E) [IL: 0x0][Native: 0x1B0]
        at System.Net.ConnectStream.ProcessWriteCallDone(System.Net.ConnectionReturnResult returnResult) [IL: 0x0][Native: 0xCD]
        at System.Net.ConnectStream.CallDone(System.Net.ConnectionReturnResult returnResult) [IL: 0x6A][Native: 0xD1]
        at System.Net.ConnectStream.IOError(System.Exception exception,System.Boolean willThrow) [IL: 0xB9][Native: 0x1A0]
        at System.Net.ConnectStream.WriteHeadersCallback(System.IAsyncResult ar) [IL: 0x31][Native: 0xA4]
        at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) [IL: 0x3E][Native: 0x8C]
        at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result,System.IntPtr userToken) [IL: 0x6B][Native: 0xBC]
        at System.Net.TlsStream.ResumeIOWorker(System.Object result) [IL: 0x7][Native: 0x42]
        at System.Net.TlsStream.WakeupPendingIO(System.IAsyncResult ar) [IL: 0xAD][Native: 0x11D]
        at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) [IL: 0x3E][Native: 0x8C]
        at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result,System.IntPtr userToken) [IL: 0x6B][Native: 0xBC]
        at System.Net.AsyncProtocolRequest.CompleteWithError(System.Exception e) [IL: 0xC][Native: 0x13]
        at System.Net.FixedSizeReader.ReadCallback(System.IAsyncResult transportResult) [IL: 0x1C][Native: 0x7E]
        at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) [IL: 0x3E][Native: 0x8C]
        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x79][Native: 0x160]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x9][Native: 0x14]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state) [IL: 0x34][Native: 0x52]
        at System.Net.ContextAwareResult.Complete(System.IntPtr userToken) [IL: 0x61][Native: 0xC9]
        at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result,System.IntPtr userToken) [IL: 0x6B][Native: 0xBC]
        at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(System.UInt32 errorCode,System.UInt32 numBytes,System.Threading.NativeOverlapped* nativeOverlapped) [IL: 0xA3][Native: 0x127]
        at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(System.UInt32 errorCode,System.UInt32 numBytes,System.Threading.NativeOverlapped* pOVERLAP) [IL: 0x78][Native: 0x7C]

    » »d9321c4b-b583-40f2-be62-efb0ea9ae24b »
    20181009-030626.215489 »xyz.TestFramework »ExceptionTracer »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »19 »Thread 19 »DebugInfo »Trace »FirstChanceException »FirstChanceException 'NotExpected/Product/REST Framework' causing 'System.Net.Http.HttpRequestException' - An error occurred while sending the request. »[CausedBy=NotExpected/Product/FHIR REST Framework],[FirstChanceException=System.Net.Http.HttpRequestException],[Count=1] » »CallStack:
        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [IL: 0xC][Native: 0x1F]
        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task task) [IL: 0x28][Native: 0x3C]
        at xyz.Fhir.ClientFramework.TimeoutHandler+<SendAsync>d__1.MoveNext() in C:\views\Build_Bmainline\Common\Source\FhirNetCore\ClientFramework\TimeOutHandler.cs:Line 53:Column 21 [IL: 0xAD][Native: 0x19A]
        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x79][Native: 0x160]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x9][Native: 0x14]
        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run() [IL: 0x24][Native: 0x6C]
        at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action,System.Boolean allowInlining,System.Threading.Tasks.Task& currentTask) [IL: 0x1C][Native: 0x61]
        at System.Threading.Tasks.Task.FinishContinuations() [IL: 0x85][Native: 0x3DA]
        at System.Threading.Tasks.Task.Finish(System.Boolean bUserDelegateExecuted) [IL: 0x85][Native: 0x50]
        at System.Threading.Tasks.Task`1.TrySetException(System.Object exceptionObject) [IL: 0x2A][Native: 0x71]
        at System.Threading.Tasks.TaskCompletionSource`1.TrySetException(System.Exception exception) [IL: 0xE][Native: 0x1D]
        at System.Net.Http.HttpClientHandler.HandleAsyncException(System.Net.Http.HttpClientHandler+RequestState state,System.Exception e) [IL: 0x54][Native: 0x104]
        at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(System.IAsyncResult ar) [IL: 0x20][Native: 0x92]
        at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) [IL: 0x3E][Native: 0x8C]
        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x79][Native: 0x160]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x9][Native: 0x14]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state) [IL: 0x34][Native: 0x52]
        at System.Net.ContextAwareResult.Complete(System.IntPtr userToken) [IL: 0x61][Native: 0xC9]
        at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result,System.IntPtr userToken) [IL: 0x6B][Native: 0xBC]
        at System.Net.HttpWebRequest.SetResponse(System.Exception E) [IL: 0x0][Native: 0x1B0]
        at System.Net.ConnectStream.ProcessWriteCallDone(System.Net.ConnectionReturnResult returnResult) [IL: 0x0][Native: 0xCD]
        at System.Net.ConnectStream.CallDone(System.Net.ConnectionReturnResult returnResult) [IL: 0x6A][Native: 0xD1]
        at System.Net.ConnectStream.IOError(System.Exception exception,System.Boolean willThrow) [IL: 0xB9][Native: 0x1A0]
        at System.Net.ConnectStream.WriteHeadersCallback(System.IAsyncResult ar) [IL: 0x31][Native: 0xA4]
        at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) [IL: 0x3E][Native: 0x8C]
        at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result,System.IntPtr userToken) [IL: 0x6B][Native: 0xBC]
        at System.Net.TlsStream.ResumeIOWorker(System.Object result) [IL: 0x7][Native: 0x42]
        at System.Net.TlsStream.WakeupPendingIO(System.IAsyncResult ar) [IL: 0xAD][Native: 0x11D]
        at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) [IL: 0x3E][Native: 0x8C]
        at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result,System.IntPtr userToken) [IL: 0x6B][Native: 0xBC]
        at System.Net.AsyncProtocolRequest.CompleteWithError(System.Exception e) [IL: 0xC][Native: 0x13]
        at System.Net.FixedSizeReader.ReadCallback(System.IAsyncResult transportResult) [IL: 0x1C][Native: 0x7E]
        at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) [IL: 0x3E][Native: 0x8C]
        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x79][Native: 0x160]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx) [IL: 0x9][Native: 0x14]
        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state) [IL: 0x34][Native: 0x52]
        at System.Net.ContextAwareResult.Complete(System.IntPtr userToken) [IL: 0x61][Native: 0xC9]
        at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result,System.IntPtr userToken) [IL: 0x6B][Native: 0xBC]
        at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(System.UInt32 errorCode,System.UInt32 numBytes,System.Threading.NativeOverlapped* nativeOverlapped) [IL: 0xA3][Native: 0x127]
        at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(System.UInt32 errorCode,System.UInt32 numBytes,System.Threading.NativeOverlapped* pOVERLAP) [IL: 0x78][Native: 0x7C]

    » »d9321c4b-b583-40f2-be62-efb0ea9ae24b »
    20181009-030626.333942 »xyz.TestFramework »ExceptionTracer »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »5 »Thread 5 »DebugInfo »Trace »FirstChanceException »FirstChanceException 'NotExpected/Product/FHIR REST Framework' causing 'System.AggregateException' - One or more errors occurred. »[CausedBy=NotExpected/Product/REST Framework],[FirstChanceException=System.AggregateException],[Count=1] » »CallStack:
        at System.Threading.Tasks.Task`1.GetResultCore(System.Boolean waitCompletionNotification) [IL: 0x2B][Native: 0x78]
        at xyz.Fhir.Common.Extensions.GetResponseFromServer(System.Net.Http.HttpRequestMessage request) in C:\views\Build_Bmainline\Common\Source\FhirNetCore\Common\Extensions.cs:Line 55:Column 17 [IL: 0x0][Native: 0x20]
        at xyz.Fhir.ClientFramework.RestRequest.Execute() in C:\views\Build_Bmainline\Common\Source\FhirNetCore\ClientFramework\RestRequest.cs:Line 325:Column 20 [IL: 0x3A][Native: 0x7F]
        at xyz.Fhir.ClientFramework.RestClient.CustomOperationCallToServer(T resource,System.String operation,System.Uri uri) in C:\views\Build_Bmainline\Common\Source\FhirNetCore\ClientFramework\RestClient.cs:Line 784:Column 13 [IL: 0x9A][Native: 0x174]
        at xyz.Tests.Common.FrameworkTests.CustomContentHandlerTests.TestBsonContentHandler() in C:\views\Build_Bmainline\Common\Tests\FrameworkTests\CustomContentHandlerTests.cs:Line 244:Column 13 [IL: 0x58][Native: 0x128]
        at System.RuntimeMethodHandle.InvokeMethod(System.Object target,System.Object[] arguments,System.Signature sig,System.Boolean constructor)[Native: 0x0]
        at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object obj,System.Object[] parameters,System.Object[] arguments) [IL: 0x39][Native: 0x72]
        at System.Reflection.RuntimeMethodInfo.Invoke(System.Object obj,System.Reflection.BindingFlags invokeAttr,System.Reflection.Binder binder,System.Object[] parameters,System.Globalization.CultureInfo culture) [IL: 0x7F][Native: 0x92]
        at NUnit.Core.Reflect.InvokeMethod(System.Reflection.MethodInfo method,System.Object fixture,System.Object[] args) [IL: 0x6][Native: 0x3D]
        at NUnit.Core.TestMethod.RunTestMethod(NUnit.Core.TestResult testResult) [IL: 0x2D][Native: 0x3E]
        at NUnit.Core.TestMethod.RunTestCase(NUnit.Core.TestResult testResult) [IL: 0x2][Native: 0x2E]
        at NUnit.Core.TestMethod.RunTest() [IL: 0x2A][Native: 0xB2]
        at NUnit.Core.NUnitTestMethod.RunTest() [IL: 0x1][Native: 0xA]
        at NUnit.Core.TestMethod.RunRepeatedTest() [IL: 0x39][Native: 0xA6]
        at NUnit.Core.TestMethod.RunTestInContext() [IL: 0x1AC][Native: 0x449]
        at NUnit.Core.TestMethod.Run(NUnit.Core.EventListener listener,NUnit.Core.ITestFilter filter) [IL: 0x57][Native: 0xA9]
        at NUnit.Core.TestFixture.Run(NUnit.Core.EventListener listener,NUnit.Core.ITestFilter filter) [IL: 0x18][Native: 0x73]
        at NUnit.Core.SetUpFixture.Run(NUnit.Core.EventListener listener,NUnit.Core.ITestFilter filter) [IL: 0x18][Native: 0x73]
        at NUnit.Core.SimpleTestRunner.Run(NUnit.Core.EventListener listener,NUnit.Core.ITestFilter filter,System.Boolean tracing,NUnit.Core.LoggingThreshold logLevel) [IL: 0x40][Native: 0xD7]
        at NUnit.Core.ProxyTestRunner.Run(NUnit.Core.EventListener listener,NUnit.Core.ITestFilter filter,System.Boolean tracing,NUnit.Core.LoggingThreshold logLevel) [IL: 0x1B][Native: 0x4C]
        at NUnit.Core.RemoteTestRunner.Run(NUnit.Core.EventListener listener,NUnit.Core.ITestFilter filter,System.Boolean tracing,NUnit.Core.LoggingThreshold logLevel) [IL: 0x31][Native: 0xEF]
        at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(System.IntPtr md,System.Object[] args,System.Object server,System.Object[]& outArgs)[Native: 0x0]
        at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage msg) [IL: 0x0][Native: 0x259]
        at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg) [IL: 0x48][Native: 0x7A]
        at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg) [IL: 0x4F][Native: 0xA1]
        at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(System.Object[] args) [IL: 0x59][Native: 0xBB]
        at System.Threading.Thread.InternalCrossContextCallback(System.Runtime.Remoting.Contexts.Context ctx,System.IntPtr ctxID,System.Int32 appDomainID,System.Threading.InternalCrossContextDelegate ftnToCall,System.Object[] args)[Native: 0x0]
        at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg) [IL: 0x1F][Native: 0xB4]
        at System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(System.Runtime.Remoting.Messaging.IMessage msg) [IL: 0x42][Native: 0xAC]
        at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(System.Byte[] reqStmBuff,System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage smuggledMcm,System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage& smuggledMrm) [IL: 0x47][Native: 0x110]
        at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(System.Object[] args) [IL: 0x16][Native: 0x84]

    »PF-EHV-155 »d9321c4b-b583-40f2-be62-efb0ea9ae24b »
    20181009-030626.337153 »xyz.TestFramework »ExceptionTracer »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »5 »Thread 5 »DebugInfo »Trace »FirstChanceException »FirstChanceException 'NotExpected/Product/FHIR REST Framework' causing 'xyz.Fhir.Common.FhirException' - An error occurred while sending the request. »[CausedBy=NotExpected/Product/FHIR REST Framework],[FirstChanceException=xyz.Fhir.Common.FhirException],[Count=1] » »CallStack:
        at xyz.Fhir.Common.Extensions.GetResponseFromServer(System.Net.Http.HttpRequestMessage request) in C:\views\Build_Bmainline\Common\Source\FhirNetCore\Common\Extensions.cs:Line 55:Column 17 [IL: 0x0][Native: 0x20]
        at xyz.Fhir.ClientFramework.RestRequest.Execute() in C:\views\Build_Bmainline\Common\Source\FhirNetCore\ClientFramework\RestRequest.cs:Line 325:Column 20 [IL: 0x3A][Native: 0x7F]
        at xyz.Fhir.ClientFramework.RestClient.CustomOperationCallToServer(T resource,System.String operation,System.Uri uri) in C:\views\Build_Bmainline\Common\Source\FhirNetCore\ClientFramework\RestClient.cs:Line 784:Column 13 [IL: 0x9A][Native: 0x174]
        at xyz.Tests.Common.FrameworkTests.CustomContentHandlerTests.TestBsonContentHandler() in C:\views\Build_Bmainline\Common\Tests\FrameworkTests\CustomContentHandlerTests.cs:Line 244:Column 13 [IL: 0x58][Native: 0x128]
        at System.RuntimeMethodHandle.InvokeMethod(System.Object target,System.Object[] arguments,System.Signature sig,System.Boolean constructor)[Native: 0x0]
        at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object obj,System.Object[] parameters,System.Object[] arguments) [IL: 0x39][Native: 0x72]
        at System.Reflection.RuntimeMethodInfo.Invoke(System.Object obj,System.Reflection.BindingFlags invokeAttr,System.Reflection.Binder binder,System.Object[] parameters,System.Globalization.CultureInfo culture) [IL: 0x7F][Native: 0x92]
        at NUnit.Core.Reflect.InvokeMethod(System.Reflection.MethodInfo method,System.Object fixture,System.Object[] args) [IL: 0x6][Native: 0x3D]
        at NUnit.Core.TestMethod.RunTestMethod(NUnit.Core.TestResult testResult) [IL: 0x2D][Native: 0x3E]
        at NUnit.Core.TestMethod.RunTestCase(NUnit.Core.TestResult testResult) [IL: 0x2][Native: 0x2E]
        at NUnit.Core.TestMethod.RunTest() [IL: 0x2A][Native: 0xB2]
        at NUnit.Core.NUnitTestMethod.RunTest() [IL: 0x1][Native: 0xA]
        at NUnit.Core.TestMethod.RunRepeatedTest() [IL: 0x39][Native: 0xA6]
        at NUnit.Core.TestMethod.RunTestInContext() [IL: 0x1AC][Native: 0x449]
        at NUnit.Core.TestMethod.Run(NUnit.Core.EventListener listener,NUnit.Core.ITestFilter filter) [IL: 0x57][Native: 0xA9]
        at NUnit.Core.TestFixture.Run(NUnit.Core.EventListener listener,NUnit.Core.ITestFilter filter) [IL: 0x18][Native: 0x73]
        at NUnit.Core.SetUpFixture.Run(NUnit.Core.EventListener listener,NUnit.Core.ITestFilter filter) [IL: 0x18][Native: 0x73]
        at NUnit.Core.SimpleTestRunner.Run(NUnit.Core.EventListener listener,NUnit.Core.ITestFilter filter,System.Boolean tracing,NUnit.Core.LoggingThreshold logLevel) [IL: 0x40][Native: 0xD7]
        at NUnit.Core.ProxyTestRunner.Run(NUnit.Core.EventListener listener,NUnit.Core.ITestFilter filter,System.Boolean tracing,NUnit.Core.LoggingThreshold logLevel) [IL: 0x1B][Native: 0x4C]
        at NUnit.Core.RemoteTestRunner.Run(NUnit.Core.EventListener listener,NUnit.Core.ITestFilter filter,System.Boolean tracing,NUnit.Core.LoggingThreshold logLevel) [IL: 0x31][Native: 0xEF]
        at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(System.IntPtr md,System.Object[] args,System.Object server,System.Object[]& outArgs)[Native: 0x0]
        at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage msg) [IL: 0x0][Native: 0x259]
        at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg) [IL: 0x48][Native: 0x7A]
        at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg) [IL: 0x4F][Native: 0xA1]
        at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(System.Object[] args) [IL: 0x59][Native: 0xBB]
        at System.Threading.Thread.InternalCrossContextCallback(System.Runtime.Remoting.Contexts.Context ctx,System.IntPtr ctxID,System.Int32 appDomainID,System.Threading.InternalCrossContextDelegate ftnToCall,System.Object[] args)[Native: 0x0]
        at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg) [IL: 0x1F][Native: 0xB4]
        at System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(System.Runtime.Remoting.Messaging.IMessage msg) [IL: 0x42][Native: 0xAC]
        at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(System.Byte[] reqStmBuff,System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage smuggledMcm,System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage& smuggledMrm) [IL: 0x47][Native: 0x110]
        at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(System.Object[] args) [IL: 0x16][Native: 0x84]

    »PF-EHV-155 »d9321c4b-b583-40f2-be62-efb0ea9ae24b »
    20181009-030626.339141 »xyz.TestFramework »ExceptionTracer »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »5 »Thread 5 »DebugInfo »Trace »FirstChanceException »FirstChanceException 'Expected/ThirdParty/Microsoft® .NET Framework' causing 'System.Reflection.TargetInvocationException' - Exception has been thrown by the target of an invocation. »[CausedBy=Expected/ThirdParty/Microsoft® .NET Framework],[FirstChanceException=System.Reflection.TargetInvocationException],[Count=1] » » » »d9321c4b-b583-40f2-be62-efb0ea9ae24b »
    20181009-030626.339670 »xyz.TestFramework »ExceptionTracer »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »5 »Thread 5 »DebugInfo »Trace »FirstChanceException »FirstChanceException 'Expected/ThirdParty/NUnit' causing 'NUnit.Core.NUnitException' - Rethrown »[CausedBy=Expected/ThirdParty/NUnit],[FirstChanceException=NUnit.Core.NUnitException],[Count=1] » » » »d9321c4b-b583-40f2-be62-efb0ea9ae24b »
    20181009-030627.720364 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview total: 'Exception', Count=12 »[Exception.Count=12] » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.723201 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview total:'Expected/ThirdParty/Microsoft® .NET Framework' caused total 'Exception', Count=3 »[CausedBy=Expected/ThirdParty/Microsoft® .NET Framework],[Exception.Count=3] » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724372 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview: 'Expected/ThirdParty/Microsoft® .NET Framework' caused 'System.Net.Sockets.SocketException', Count=2 »[CausedBy=Expected/ThirdParty/Microsoft® .NET Framework],[Exception=SocketException],[Count=2] » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724382 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview: 'Expected/ThirdParty/Microsoft® .NET Framework' caused 'System.Reflection.TargetInvocationException', Count=1 »[CausedBy=Expected/ThirdParty/Microsoft® .NET Framework],[Exception=TargetInvocationException],[Count=1] » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724386 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview total:'Expected/ThirdParty/NUnit' caused total 'Exception', Count=1 »[CausedBy=Expected/ThirdParty/NUnit],[Exception.Count=1] » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724441 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview: 'Expected/ThirdParty/NUnit' caused 'NUnit.Core.NUnitException', Count=1 »[CausedBy=Expected/ThirdParty/NUnit],[Exception=NUnitException],[Count=1] » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724458 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview total:'NotExpected/Product/TEST REST Framework' caused total 'Exception', Count=3 »[CausedBy=NotExpected/Product/TEST REST Framework],[Exception.Count=3] » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724469 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview: 'NotExpected/Product/TEST REST Framework' caused 'System.AggregateException', Count=1 »[CausedBy=NotExpected/Product/TEST REST Framework],[Exception=AggregateException],[Count=1] » »  » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724471 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview: 'NotExpected/Product/TEST REST Framework' caused 'xyz.TEST.Common.TESTException', Count=1 »[CausedBy=NotExpected/Product/TEST REST Framework],[Exception=TESTException],[Count=1] » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724472 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview: 'NotExpected/Product/TEST REST Framework' caused 'System.Net.Http.HttpRequestException', Count=1 »[CausedBy=NotExpected/Product/TEST REST Framework],[Exception=HttpRequestException],[Count=1] » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724476 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview total:'NotExpected/ThirdParty/Microsoft® .NET Framework' caused total 'Exception', Count=5 »[CausedBy=NotExpected/ThirdParty/Microsoft® .NET Framework],[Exception.Count=5] » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724480 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview: 'NotExpected/ThirdParty/Microsoft® .NET Framework' caused 'System.IO.IOException', Count=2 »[CausedBy=NotExpected/ThirdParty/Microsoft® .NET Framework],[Exception=IOException],[Count=2] » »  » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724482 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview: 'NotExpected/ThirdParty/Microsoft® .NET Framework' caused 'System.ObjectDisposedException', Count=2 »[CausedBy=NotExpected/ThirdParty/Microsoft® .NET Framework],[Exception=ObjectDisposedException],[Count=2] » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724483 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »FirstChanceException »First chance Exception overview: 'NotExpected/ThirdParty/Microsoft® .NET Framework' caused 'System.Net.WebException', Count=1 »[CausedBy=NotExpected/ThirdParty/Microsoft® .NET Framework],[Exception=WebException],[Count=1] » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.724498 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »TestFlow »#< TEST xyz.Tests.Common.FrameworkTests.CustomContentHandlerTests(True).TestBsonContentHandler » » » » »a4f3444a-074f-4ecb-b52e-fb9dea64a327 »
    20181009-030627.732054 »xyz.Tests.Common.FrameworkTests »CustomContentHandlerTests »6112 »nunit-agent@test-domain-xyz.Tests.Common.dll »10 »EventPumpThread »DebugInfo »Trace »TestFlow »#> TEST 

    Wednesday, November 21, 2018 6:59 AM

All replies

  • Hi RahulSharma,

    According to your description, it seems that you issue is more related to asp.net, I would suggest that you could post your issue on asp.net forum for suitable support.

    https://forums.asp.net/15.aspx/1?Getting+Started

    Thanks for your understanding.

    Best regards,

    Zhanglong


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, November 22, 2018 2:16 AM
  • Sure Thanks..
    Friday, November 23, 2018 10:39 AM