System.TypeInitializationException on Windows Server 2016

Sysprogs forums Forums VisualGDB System.TypeInitializationException on Windows Server 2016

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22989
    curtis.hendrix
    Participant

    I’m setting up a build agent on a Windows Server 2016 box.  Visual Studio 2017 Professional and VisualGDB 5.4.10.2582 are installed.

    Whenever I start Visual Studio, the following exception happens and VisualGDB does not get loaded into Visual Studio:

    VisualGDB version: 5.4.10.2582
    ------------------ System.TypeInitializationException ------------------
    System.TypeInitializationException: The type initializer for 'o81' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
       at System.Security.Cryptography.MD5CryptoServiceProvider..ctor()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
       at System.Security.Cryptography.MD5.Create()
       at wf2..ctor(Byte[] b, Int32 a, Byte[] c)
       at o81..ctor()
       at o81..cctor()
       --- End of inner exception stack trace ---
       at VisualGDB.VSPackage.VisualGDBPackageCommon.DoInitialize(Boolean deferred)
       at VisualGDB.VSPackage.VisualGDBPackageCommon.OnShellPropertyChange(Int32 propid, Object var)
    ------------------ Inner exception ------------------ 
    ------------------ System.Reflection.TargetInvocationException ------------------
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
       at System.Security.Cryptography.MD5CryptoServiceProvider..ctor()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
       at System.Security.Cryptography.MD5.Create()
       at wf2..ctor(Byte[] b, Int32 a, Byte[] c)
       at o81..ctor()
       at o81..cctor()
    ------------------ Inner exception ------------------ 
    ------------------ System.InvalidOperationException ------------------
    System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
       at System.Security.Cryptography.MD5CryptoServiceProvider..ctor()
    
    
    
    #22990
    curtis.hendrix
    Participant

    Figured out the issue.  Using FIPS compliant algroithms needs to be disabled:

    Report Manager: “System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.”

     

    “Or else, go to Local Security Policy (Start -> Run -> secpol.msc) and then go to “Security Settings -> Local Policies -> Security Options” and on the right-side windows you should see the policies in that please look for the Policy “System cryptography: Use FIPS compliant algorithms for encryption, hashing, and signing” and checked the security thing and it should be Enabled.”

     

    #22992
    support
    Keymaster

    Hi,

    Good to know it works. Just in case anyone else runs into the same problem, here’s another workaround to this: https://blogs.msdn.microsoft.com/shawnfa/2008/03/14/disabling-the-fips-algorithm-check/

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.