2016-08-25 54 views
0

我遇到一个问题,阻止我在VS社区2015中创建新项目,甚至不让我构建或调试任何以前的有效项目。在VS社区2015中创建新项目或构建旧有效项目时出错

当我尝试创建新的项目(文件 - >新建 - >项目),我得到错误“不设置到对象的实例对象引用”一个消息。

当我尝试建立一个老有效的项目,我收到以下错误:

Severity Code Description Project File Line Suppression State 
Error  at System.Security.Cryptography.SHA256Managed..ctor() CopyTool    
Error  at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.GetBasePipeName(String compilerExeDirectory) CopyTool    
Error  at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) CopyTool    
Error  at System.Security.Cryptography.SHA256.Create() CopyTool    
Error  at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) CopyTool    
Error  at Microsoft.CodeAnalysis.BuildTasks.ManagedCompiler.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) CopyTool    
Error  --- End of inner exception stack trace --- CopyTool    
Error  at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.GetPipeNameForPath(String compilerExeDirectory) CopyTool    
Error  Unexpected exception: CopyTool    
Error  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. CopyTool    
Error  at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args) CopyTool    
Error  at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.RunServerCompilation(RequestLanguage language, List`1 arguments, BuildPaths buildPaths, String keepAlive, String libEnvVariable, CancellationToken cancellationToken) CopyTool" 

任何帮助将不胜感激! 谢谢! 奥勒利安

回答

0

我通过禁用FIPS模式解决了这个问题。以下是步骤:

  1. 按下Windows键+ R打开运行对话框。

  2. 输入“gpedit.msc”进入运行对话框中(不带引号),然后按Enter。

  3. 导航到组策略编辑器“计算机配置\ Windows设置\安全设置\本地策略\安全选项”。

  4. 找到“系统加密:使用FIPS兼容的算法来加密,散列和签名”,在右侧窗格中的设置,然后双击它。

  5. 将设置为“已禁用”,然后单击“确定”。

  6. 重新启动计算机。

来源:http://www.howtogeek.com/245859/why-you-shouldnt-enable-fips-compliant-encryption-on-windows/