Micro Focus Contributor
Micro Focus Contributor

(LR) Support tip: NUnit testing with FIPS enabled

When working with the Visual Studio 2010 IDE Add-in for Developers, you may encounter one of the following errors when trying to build an NUnit testing solution:

"Source file '<Path_to_cs>' could not be opened ('An operation is not legal in the current state.')"

"Source file '<Path_to_cs>' could not be opened ('This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.')"

 Workaround: Since Visual Studio 2010 is not officially FIPS compliant, you need to disable FIPS in one of the following ways:

  1. Disable FIPS for whole system.
  2. Disable FIPS for a specific application. For example, you can add a <enforceFIPSPolicy enabled="false"/> parameter to the <runtime> section of exe.config in Visual Studio's IDE folder.
Labels (1)
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.