2011-01-25 7 views
16

私は数週間VS2010を使用していますが、過去数日間、エディタに何か入力すると完全に使用できなくなりました。Visual Studioでは例外がスローされ、次に多くのインテリジェンスエラー(コードは結構です、私はエディタを使用しようとする前に実行した場合、私はそれをコンパイルすることができます) - ここでは、ログメッセージです:エディタで入力するとVisual Studioがクラッシュする

<entry> 
    <record>241</record> 
    <time>2011/01/25 08:30:34.109</time> 
    <type>Error</type> 
    <source>Editor or Editor Extension</source> 
    <description>System.InvalidCastException: Unable to cast COM object of type &apos;System.__ComObject&apos; to interface type &apos;Microsoft.VisualStudio.TextManager.Interop.IVsTextReplaceEvents&apos;. This operation failed because the QueryInterface call on the COM component for the interface with IID &apos;{CF9928D9-65AE-4319-A446-94ED5C45ECDE}&apos; failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).&#x000D;&#x000A; at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, Boolean&amp; pfNeedsRelease)&#x000D;&#x000A; at Microsoft.VisualStudio.TextManager.Interop.IVsTextReplaceEvents.OnReplace(ChangeInput[] pCI)&#x000D;&#x000A; at Microsoft.VisualStudio.Editor.Implementation.VsTextBufferAdapter.OnTextBufferChangedHighPriority(Object sender, TextContentChangedEventArgs e)&#x000D;&#x000A; at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)</description> 
    </entry> 
    <entry> 
    <record>242</record> 
    <time>2011/01/25 08:30:34.125</time> 
    <type>Error</type> 
    <source>Editor or Editor Extension</source> 
    <description>System.InvalidCastException: Unable to cast COM object of type &apos;System.__ComObject&apos; to interface type &apos;Microsoft.VisualStudio.Editor.Implementation.IVsTextStreamEvents_Private&apos;. This operation failed because the QueryInterface call on the COM component for the interface with IID &apos;{96FC7D44-BCDD-4F00-AE4D-07E26B2C0E52}&apos; failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).&#x000D;&#x000A; at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, Boolean&amp; pfNeedsRelease)&#x000D;&#x000A; at Microsoft.VisualStudio.Editor.Implementation.IVsTextStreamEvents_Private.OnChangeStreamText(Int32 iPos, Int32 iOldLen, Int32 iNewLen, Int32 fLast)&#x000D;&#x000A; at Microsoft.VisualStudio.Editor.Implementation.VsTextBufferAdapter.OnTextBufferChanged(Object sender, TextContentChangedEventArgs e)&#x000D;&#x000A; at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)</description> 
    </entry> 
+0

VSはいつ実際にクラッシュしますか? – leppie

答えて

23

それは上のレジストリから欠落しているいくつかの情報に問題がある可能性がありますように。これは思えますあなたのコンピュータ。 MS Connect websiteに行くと、この問題についての議論や解決策があるように見えるでしょう。 (そのページからコピー)

ソリューション:

regeditをルックを使用して、次のキーで:32ビットWindows

:64ビットWindows [HKEY_CLASSES_ROOT\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]

」 (デフォルト)」の値は、次のいずれかになります。
32ビットWindowsの場合"C:\Program Files\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll"
64ビットWindowsの場合"C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll"

+0

これは完全に機能しました。私はVisual Studio 2012で突然上記の問題に遭遇し、これが解決しました。 – monoceres

1

エクステンションやアドインに問題があるように見えます。それらをすべて無効にして、1つずつ再起動してください。

+0

ho1の答えは正しいです。それはレジストリではなく、拡張子にないエントリに関連するバグです。 –

+0

返事をいただきありがとうございます、これはVDがクラッシュするのを止めましたが、インテリセンスはまだしばらく狂っていましたが、今度は自分自身をソートしたようです。 –

+0

問題が数ヶ月後に使用開始されましたが、VS拡張機能が正しくインストール/アンインストールされていない問題です(リバースエンジニアの拡張機能を試してみてください) – Zac

関連する問題