今天搭建微信掃碼支付環境的時候,一樣的配置參數,調用連接提示錯誤
錯誤:調用的目標發生了異常
然后跟蹤到執行
MD5 md5 = System.Security.Cryptography.MD5.Create();
代碼報錯,使用度娘搜索無果。后面從谷歌搜索英文錯誤得以解決
解決辦法:
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文件后,得到解決
解決辦法原文鏈接,請點擊這里