This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms when building an app with visual studio

StackOverflow https://stackoverflow.com/questions/14509354

  •  17-01-2022
  •  | 
  •  

Question

I am trying to compile my program in visual studio and I am getting a FIPS Cryptographic algorithms error. I have checked the registry key and it is set to false.

Any suggestions?

Was it helpful?

Solution

I had a hard time with this too. Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa. Under a subkey you should see FipsAlgorithmPolicy. DELETE this registry entry and restart visual studio.

REF: https://blogs.iis.net/webtopics/parser-error-message-this-implementation-is-not-part-of-the-windows-platform-fips-validated-cryptographic-algorithms-when-net-page-has-debug-true

OTHER TIPS

You can fix this by adding <enforceFIPSPolicy enabled="false"/> under the runtime section in the .config files of:

  • MSBuild (example path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe.config)
  • Visual Studio (example path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe.config)

My answer was to change the registry key from 1 to 0 here:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\fipsalgorithmpolicy

Question is a bit general. My more specific error:

AppContainer Creation Failed with error message NONE, state This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms

Microsoft explains and lists a workaround here:

https://support.microsoft.com/en-us/help/911722/you-may-receive-an-error-message-when-you-access-asp-net-web-pages-tha

Open Web.config Locate the system.web section

Add the key:

*<machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="3DES" decryption="3DES"/>*

Save Web.Config, then iisreset from the command prompt.

Assumption is that company policy has set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\fipsalgorithmpolicy with a value of 1 (and of course, that IIS is running)

Would be nice to know why this effects the installation of Python and R on Windows SQL Server 2019.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top