Visual Basic Command Line Compiler has stopped working

时间:2015-11-12 11:15:36

标签: vb.net visual-studio visual-studio-2010 compiler-errors .net-4.0

Yesterday, I could work with Visual Studio 2010 without any problem. However, today after I turned on the computer and tried to open my project (Web application with Visual Basic.NET) on VS2010 again, I got a message box showing as below:

enter image description here

Later, I found out after I tried deleting suo file that this message box will show up whenever I open some file in Visual Studio so I tried to run the application. Then, I found another message box popped up as below:

enter image description here

And after I close the message box, I finally got this window

enter image description here

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

I have searched for the solution through the internet. I have found a few methods that might solve the solution such as scanning for virus, using clean boot. I have also tried repairing and uninstalling VS2010 and .NET framework but none still work. Right now, I have no idea what I should to do make it work again.

Anyway, I realized that there is Windows auto update when I turned off the computer. Not so sure if this related to the problem (I used Window 8.1).

1 个答案:

答案 0 :(得分:3)

格式化驱动器C以重新安装所有内容后,我发现原因可能是Windows更新。我已经开始重新安装Windows 8,所有必需的程序(Visual Studio和SQL Management Studio除外)以及升级到Windows 8.1所需的所有窗口更新。

当我成功进入Windows 8.1时,我创建了系统还原点,并尝试安装VS2010和所有Windows更新。结果导致了我在此帖子中发布的相同错误。

之后,我恢复到原始状态并首先安装VS2010。然后安装了一些Windows更新。这一次,我决定安装除了2015年11月10日之后发布日期的所有更新。结果令人满意。我没有再次收到此错误。

后来,Hans Passant帮我找到了这个问题的真正原因。请看这个链接:

Why do I get an error for "__CrtGetFileInformationByHandleEx " when I try to compile