Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Visual Studio 2010 crashes after installing MSDN Library for Visual Studio 2008


View products that this article applies to.

Symptoms

After installing MSDN Library for Visual Studio 2008, Visual Studio 2010 may crash repeatedly.

If Visual Studio 2010 is run with the /log switch, the resulting log file (ActivityLog.xml) will show the following errors: 

ERROR: System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.TextManager.Interop.IVsTextReplaceEvents'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{CF9928D9-65AE-4319-A446-94ED5C45ECDE}' failed due to the following error: Exception from HRESULT: 0x80004002 (E_NOINTERFACE). at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, Boolean& pfNeedsRelease) at Microsoft.VisualStudio.TextManager.Interop.IVsTextReplaceEvents.OnReplace(ChangeInput[] pCI) at Microsoft.VisualStudio.Editor.Implementation.VsTextBufferAdapter.OnTextBufferChangedHighPriority(Object sender, TextContentChangedEventArgs e) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)
GUID: "" - Source: "Editor or Editor Extension"

ERROR: System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.Editor.Implementation.IVsTextStreamEvents_Private'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{96FC7D44-BCDD-4F00-AE4D-07E26B2C0E52}' failed due to the following error: Exception from HRESULT: 0x80004002 (E_NOINTERFACE). at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, Boolean& pfNeedsRelease) at Microsoft.VisualStudio.Editor.Implementation.IVsTextStreamEvents_Private.OnChangeStreamText(Int32 iPos, Int32 iOldLen, Int32 iNewLen, Int32 fLast) at Microsoft.VisualStudio.Editor.Implementation.VsTextBufferAdapter.OnTextBufferChanged(Object sender, TextContentChangedEventArgs e) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)
GUID: "" - Source: "Editor or Editor Extension"


↑ Back to the top


Cause

This issue is caused by missing registry information, which is caused by an interaction between Visual Studio 2010 and MSDN Library for Visual Studio 2008.

↑ Back to the top


Resolution

Users who are experiencing this issue should examine the following registry key:

On 32-Bit Windows: [HKEY_CLASSES_ROOT\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]
On 64-Bit Windows: [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]

The "(Default)" value should be one of the following:
On 32-Bit Windows: "C:\Program Files\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll"
On 64-Bit Windows: "C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll"

If your registry is different, then you can do one of the following:
1. Modify the registry with the value mentioned above. NOTE: Modifying the registry can be dangerous. Please back up your registry information before making changes.
2. If #1 does not work, reinstall Visual Studio 2010 RTM. This should resolve the issue.


↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2513678
Revision : 1
Created on : 1/7/2017
Published on : 2/25/2011
Exists online : False
Views : 375