Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
467 views
in Technique[技术] by (71.8m points)

visual studio 2010 - Why do I get an error for "__CrtGetFileInformationByHandleEx " when I try to compile

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 WINDOWSSYSTEM32msvcp120_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:

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...