-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-System.Net.Httpos-windowstest-bugProblem in test source code (most likely)Problem in test source code (most likely)test-run-coreTest failures in .NET Core test runsTest failures in .NET Core test runs
Milestone
Description
Types of failures
WinHttpException
Failure in build 20171215.06:
System.Net.Http.HttpRequestException : An error occurred while sending the request.
---- System.Net.Http.WinHttpException : The handle is in the wrong state for the requested operation
at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext() in E:\A\_work\772\s\corefx\src\System.Net.Http\src\System\Net\Http\HttpClient.cs:line 464
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Http.Functional.Tests.HttpClientHandler_DangerousAcceptAllCertificatesValidator_Test.<>c__DisplayClass3_1.<<SetDelegate_ConnectionSucceeds>b__0>d.MoveNext() in E:\A\_work\772\s\corefx\src\System.Net.Http\tests\FunctionalTests\HttpClientHandlerTest.AcceptAllCerts.cs:line 54
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass3_0.<CreateServerAsync>b__0(Task t) in E:\A\_work\772\s\corefx\src\Common\tests\System\Net\Http\LoopbackServer.cs:line 67
at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke() in E:\A\_work\1517\s\src\mscorlib\src\System\Threading\Tasks\TaskContinuation.cs:line 59
at System.Threading.Tasks.Task.<>c.<.cctor>b__278_1(Object obj) in E:\A\_work\1517\s\src\mscorlib\src\System\Threading\Tasks\Task.cs:line 2480
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) in E:\A\_work\1517\s\src\mscorlib\shared\System\Threading\ExecutionContext.cs:line 151
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot) in E:\A\_work\1517\s\src\mscorlib\src\System\Threading\Tasks\Task.cs:line 2440
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Http.Functional.Tests.HttpClientHandler_DangerousAcceptAllCertificatesValidator_Test.<SetDelegate_ConnectionSucceeds>d__3.MoveNext() in E:\A\_work\772\s\corefx\src\System.Net.Http\tests\FunctionalTests\HttpClientHandlerTest.AcceptAllCerts.cs:line 52
--- End of stack trace from previous location where exception was thrown ---
--- End of stack trace from previous location where exception was thrown ---
--- End of stack trace from previous location where exception was thrown ---
----- Inner Stack Trace -----
at System.Net.Http.WinHttpException.ThrowExceptionUsingLastError() in E:\A\_work\772\s\corefx\src\Common\src\System\Net\Http\WinHttpException.cs:line 44
at System.Net.Http.WinHttpHandler.SetRequestHandleClientCertificateOptions(SafeWinHttpHandle requestHandle, Uri requestUri) in E:\A\_work\772\s\corefx\src\System.Net.Http.WinHttpHandler\src\System\Net\Http\WinHttpHandler.cs:line 1145
at System.Net.Http.WinHttpHandler.SetRequestHandleOptions(WinHttpRequestState state) in E:\A\_work\772\s\corefx\src\System.Net.Http.WinHttpHandler\src\System\Net\Http\WinHttpHandler.cs:line 956
at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext() in E:\A\_work\772\s\corefx\src\System.Net.Http.WinHttpHandler\src\System\Net\Http\WinHttpHandler.cs:line 831
Win32Exception: The Local Security Authority cannot be contacted
Failure in build 20171020.01:
System.Security.Authentication.AuthenticationException : A call to SSPI failed, see inner exception.
---- System.ComponentModel.Win32Exception : The Local Security Authority cannot be contacted
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, ExceptionDispatchInfo exception)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Net.Security.SslStream.BeginAuthenticateAsServer(SslServerAuthenticationOptions sslServerAuthenticationOptions, CancellationToken cancellationToken, AsyncCallback asyncCallback, Object asyncState)
at System.Net.Security.SslStream.BeginAuthenticateAsServer(X509Certificate serverCertificate, Boolean clientCertificateRequired, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation, AsyncCallback asyncCallback, Object asyncState)
at System.Net.Security.SslStream.<>c.<AuthenticateAsServerAsync>b__47_1(X509Certificate arg1, Boolean arg2, SslProtocols arg3, AsyncCallback callback, Object state)
at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl[TArg1,TArg2,TArg3](Func`6 beginMethod, Func`2 endFunction, Action`1 endAction, TArg1 arg1, TArg2 arg2, TArg3 arg3, Object state, TaskCreationOptions creationOptions)
at System.Net.Security.SslStream.AuthenticateAsServerAsync(X509Certificate serverCertificate, Boolean clientCertificateRequired, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)
at System.Net.Test.Common.LoopbackServer.<AcceptSocketAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.Functional.Tests.HttpClientHandler_DangerousAcceptAllCertificatesValidator_Test.<>c__DisplayClass3_1.<<SetDelegate_ConnectionSucceeds>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass3_0.<CreateServerAsync>b__0(Task t)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.Functional.Tests.HttpClientHandler_DangerousAcceptAllCertificatesValidator_Test.<SetDelegate_ConnectionSucceeds>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
----- Inner Stack Trace -----
IOException: Authentication failed because the remote party has closed the transport stream
System.IO.IOException : Authentication failed because the remote party has closed the transport stream.
E:\A\_work\1477\s\corefx\src\System.Net.Security\src\System\Net\Security\SslState.cs(873,0): at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
E:\A\_work\1477\s\corefx\src\System.Net.Security\src\System\Net\Security\SslState.cs(1096,0): at System.Net.Security.SslState.PartialFrameCallback(AsyncProtocolRequest asyncRequest)
--- End of stack trace from previous location where exception was thrown ---
E:\A\_work\1477\s\corefx\src\System.Net.Security\src\System\Net\Security\SslState.cs(735,0): at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
E:\A\_work\1477\s\corefx\src\System.Net.Security\src\System\Net\Security\SslState.cs(708,0): at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
E:\A\_work\1477\s\corefx\src\System.Net.Security\src\System\Net\Security\SslStream.cs(248,0): at System.Net.Security.SslStream.EndAuthenticateAsServer(IAsyncResult asyncResult)
E:\A\_work\1477\s\corefx\src\System.Net.Security\src\System\Net\Security\SslStream.cs(407,0): at System.Net.Security.SslStream.<>c.<AuthenticateAsServerAsync>b__47_2(IAsyncResult iar)
E:\A\_work\2009\s\src\mscorlib\src\System\Threading\Tasks\FutureFactory.cs(533,0): at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
E:\A\_work\1477\s\corefx\src\Common\tests\System\Net\Http\LoopbackServer.cs(164,0): at System.Net.Test.Common.LoopbackServer.<AcceptSocketAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
E:\A\_work\1477\s\corefx\src\System.Net.Http\tests\FunctionalTests\HttpClientHandlerTest.AcceptAllCerts.cs(54,0): at System.Net.Http.Functional.Tests.HttpClientHandler_DangerousAcceptAllCertificatesValidator_Test.<>c__DisplayClass3_1.<<SetDelegate_ConnectionSucceeds>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
E:\A\_work\1477\s\corefx\src\Common\tests\System\Net\Http\LoopbackServer.cs(67,0): at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass3_0.<CreateServerAsync>b__0(Task t)
E:\A\_work\2009\s\src\mscorlib\src\System\Threading\Tasks\TaskContinuation.cs(59,0): at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
E:\A\_work\2009\s\src\mscorlib\src\System\Threading\Tasks\Task.cs(2480,0): at System.Threading.Tasks.Task.<>c.<.cctor>b__278_1(Object obj)
E:\A\_work\2009\s\src\mscorlib\shared\System\Threading\ExecutionContext.cs(151,0): at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
E:\A\_work\2009\s\src\mscorlib\src\System\Threading\Tasks\Task.cs(2440,0): at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
E:\A\_work\1477\s\corefx\src\System.Net.Http\tests\FunctionalTests\HttpClientHandlerTest.AcceptAllCerts.cs(52,0): at System.Net.Http.Functional.Tests.HttpClientHandler_DangerousAcceptAllCertificatesValidator_Test.<SetDelegate_ConnectionSucceeds>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
--- End of stack trace from previous location where exception was thrown ---
--- End of stack trace from previous location where exception was thrown ---
History of failures
| Day | Build | OS | Error message |
|---|---|---|---|
| 9/27 | 20170927.01 | Win7 | Win32Exception: The Local Security Authority cannot be contacted |
| 9/27 | 20170927.01 | Win7 | WinHttpException: The handle is in the wrong state for the requested operation |
| 10/5 | 20171005.01 | Win7 | Win32Exception: The Local Security Authority cannot be contacted |
| 10/20 | 20171020.01 | Win7 | Win32Exception: The Local Security Authority cannot be contacted |
| 10/20 | 20171020.01 | Win7 | WinHttpException: The handle is invalid |
| 10/23 | 20171020.52 | Win7 | WinHttpException: The operation has been canceled |
| 10/31 | 20171030.05 | Win7 | WinHttpException: The handle is invalid |
| 11/28 | 20171128.01 | Win7 | WinHttpException: The handle is invalid |
| 12/13 | 20171213.09 | Win7 | WinHttpException: The operation has been canceled |
| 12/15 | 20171215.06 | Win7 | WinHttpException: The handle is in the wrong state for the requested operation |
| 12/30 | 20171230.01 | Win7 | IOException: Authentication failed because the remote party has closed the transport stream - only in catastrophic failure logs |
| 1/5 | 20180105.01 | Win7 | WinHttpException: The handle is invalid - link |
| 1/16 | 20180116.01 | Win7 | WinHttpException: The handle is invalid - link |
| 1/18 | 20180118.01 | Win7 | Win32Exception: The Local Security Authority cannot be contacted - link |
| 1/29 | 20180129.01 | Win8.1 | WinHttpException: The operation has been canceled - only in catastrophic failure logs |
| 1/31 | 20180131.05 | Win8.1 | WinHttpException: The operation has been canceled - link |
| 1/31 | 20180131.05 | Win7 | WinHttpException: The handle is invalid - link |
| 2/1 | 20180201.01 | Win7 | WinHttpException: The handle is in the wrong state for the requested operation - link |
| 2/5 | 20180205.01 | Win7 | WinHttpException: The handle is invalid - link |
| 2/6 | 20180206.04 | Win7 | WinHttpException: The handle is invalid - link |
| 2/25 | 20180225.02 | Win8.1 | WinHttpException: The operation has been canceled - link |
| 2/28 | 20180228.08 | Win7 | WinHttpException: The operation has been canceled |
| 3/2 | 20180302.06 | Win7 | WinHttpException: The operation has been canceled |
| 3/15 | 20180315.02 | Win7 | WinHttpException: The operation has been canceled |
| 3/19 | 20180319.01 | Win7 | WinHttpException: The operation has been canceled |
WinHttpExceptions are similar to dotnet/corefx#25896 / dotnet/corefx#25902 / dotnet/corefx#25912 and others
Metadata
Metadata
Assignees
Labels
area-System.Net.Httpos-windowstest-bugProblem in test source code (most likely)Problem in test source code (most likely)test-run-coreTest failures in .NET Core test runsTest failures in .NET Core test runs