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

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

@danroth27

Description

@danroth27

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions