Reputation: 67291
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:
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!
Upvotes: 1
Views: 532
Reputation: 18843
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
Upvotes: 1