Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - 證書鏈?zhǔn)怯刹皇苄湃蔚念C發(fā)機(jī)構(gòu)頒發(fā)的。)
?---> System.ComponentModel.Win32Exception (0x80090325): 證書鏈?zhǔn)怯刹皇苄湃蔚念C發(fā)機(jī)構(gòu)頒發(fā)的。
?這是遠(yuǎn)程鏈接的數(shù)據(jù)庫(kù)中又不信任的證書。
解決辦法:修改appsettings.json 中的數(shù)據(jù)庫(kù)鏈接,增加Encrypt=True;TrustServerCertificate=True;文章來源:http://www.zghlxwxcb.cn/news/detail-599792.html
?"ConnectionStrings": {
? ? "DbConnectionString": "Data Source = DESKTOP-Q11URM8;Initial Catalog = Furion;User Id = sa;Password = sa;Encrypt=True;TrustServerCertificate=True;"
? }文章來源地址http://www.zghlxwxcb.cn/news/detail-599792.html
到了這里,關(guān)于遷移更新EF Core 中的sqlserver 數(shù)據(jù)庫(kù)提示0x80131904的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!