-
Notifications
You must be signed in to change notification settings - Fork 311
Open
Labels
Waiting for Customer ⏳Issues/PRs waiting for user response/action.Issues/PRs waiting for user response/action.
Description
We are using a .Net 8 console application. With this we want to create a database connection using Microsoft.Data.SqlClient
package because System.Data.SqlClient
is marked as deprecated.
For this we are using a connection string with the format Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=<database>;Data Source=<server>;Encrypt=True;TrustServerCertificate=True;
.
Executing the code we get this 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.)
When we change the used package to System.Data.SqlClient
the application works without any other changes.
Metadata
Metadata
Assignees
Labels
Waiting for Customer ⏳Issues/PRs waiting for user response/action.Issues/PRs waiting for user response/action.