2013-08-01 82 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,它將工作。