. net linked database: the certificate chain is issued by an untrusted authority

Time:2021-1-17

error message

The certificate chain is issued by an untrusted authority

Error environment

.NET web.config Error in linking database (publish to service)

resolvent

The red part of the following configuration is added or modified in your code configuration

<add name=”ConnectionString” connectionString=”Server=.;Initial Catalog=QDJYCZNZZ;Persist Security Info=False;User ID=sa;Password=123456;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=300;” providerName=”System.Data.SqlClient” />

If an error is reported by connecting to the database through the management tool, the solution is as follows

 

 

Check the trust server certificate

 

 

 

 

Recommended Today

Go carbon version 1.2.0 has been released to improve and optimize the multi scenario support for orm

Carbon is a lightweight, semantic and developer friendly golang time processing library, which supports chain call, lunar calendar, Gorm, xorm and other mainstream orm If you think it’s good, please give it to a star github:github.com/golang-module/carbon gitee:gitee.com/go-package/carbon Installation and use //Using GitHub Library go get -u github.com/golang-module/carbon import ( “github.com/golang-module/carbon”) //Using gitee Library go get […]