当前位置:   article > 正文

【C#】A connection was successfully established with the server, but then an error occurred during the_microsoft.data.sqlclient.sqlexception:鈥淎 connectio

microsoft.data.sqlclient.sqlexception:鈥淎 connection was successfully establ

Microsoft.Data.SqlClient.SqlException:“A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - 证书链是由不受信任的颁发机构颁发的。)”

在这里插入图片描述

解决办法:

在这里插入图片描述

Nuget包 从 Microsoft.Data.SqlClient 更改为 System.Data.SqlClient

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/601801
推荐阅读
相关标签
  

闽ICP备14008679号