2013-08-01 85 views
0

这可能不是正确的地方放这个,但我没有其他地方去。编译时VC++崩溃

每次我按下F7键,它就会崩溃。如果我更改了代码,然后按F5,它会崩溃。每次我编译任何东西,它都会崩溃。但是,有时它会成功,因为它崩溃后我可以重新加载VC++,我不必重新编译。调试时主要只是一个极端的烦恼。

我试图调试它,它会导致此问题:

An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualStudio.Shell.10.0.dll 
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. 
This operation failed because the QueryInterface call on the COM component for the interface with IID '{6D5140C1-7436-11CE-8034-00AA006009FA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). 

我试图注销然后重新注册ieproxy.dll并通过命令提示符actxpxy.dll,但没有任何工程。我不知道如何继续。

+1

也许尝试重新安装Visual Studio? –

+0

我已经尝试过,每次使用VC++的版本都要尝试几次。由于某种原因,我不认为IServiceProvider COM是完全注册的。试图找出如何解决这个问题。 –

+1

只需使用没有IDE的编译器? – greatwolf

回答

0

卸载Internet Explorer 10,重新安装Internet Explorer 9,然后卸载Internet Explorer 9的更新。现在重新注册ieproxy.dll,它将工作。