A connection was successfully established with the server, but then an error occurred - Sertifika zinciri güvenilmeyen bir yetkili tarafından verildi

1ogrenci (11) 1 ay önce sordu

dotnet ef database update komutundan sonra aşağıdaki hatayı alıyorum. Sorun ne olabilir?

A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - Sertifika zinciri güvenilmeyen bir yetkili tarafından verildi.)

Toplam 1 cevap


alattin (17014) 1 ay önce cevapladı

Connection string ifadene şunu eklemeyi dene:

TrustServerCertificate=True

Örnek bağlantı cümlesi:

"DefaultConnection": "server=.\\SqlExpress;Database=DBAd; user id=***; password=******; Integrated Security=false;MultipleActiveResultSets=true;TrustServerCertificate=True "

Bu şekilde sorun çözülecektir.