代码报错,使用度娘搜索无果。后面从谷歌搜索英文错误得以解决

解决办法:

add the following configuration to your application configuration file and see if it works fine for you.

加入下面的配置到你的应用程序配置文件,然后在看是否有效。

<configuration>
    <runtime>
       <enforceFIPSPolicy enabled="false"/>
    </runtime>
</configuration>

笔者加入到app.config文件后,得到解决

解决办法原文链接, 请点击这里