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!