解决System.Reflection.TargetInvocationException: 调用的目标发生了异常



答:需要修改注册表,cmd命令,输入regedit打开注册表然后找到以下路径HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy修改此路径下的Enable值为0