C
C#2mo ago
emxr

SQL CONNECTION ERROR ASP.NET

im trying to connect my sql datas with asp but keep getting trust server certificate is not supported error
No description
No description
No description
3 Replies
Jimmacle
Jimmacle2mo ago
because it's not supported with that library, you can just remove that or switch to Microsoft.Data.SqlClient which supports that option
Pobiega
Pobiega2mo ago
its HIGHLY recommended to switch, the connection library you are using (System.Data.SqlClient) is outdated and bad.
emxr
emxr2mo ago
i removed trust server certificate and it worked thanks guys