Hi,
I had the same issue today, and setting the Encrypt=False
in the connectionstring solved the problem
Thanks a lot!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am learning how to user Entity Framework where the models are built from an existing SQL server. I ran this command in the package manager:
Scaffold-DbContext “Server=xxx; database=Contoso; user id = cnnxxxxx; password = xxxx” Microsoft.EntityFrameworkCore.SqlServer –ContextDir Data -OutputDir Models
I got the following error:
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
I know the database connection string works as I built a quick connection and sent the output of a table to the console.
I appreciate any ideas to fix this issue. Thanks.
Hi,
I had the same issue today, and setting the Encrypt=False
in the connectionstring solved the problem
Thanks a lot!