Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Solved: SqlException: A connection was successfully established with the server, but then an error occurred during the login process

28.01.2023 (👁6866)


Asp.Net Einbinden User Identity

.Net6 .Net 7

Beim Zugriff auf eine SQL sErver Datenbank


Fehlermeldung beim Login und beim Register

An unhandled exception occurred while processing the request.

Win32Exception: Die Zertifikatkette wurde von einer nicht vertrauenswürdigen Zertifizierungsstelle ausgestellt.

Unknown location

SqlException: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - Die Zertifikatkette wurde von einer nicht vertrauenswürdigen Zertifizierungsstelle ausgestellt.)

Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, bool breakConnection, Action<Action> wrapCloseInAction)

 

 

 

 

Reason is: Microsoft changed from System.Data to Microsoft.Data
System.Data.SqlClient to Microsoft.Data.SqlClient

 

Solution:
Add: ; Encrypt=False to your Connectionstring

In you File: appsettings.json in asp.net core .net7 .net6

  "ConnectionStrings": {

    "DefaultConnection": "Server=.\\sqlexpress;Database=MYDATABASE;Trusted_Connection=True;MultipleActiveResultSets=true;Encrypt=false"

  },

 

 

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung