VS2013 FIPS Error
-
I started a new WPF app, and when I compile it, I get this error in the XAML files.
Unknown build error, 'This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
I'm on a DoD system, so I don't think I'll be able to disable FIPS, so how do I fix it?
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
I started a new WPF app, and when I compile it, I get this error in the XAML files.
Unknown build error, 'This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
I'm on a DoD system, so I don't think I'll be able to disable FIPS, so how do I fix it?
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013Can you modify the
msbuild.exe.config
file, or get someone to do it for you?Can't build a wpf project on a FIPS enabled system[^]:
You should add the same entry, namely
<enforceFIPSPolicy enabled="false"/>
to the config file for msbuild; typically that's found at
C:\Windows\Microsoft.Net\Framework\v4.0.30319\msbuild.exe.config
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Can you modify the
msbuild.exe.config
file, or get someone to do it for you?Can't build a wpf project on a FIPS enabled system[^]:
You should add the same entry, namely
<enforceFIPSPolicy enabled="false"/>
to the config file for msbuild; typically that's found at
C:\Windows\Microsoft.Net\Framework\v4.0.30319\msbuild.exe.config
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I think I read that this doesn't work for VS2013.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
I think I read that this doesn't work for VS2013.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013Further down the thread, it suggests you might also need to modify the config file in
C:\Program Files (x86)\MSBuild\12.0\Bin
; I've also got a copy under14.0\Bin
. Failing that, check Task Manager (if you're allowed to!) to find the path of the runningMSBuild.exe
process, and look for the config file there.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Further down the thread, it suggests you might also need to modify the config file in
C:\Program Files (x86)\MSBuild\12.0\Bin
; I've also got a copy under14.0\Bin
. Failing that, check Task Manager (if you're allowed to!) to find the path of the runningMSBuild.exe
process, and look for the config file there.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Richard Deeming wrote:
if you're allowed to
DoD system. The FIPS setting is part of the group policy. I don't have admin rights, so I can't do it, but I don't think even the admins can change it. I'm waiting on an answer... The weird thing is that console and Winform apps don't do this, and I can run existing WPF apps without an issue...
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
Richard Deeming wrote:
if you're allowed to
DoD system. The FIPS setting is part of the group policy. I don't have admin rights, so I can't do it, but I don't think even the admins can change it. I'm waiting on an answer... The weird thing is that console and Winform apps don't do this, and I can run existing WPF apps without an issue...
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013From what I've read, it's an msbuild + WPF bug, which would explain why it doesn't affect existing WPF applications, or other application types. With the config file change, you should be able to disable the FIPS policy checking for msbuild, without affecting the rest of the computer. Hopefully that should make it easier to get past the security goons. :)
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
From what I've read, it's an msbuild + WPF bug, which would explain why it doesn't affect existing WPF applications, or other application types. With the config file change, you should be able to disable the FIPS policy checking for msbuild, without affecting the rest of the computer. Hopefully that should make it easier to get past the security goons. :)
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Someone deep in the bowels of the IT dept fixed me.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
Someone deep in the bowels of the IT dept fixed me.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013But did they have time to look at your computer as well? :-D
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Someone deep in the bowels of the IT dept fixed me.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013The funny part is Microsoft has been recommending against using FIPS for the last few years.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak