40

Visual Studio 2013 Professional just started throwing this error on me, in the middle of switching solutions. A full reboot of the computer didn't resolve it.

Here's the error I see when I try loading a solution: main error

Now, when I go look at the log file it suggests, I see this:

SetSite failed

SetSite failed for package [JavaScriptWebExtensionsPackage]

End package load [JavaScriptWebExtensionsPackage]

If I click "Yes" to continuing to show the message, and try loading up a file in the solution -- I get this message:

NoEditorOptionDefinition export found

Telling me that No EditorOptionDefinition export found for the given option name: Tabs/ConvertTabsToSpaces - Parameter name: optionId.

I really do not know what to make of this. I didn't do anything except check in some files to TFS (which I do dozens of times a day, a week, a year). The only thing I ever did differently that I never did before was attempt to view Source>Annotations on a file (I've never did that in my life with TFS/VS) about 10 minutes prior - but that worked fine and was just ducky.

So - any ideas why I'm getting this message - and how to resolve it without a fullblown re-install?

Community
  • 1
  • 1
Jason
  • 3,020
  • 2
  • 24
  • 23

4 Answers4

105

So -- after posting this and adding that last screenshot (the No EditorOptionDefinition export... business) -- I decided to google on that phrase as well (the other key phrases brought me nothing).

It brought me to this page: No EditorOptionDefinition Export Found Error

Which actually fixed the problem.

In short:

  1. Close Visual Studio
  2. Open the %UserProfile%\AppData\Local\Microsoft\VisualStudio\<version>\ folder
  3. Rename or delete the ComponentModelCache folder
  4. Restart Visual Studio.
Community
  • 1
  • 1
Jason
  • 3,020
  • 2
  • 24
  • 23
0

I had the same problem, All i did was went to Control Panel and ran a Repair on VS 2013. Waited for it to complete and restart my computer and it worked.

Vijaya Malla
  • 209
  • 1
  • 2
  • 11
0

In my case above solution not work out but when I tried to delete everything from

%LocalAppData%\Microsoft\VisualStudio\14.0\

from above location then I restarted visual studio 2015 then it works fine.

Hope anyone having this issue may resolve deleting everything from 14.0 directory

thank you

Rameshwar Vyevhare
  • 2,699
  • 2
  • 28
  • 34
0

I had the same experience. Deleting %LocalAppData%\Microsoft\VisualStudio\14.0\ worked fine. I could not delete for permission reasons so had to delete from command line all files in 14.0.