为什么我收到“__CrtGetFileInformationByHandleEx"的错误消息?当我尝试编译时 [英] Why do I get an error for "__CrtGetFileInformationByHandleEx " when I try to compile
问题描述
我刚刚在我的计算机上安装了 Visual Studio 2015 Community.到目前为止,我一直在使用 Visual Studio 2010 Professional.现在,当我尝试在 Web 服务器的构建中运行我的 MVC 应用程序时,我收到以下错误消息.
<块引用>无法在\WINDOWS\SYSTEM32\msvcp120_clr0400.dll 中找到过程入口点__CrtGetFileInformationByHandleEx
如果我尝试直接在命令提示符下执行 vbc.exe
(Visual Basic 编译器),我会收到相同的错误消息.我的 MVC 应用程序还显示了一个 YSOD 与
编译错误 - 编译器错误消息:编译器失败,错误代码为 -1073741511.
如何修复我的 VS 以便我可以再次运行我的程序?!
我尝试过的步骤
- 卸载 VS 2015 社区
- 卸载并重新安装 .NET 4.6 和 .NET 4.5.2
- DISM/Online/Cleanup-Image/RestoreHealth
- .NET 修复工具
- 运行 sfc/scannow
- 手动将 msvcr120_clr0400.dll 文件重命名为 msvcr120_clr0400.dll.corrupt 并执行 1-5
- 卸载并重新安装带有 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
- Uninstall VS 2015 Community
- Uninstall and reinstall .NET 4.6 and .NET 4.5.2
- DISM /Online /Cleanup-Image /RestoreHealth
- The .NET Repair Tool
- Run sfc /scannow
- Manually rename the msvcr120_clr0400.dll file to msvcr120_clr0400.dll.corrupt and do 1-5
- 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屋!