Visual Studio Crash when typing in editor -


i have been using vs2010 few weeks past few days has been totally unusable, when type editor visual studio throws exception, lots of intellisence errors (the code fine, can compile if run before trying use editor) - here log message:

  <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 cast com object of type &apos;system.__comobject&apos; interface type &apos;microsoft.visualstudio.textmanager.interop.ivstextreplaceevents&apos;. operation failed because queryinterface call on com component interface iid &apos;{cf9928d9-65ae-4319-a446-94ed5c45ecde}&apos; failed due following error: no such interface supported (exception hresult: 0x80004002 (e_nointerface)).&#x000d;&#x000a;   @ system.stubhelpers.stubhelpers.getcomipfromrcw(object objsrc, intptr pcpcmd, boolean&amp; pfneedsrelease)&#x000d;&#x000a;   @ microsoft.visualstudio.textmanager.interop.ivstextreplaceevents.onreplace(changeinput[] pci)&#x000d;&#x000a;   @ microsoft.visualstudio.editor.implementation.vstextbufferadapter.ontextbufferchangedhighpriority(object sender, textcontentchangedeventargs e)&#x000d;&#x000a;   @ 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 cast com object of type &apos;system.__comobject&apos; interface type &apos;microsoft.visualstudio.editor.implementation.ivstextstreamevents_private&apos;. operation failed because queryinterface call on com component interface iid &apos;{96fc7d44-bcdd-4f00-ae4d-07e26b2c0e52}&apos; failed due following error: no such interface supported (exception hresult: 0x80004002 (e_nointerface)).&#x000d;&#x000a;   @ system.stubhelpers.stubhelpers.getcomipfromrcw(object objsrc, intptr pcpcmd, boolean&amp; pfneedsrelease)&#x000d;&#x000a;   @ microsoft.visualstudio.editor.implementation.ivstextstreamevents_private.onchangestreamtext(int32 ipos, int32 ioldlen, int32 inewlen, int32 flast)&#x000d;&#x000a;   @ microsoft.visualstudio.editor.implementation.vstextbufferadapter.ontextbufferchanged(object sender, textcontentchangedeventargs e)&#x000d;&#x000a;   @ microsoft.visualstudio.text.utilities.guardedoperations.raiseevent[targs](object sender, eventhandler`1 eventhandlers, targs args)</description>   </entry> 

this seems might due info missing registry on computer. if go ms connect website you'll find discussion issue , seems solution well.

solution (copied page):

using regedit @ following 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 1 of 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"


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -