Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET 5 Preview 3 #4607

Closed
1 task done
rbhanda opened this issue Apr 23, 2020 · 8 comments
Closed
1 task done

.NET 5 Preview 3 #4607

rbhanda opened this issue Apr 23, 2020 · 8 comments

Comments

@rbhanda
Copy link
Contributor

rbhanda commented Apr 23, 2020

Release Notes

Please report any issues you find with .NET 5, either responding to this issue, creating a new issue or creating a new issue in one of the following repos:


Here is a list of issues that we are tracking and working to resolve with this release. We'll tick them off as each is resolved. See any linked issue for progress or resolution details.

  • Unable to install dotnet-sdk if machine never had .NET installed
@mairaw mairaw pinned this issue Apr 23, 2020
@mairaw mairaw mentioned this issue May 3, 2020
1 task
@tareksharbak
Copy link

I'm facing an issue while trying to connect to Cosmos DB from an ASP.NET 5.0 project.

Using the latest Microsoft.Azure.Cosmos library v3.8.0, and .NET 5.0, I get the following error
"The remote certificate is invalid according to the validation procedure."

This error only occurs when running inside a docker container (Linux), it happens in both Docker for Windows with Linux containers or inside AKS.

The error doesn't occur when running the application using "dotnet run"

Downgrading to .Net Core 3.1 without making any other change, fixes the issue.


Full exception:
Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: InternalServerError (500); Substatus: 0; ActivityId: 00000000-0000-0000-0000-000000000000; Reason: (The remote certificate is invalid according to the validation procedure.);
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
{"Summary":{"StartUtc":"2020-05-03T19:41:08.4368353Z","RunningElapsedTime":"00:00:00.4793436","UserAgent":"cosmos-netstandard-sdk/3.8.0|3.7.1|32522|X64|Linux 4.19.76-linuxkit 1 SMP |.NET Core 5.0.0-preview.3.20214.6|","TotalRequestCount":0,"FailedRequestCount":0},"Context":[]}

@leecow
Copy link
Member

leecow commented May 5, 2020

@anurse - any guidance here?

@analogrelay
Copy link
Contributor

Looks more like @karelz ’s team. It’s HttpClient and SslStream on the stack :)

@karelz
Copy link
Member

karelz commented May 5, 2020

@tareksharbak this is weird. Would you mind to file a separate new issue in dotnet/runtime repo to get to the bottom of this?
Is there any chance you could try to isolate the repro into something we can try? Alternatively @wfurt should be able to suggest some logging to understand more of it.
Thanks!

@wfurt
Copy link
Member

wfurt commented May 5, 2020

Probably missing root CA files or access to them. I would suggest to create separate issue with specific details.

@tareksharbak
Copy link

tareksharbak commented May 6, 2020

I opened a new issue with more details and a clearer repro steps Issue 35874

@jeroen-mostert
Copy link

Something I couldn't glean from the release notes or the initial announcement of .NET 5: is there an intent to supply a migration path in VS for existing Framework projects which will "just work" for most cases? Right now we only have things like the portability analyzer, the unsupported dotnet try-convert and plenty of guides on how to manually tackle conversion, but then Core isn't yet the One True Framework like it will be later.

Note that I'm not fishing for an official commitment or a time frame, just curious if MS intends to produce an officially supported migration path that happens to work well in most cases, or if the idea is that you have to put in the work manually and if that's too much work the alternative is to stick with Framework. (If this isn't the right venue for the question, please redirect.)

@rbhanda rbhanda unpinned this issue May 19, 2020
@mairaw
Copy link
Contributor

mairaw commented Jul 14, 2020

Closing in favor of #4873

@jeroen-mostert currently there are no plans for a migration path in VS.

@mairaw mairaw closed this as completed Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants