简体   繁体   中英

visual studio 2013 crashes when opening a file

I could work without any problem in my C# projects. Today suddenly all attempts to open a file within VS cause an error (total crash, VS tries to find a solution, restart of VS, problem still there). The loading of the solution seems to be OK...

I did a lot of research but could not find a solution yet. What I tried is:

  • System reboot (of course ;-) )
  • Check for Updates (running Win10, everything up to date)
  • Create a brand new project (same error)
  • Try different file types (xml, cs, dataset, ... same error)
  • read ActivityLog.xml (found errors concerning EditorPackages)

This is the most telling entry in ActivityLog:

  <entry>
    <record>593</record>
    <time>2015/11/03 20:34:29.514</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [Microsoft.VisualStudio.Editor.Implementation.EditorPackage]</description>
    <guid>{E269B994-EF71-4CE0-8BCD-581C217372E8}</guid>
    <hr>80070057 - E_INVALIDARG</hr>
    <errorinfo>No EditorOptionDefinition export found for the given option name: Graphics/Simple/Enable
Parameter name: optionId</errorinfo>
  </entry>

Some people suggested to delete or rename a folder named ComponentModelCache but I cannot find such a folder (if I'm not wrong it should be in the same folder as the ActivityLog).

So it has to do with the EditorPackage (seems to be obvious as I get the error when trying to edit a file...)

Please show me a way to repair my VS! Thx!

Even though I believe that links do not count as answers along based on your request to add it as an answer since it helped you to solve your problem you can find many different solutions based on previous answers and suggestions located here

where to locate the ComponentModelCache folder

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM