Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Fail: Uncaught exception from the PrepareRequest method of an IAdaptedConnection #1693

Closed
danroth27 opened this issue Apr 15, 2017 · 2 comments
Assignees

Comments

@danroth27
Copy link
Member

When trying out SSL in ASP.NET Core I see the following in the logging output:

fail: Microsoft.AspNetCore.Server.Kestrel[0]
      Uncaught exception from the PrepareRequest method of an IAdaptedConnection.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'SslStream'.
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Net.Security.SslState.CheckThrow(Boolean authSuccessCheck, Boolean shutdownCheck)
   at System.Net.Security.SslStream.get_RemoteCertificate()
   at Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapter.HttpsAdaptedConnection.PrepareRequest(IFeatureCollection requestFeatures)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame.Reset()

Sample app here: https://github.com/danroth27/active-directory-dotnet-webapp-openidconnect-aspnetcore-b2c/tree/danroth27/aspnetcore2

@halter73
Copy link
Member

#1786 fixes this for 2.0.0-preview1. I did git merge -s ours rel/2.0.0-preview1 so this fix is not in dev yet. That is waiting on #1776.

@davidfowl
Copy link
Member

Moved this to preview2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants