安装VisualGDB 5.2 发生 "类型初始值设定项引发异常"解决办法

问题

在家里的电脑上安装是没有问题的, 但是在公司的电脑安装出现"类型初始值设定项引发异常", 详细信息显示如下:

详细信息:
VisualGDB version: 5.2.15.1452
------------------ System.TypeInitializationException ------------------
System.TypeInitializationException: “pf”的类型初始值设定项引发异常。 ---> System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.InvalidOperationException: 此实现不是 Windows 平台 FIPS 验证的加密算法的一部分。
在 System.Security.Cryptography.MD5CryptoServiceProvider..ctor()
--- 内部异常堆栈跟踪的结尾 ---
在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
在 System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
在 System.Security.Cryptography.MD5.Create()
在 kj1..ctor(Byte[] b, Int32 a, Byte[] c)
在 pf..ctor()
在 pf..cctor()
--- 内部异常堆栈跟踪的结尾 ---
在 VisualGDB.VSPackage.VisualGDBPackageCommon.DoInitialize(Boolean deferred)
在 VisualGDB.VSPackage.VisualGDBPackageCommon.OnShellPropertyChange(Int32 propid, Object var)
------------------ Inner exception ------------------
------------------ System.Reflection.TargetInvocationException ------------------
System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.InvalidOperationException: 此实现不是 Windows 平台 FIPS 验证的加密算法的一部分。
在 System.Security.Cryptography.MD5CryptoServiceProvider..ctor()
--- 内部异常堆栈跟踪的结尾 ---
在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
在 System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
在 System.Security.Cryptography.MD5.Create()
在 kj1..ctor(Byte[] b, Int32 a, Byte[] c)
在 pf..ctor()
在 pf..cctor()
------------------ Inner exception ------------------
------------------ System.InvalidOperationException ------------------
System.InvalidOperationException: 此实现不是 Windows 平台 FIPS 验证的加密算法的一部分。
在 System.Security.Cryptography.MD5CryptoServiceProvider..ctor()

我的vs是VS2017 Community, 电脑上安装了"EsafeNet"文件加密系统. 不知道是不是这个系统引起的问题. 但是通过关闭" FIPS 验证的加密算法" 解决了问题.

操作步骤:

"开始->运行->secpol.msc"
"本地策略->安全选项", 右侧"系统加密:将FIPS兼容算法用于加密、哈希和签名" ,将 "启用" 改为 "禁用".

PS: Sysprogs的技术支持很给力, 参考资料就是他给的

参考资料:

https://blogs.msdn.microsoft.com/dataaccesstechnologies/2015/07/16/report-manager-system-invalidoperationexception-this-implementation-is-not-part-of-the-windows-platform-fips-validated-cryptographic-algorithms/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,969评论 19 139
  • 很实用的编程英语词库,共收录一千五百余条词汇。 第一部分: application 应用程式 应用、应用程序app...
    春天的蜜蜂阅读 1,426评论 0 22
  • 1:InputChannel提供函数创建底层的Pipe对象 2: 1)客户端需要新建窗口 2)new ViewRo...
    自由人是工程师阅读 5,396评论 0 18
  • 1. Java基础部分 基础部分的顺序:基本语法,类相关的语法,内部类的语法,继承相关的语法,异常的语法,线程的语...
    子非鱼_t_阅读 31,767评论 18 399
  • 不得不说,作为一名大龄女青年,这个标签甩也甩不掉,过年回家父母亲戚追问,张罗饭局相亲;同事也是施展浑身解数要给我解...
    小花喵咪咪阅读 288评论 0 3