Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Windows Platform FIPS validated cryptographic algorithms
manshaegert
#1 Posted : Friday, September 20, 2013 10:11:06 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/30/2013(UTC)
Posts: 2
Location: Germany

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
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!
Remco
#2 Posted : Friday, September 20, 2013 10:37:41 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,986

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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.
1 user thanked Remco for this useful post.
manshaegert on 9/20/2013(UTC)
manshaegert
#3 Posted : Friday, September 20, 2013 11:41:40 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/30/2013(UTC)
Posts: 2
Location: Germany

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
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!
1 user thanked manshaegert for this useful post.
Remco on 9/20/2013(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download