Skip to content

Stack Overflow exception with SslStream and NetCoreApp mix of 2.1 and 3.x #38185

Description

@DavoudEshtehari

Description

Hi dotnet/runtime team,

I found an issue in Ubuntu 16.04 when I was using the SslStream. At first, I tried to reproduce it in a sample application in Ubuntu, and at last, I am able to reproduce it in Windows. I don't know if there is a similar issue with other types!

The issue happens when you try to use an assembly with NetCore 2.1 in another project with NetCore 3.x (I have not checked the NetCore 5.0 preview).

  • You can find the sample application here.

  • Here are the sample outputs:

image

  • You will get the same exception if you use nercoreapp3.0 in the 'Demo' project.

If you change the TargetFramework of the project ClassLibraryA to nercoreapp3.1 from netcoreapp2.1, or change TargetFramework of the project Demo to nercoreapp2.1 it will work without exception.

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions