为什么我收到“__CrtGetFileInformationByHandleEx"的错误消息?当我尝试编译时 [英] Why do I get an error for "__CrtGetFileInformationByHandleEx " when I try to compile

查看:42
本文介绍了为什么我收到“__CrtGetFileInformationByHandleEx"的错误消息?当我尝试编译时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在我的计算机上安装了 Visual Studio 2015 Community.到目前为止,我一直在使用 Visual Studio 2010 Professional.现在,当我尝试在 Web 服务器的构建中运行我的 MVC 应用程序时,我收到以下错误消息.

<块引用>

无法在\WINDOWS\SYSTEM32\msvcp120_clr0400.dll 中找到过程入口点__CrtGetFileInformationByHandleEx

如果我尝试直接在命令提示符下执行 vbc.exe(Visual Basic 编译器),我会收到相同的错误消息.我的 MVC 应用程序还显示了一个 YSOD 与

<块引用>

编译错误 - 编译器错误消息:编译器失败,错误代码为 -1073741511.

如何修复我的 VS 以便我可以再次运行我的程序?!

我尝试过的步骤

  1. 卸载 VS 2015 社区
  2. 卸载并重新安装 .NET 4.6 和 .NET 4.5.2
  3. DISM/Online/Cleanup-Image/RestoreHealth
  4. .NET 修复工具
  5. 运行 sfc/scannow
  6. 手动将 msvcr120_clr0400.dll 文件重命名为 msvcr120_clr0400.dll.corrupt 并执行 1-5
  7. 卸载并重新安装带有 SP1 的 VS 2010

sfc/scannow 成功替换了 msvcr120_clr0400.dll 文件,但它替换成了与之前完全相同的 CTP 文件!

编辑:

我系统中的问题 dll 可在此处下载:

解决方案

Microsoft 已意识到 KB3098779 和 3097997 存在此问题:

https://support.microsoft.com/en-us/kb/3118750>

建议卸载这些补丁,然后重新扫描更新.这些安全补丁的较新版本(不会破坏 VB 编译器)现已可用.

I just installed Visual Studio 2015 Community on my computer. Until now I have been using Visual Studio 2010 Professional. Now when I try to run my MVC apps in the build in web server, I get the following error message.

The procedure entry point __CrtGetFileInformationByHandleEx could not be located in \WINDOWS\SYSTEM32\msvcp120_clr0400.dll

I get the same error message if I try to execute vbc.exe (the Visual Basic compiler) on directly at the command prompt. My MVC app also shows a YSOD with

Compilation Error - Compiler Error Message: The compiler failed with error code -1073741511.

How can I fix my VS so I can run my programs again?!

Steps I've tried

  1. Uninstall VS 2015 Community
  2. Uninstall and reinstall .NET 4.6 and .NET 4.5.2
  3. DISM /Online /Cleanup-Image /RestoreHealth
  4. The .NET Repair Tool
  5. Run sfc /scannow
  6. Manually rename the msvcr120_clr0400.dll file to msvcr120_clr0400.dll.corrupt and do 1-5
  7. Uninstall and reinstall VS 2010 w/ SP1

sfc /scannow successfully replaced the msvcr120_clr0400.dll file, but it replaced it with the exact same CTP file as before!

EDIT:

The problem dll's from my system are available for download here:

解决方案

Microsoft is aware of this issue with KB3098779 and 3097997:

https://support.microsoft.com/en-us/kb/3118750

The recommendation is to uninstall these patches and then rescan for updates. Newer versions of these security patches (that do not break the VB compiler) are now available.

这篇关于为什么我收到“__CrtGetFileInformationByHandleEx"的错误消息?当我尝试编译时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆