Bug 60396 - [New Web Stack] (AKA "The Original Issue") Canceling HttpClient requests leads to ObjectDisposedExceptions when re-sending to the same host
Summary: [New Web Stack] (AKA "The Original Issue") Canceling HttpClient requests lead...
Status: CONFIRMED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: 5.4 (2017-06)
Hardware: PC Mac OS
: --- major
Target Milestone: Future Release
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-10-26 15:11 UTC by smoogipoo
Modified: 2017-12-11 20:34 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Sample code (871 bytes, text/plain)
2017-10-26 15:11 UTC, smoogipoo
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 60396 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description smoogipoo 2017-10-26 15:11:29 UTC
Created attachment 25471 [details]
Sample code

After an HttpClient request is canceled through a CancelationToken, it seems like the host socket is disposed internally such that subsequent requests to the same host result in an ObjectDisposedException.

On .NET Framework 4.5, this exception is not triggered.
On .NET Core 2.0.0, this exception is not triggered.

This exception triggers regardless of whether https is used.

Operating system tested:
macOS 10.12.6

Mono versions tested:
5.4.0.201
5.8.0.22

A stacktrace of the exception:

Unhandled Exception:
System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error: SendFailure (Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.) ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.
  at System.Net.WebConnection.BeginWrite (System.Net.HttpWebRequest request, System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.AsyncCallback cb, System.Object state) [0x0002b] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Net.WebConnectionStream.SetHeadersAsync (System.Net.SimpleAsyncResult result, System.Boolean setInternalLength) [0x0012c] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Net.WebConnectionStream+<>c__DisplayClass75_0.<SetHeadersAsync>b__0 (System.Net.SimpleAsyncResult r) [0x00000] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Net.SimpleAsyncResult.Run (System.Func`2[T,TResult] func, System.Net.SimpleAsyncCallback callback) [0x00007] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x0000f] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Net.Http.HttpClientHandler+<SendAsync>d__63.MoveNext () [0x00450] in <dc7323823b9f4a2797a7d2774a9e81d0>:0 
   --- End of inner exception stack trace ---
  at System.Net.Http.HttpClientHandler+<SendAsync>d__63.MoveNext () [0x004ab] in <dc7323823b9f4a2797a7d2774a9e81d0>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Net.Http.HttpClient+<SendAsyncWorker>d__47.MoveNext () [0x000ca] in <dc7323823b9f4a2797a7d2774a9e81d0>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at ConsoleApplication.Program+<runAsync>d__1.MoveNext () [0x000c5] in <ec6607f1e60a4a9cb2175f5470bb4b98>:0 
   --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Threading.Tasks.Task.Wait () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at ConsoleApplication.Program.Main (System.String[] args) [0x00006] in <ec6607f1e60a4a9cb2175f5470bb4b98>:0 
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error: SendFailure (Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.) ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.
  at System.Net.WebConnection.BeginWrite (System.Net.HttpWebRequest request, System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.AsyncCallback cb, System.Object state) [0x0002b] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Net.WebConnectionStream.SetHeadersAsync (System.Net.SimpleAsyncResult result, System.Boolean setInternalLength) [0x0012c] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Net.WebConnectionStream+<>c__DisplayClass75_0.<SetHeadersAsync>b__0 (System.Net.SimpleAsyncResult r) [0x00000] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Net.SimpleAsyncResult.Run (System.Func`2[T,TResult] func, System.Net.SimpleAsyncCallback callback) [0x00007] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x0000f] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Net.Http.HttpClientHandler+<SendAsync>d__63.MoveNext () [0x00450] in <dc7323823b9f4a2797a7d2774a9e81d0>:0 
   --- End of inner exception stack trace ---
  at System.Net.Http.HttpClientHandler+<SendAsync>d__63.MoveNext () [0x004ab] in <dc7323823b9f4a2797a7d2774a9e81d0>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Net.Http.HttpClient+<SendAsyncWorker>d__47.MoveNext () [0x000ca] in <dc7323823b9f4a2797a7d2774a9e81d0>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at ConsoleApplication.Program+<runAsync>d__1.MoveNext () [0x000c5] in <ec6607f1e60a4a9cb2175f5470bb4b98>:0 <---

[ERROR] FATAL UNHANDLED EXCEPTION: System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error: SendFailure (Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.) ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.
  at System.Net.WebConnection.BeginWrite (System.Net.HttpWebRequest request, System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.AsyncCallback cb, System.Object state) [0x0002b] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Net.WebConnectionStream.SetHeadersAsync (System.Net.SimpleAsyncResult result, System.Boolean setInternalLength) [0x0012c] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Net.WebConnectionStream+<>c__DisplayClass75_0.<SetHeadersAsync>b__0 (System.Net.SimpleAsyncResult r) [0x00000] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Net.SimpleAsyncResult.Run (System.Func`2[T,TResult] func, System.Net.SimpleAsyncCallback callback) [0x00007] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x0000f] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Net.Http.HttpClientHandler+<SendAsync>d__63.MoveNext () [0x00450] in <dc7323823b9f4a2797a7d2774a9e81d0>:0 
   --- End of inner exception stack trace ---
  at System.Net.Http.HttpClientHandler+<SendAsync>d__63.MoveNext () [0x004ab] in <dc7323823b9f4a2797a7d2774a9e81d0>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Net.Http.HttpClient+<SendAsyncWorker>d__47.MoveNext () [0x000ca] in <dc7323823b9f4a2797a7d2774a9e81d0>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at ConsoleApplication.Program+<runAsync>d__1.MoveNext () [0x000c5] in <ec6607f1e60a4a9cb2175f5470bb4b98>:0 
   --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Threading.Tasks.Task.Wait () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at ConsoleApplication.Program.Main (System.String[] args) [0x00006] in <ec6607f1e60a4a9cb2175f5470bb4b98>:0 
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error: SendFailure (Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.) ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.
  at System.Net.WebConnection.BeginWrite (System.Net.HttpWebRequest request, System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.AsyncCallback cb, System.Object state) [0x0002b] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Net.WebConnectionStream.SetHeadersAsync (System.Net.SimpleAsyncResult result, System.Boolean setInternalLength) [0x0012c] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Net.WebConnectionStream+<>c__DisplayClass75_0.<SetHeadersAsync>b__0 (System.Net.SimpleAsyncResult r) [0x00000] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Net.SimpleAsyncResult.Run (System.Func`2[T,TResult] func, System.Net.SimpleAsyncCallback callback) [0x00007] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <dcfedc3e77c54e4fb239216440ef2eec>:0 
  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x0000f] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Net.Http.HttpClientHandler+<SendAsync>d__63.MoveNext () [0x00450] in <dc7323823b9f4a2797a7d2774a9e81d0>:0 
   --- End of inner exception stack trace ---
  at System.Net.Http.HttpClientHandler+<SendAsync>d__63.MoveNext () [0x004ab] in <dc7323823b9f4a2797a7d2774a9e81d0>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Net.Http.HttpClient+<SendAsyncWorker>d__47.MoveNext () [0x000ca] in <dc7323823b9f4a2797a7d2774a9e81d0>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <5a89c1c5d5f64bbab6a88fd2898ae6c9>:0 
  at ConsoleApplication.Program+<runAsync>d__1.MoveNext () [0x000c5] in <ec6607f1e60a4a9cb2175f5470bb4b98>:0 <---
Comment 1 Marek Safar 2017-10-27 14:55:41 UTC
Thanks for the nice repro
Comment 2 Martin Baulig 2017-12-11 20:34:44 UTC
This is the initial issue that lead to the work on the new web stack.