Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2013: Error Loading Solution ('JavascriptWebExtensionsPackage did not load correctly')

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?

like image 481
Jason Avatar asked Aug 29 '14 17:08

Jason


1 Answers

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.
like image 121
Jason Avatar answered Nov 09 '22 12:11

Jason