I get build failures on my projects with the following 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 nCrunch.Compiler.AssemblyHashGenerator.#=qdHG3pXZ5ms2G9bjRD0wklQ==(MemoryStream #=qQyJePN80BovlXA40LtgaKw==)
at nCrunch.Compiler.AssemblyHashGenerator.ComputeHashForAssembly(AssemblyDefinition assembly)
at nCrunch.Compiler.StaticManipulation.BuiltAssembly.GenerateSurfaceHash()
at nCrunch.Compiler.RemoteBuildRunner.#=qG3xdYhfR9FrLKjSk7_DjKTEHGSCh98p3RXMZRew3v94=(ComponentBuildParameters #=qm4Vvrp2ZTI0LO0v9ljhghg==, String #=q9GISYXTBpmYxTLYOLvZbsl6WHmV81Vr4qLyfKgBrSeU=, BuildOutput #=qnXDAQpnfqAeJl0p31Gcd1w==, String #=q0WMk_oyyqB84ymhAED64QwQMMcfEx_iwqSh50U8TI54=, String[] #=qbU0L8XcxFqVQXtkrrGeqknLrjeN8Gvmkp8Ejer0TzM4=)
at nCrunch.Compiler.RemoteBuildRunner.Build(ComponentBuildParameters parameters)
I have disabled FIPS in VS2012 in the devenv.exe.config file with <enforceFIPSPolicy enabled="false"/>
as well as disabling it in Windows via HKLM\System\CurrentControlSet\Control\Lsa\FIPSAlgorithmPolicy\Enabled
Anyone with some info on this?
Thanks!
Build/Test Issues
Windows Platform FIPS validated cryptographic algorithms
Started by manshaegert on 8,255 views
Remco NCrunch Developer
#4628
20 Sep 2013 10:37 UTC
Hi, thanks for sharing this issue.
Inside the NCrunch install directory (usually C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2012), there should be a number of config files for each of the task runners used by NCrunch to execute the code that's failing.
Does adding the FIPS disabling code into each of these config files solve your problem? Please do let me know if it does, as I'll then add it to these files in the next maintenance release so that others can also benefit.
Another option may be disabling FIPS in your machine.config file.
Inside the NCrunch install directory (usually C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2012), there should be a number of config files for each of the task runners used by NCrunch to execute the code that's failing.
Does adding the FIPS disabling code into each of these config files solve your problem? Please do let me know if it does, as I'll then add it to these files in the next maintenance release so that others can also benefit.
Another option may be disabling FIPS in your machine.config file.
Edited 20 Sep 2013 10:38 UTC
Adding the FIPS disabling code in the C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2012 .config files (all of them) did not help.
However the machine.config did the trick!
Thanks!
However the machine.config did the trick!
Thanks!
Post a reply
Log in to reply.