Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Essentials disabled on VS 2015 start #1959

Closed
codingfreak opened this issue Sep 30, 2015 · 13 comments
Closed

Web Essentials disabled on VS 2015 start #1959

codingfreak opened this issue Sep 30, 2015 · 13 comments

Comments

@codingfreak
Copy link

I use Visual Studio 2015 Enterprise full patched, Web Essentials 2015 0.5.175 and the latest Web Compiler, Bundler & Minifier along with a bunch of other extensions. Suddenly my Web Essentials gets disabled in the extensions (without any dialog). I can enable it for one run and it'll work fine then. The second start of VS will give me a disabled WebEssentials again.

Interesting: When WebEssentials is disabled the menu is still present in the VS-Main Menu Bar.

@madskristensen
Copy link
Owner

It sounds like a MEF cache corruption. The error has nothing to do with any of these extensions, but with the Visual Studio MEF cache. Try this https://visualstudiogallery.msdn.microsoft.com/22b94661-70c7-4a93-9ca3-8b6dd45f47cd

@Gambero81
Copy link

Hi, i have the same problem, i have tried Clear MEF Component Cache without success..
First run of visual studio WebEssentials is disabled, if i reenable the extension from Extension and Updates window and click to restart visual studio it reload well, but next time i start visual studio the extension is still disabled...

NB. In my case when web essential is disabled, no web essential menu is loaded

There is a log where i can find some info about the problem?

@opus131
Copy link

opus131 commented Nov 12, 2015

I am having the exact same problem in VS2015 Community on Windows 10. But only with WebEssentials and one other extension, called GitDiffMargin. Clearing the MEF cache does not help. Any other ideas how to fix this?

@flcdrg
Copy link

flcdrg commented Nov 18, 2015

I've been seeing the same problem. I noticed that the ActivityLog.xml file was logging a couple of errors. One of which was:

Extension will not be loaded because an extension with the same ID '5fb7364d-2e8c-44a4-95eb-2a382e30fec9' is already loaded at C:\USERS\DAVID\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\14.0\EXTENSIONS\LG5OBJ45.EKL...
C:\USERS\DAVID\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\14.0\EXTENSIONS\PMHVMCOV.BWZ\

Somehow I've ended up with two instances of Web Essentials in separate folders - 0.5.175 and 0.5.197.

Interestingly I've got this for 3 other extensions.

One unusual thing I have done is upgrade from Professional to Enterprise, so not sure if that is significant.

@flcdrg
Copy link

flcdrg commented Nov 18, 2015

That was the problem. Solution was to uninstall the extension twice before reinstalling it. I've written up the steps here - http://david.gardiner.net.au/2015/11/web-essentials-2015-extension-keeps.html

@opus131
Copy link

opus131 commented Nov 18, 2015

Thank you very much for this David!

@ghost
Copy link

ghost commented Nov 30, 2015

I have been struggling with this problem for a while. Thanks David!

@jphellemons
Copy link

Thank you @madskristensen for https://visualstudiogallery.msdn.microsoft.com/22b94661-70c7-4a93-9ca3-8b6dd45f47cd
I have a lot of MEF cache issues. Which result that I am unable to open any razor (cshtml) files. So I use Code for razor views and Visual Studio for models/viewmodels/controllers etc.

@drewnoakes
Copy link

This tool helped me clear up duplicate extensions: https://github.com/remcoros/DuplicateExtensionFinder

@mttmccb
Copy link

mttmccb commented Sep 20, 2016

Thanks @drewnoakes I've been having this problem for ages and this has been the only "solution" that worked. It explains why people have success with reinstalling, but so glad I don't have to do that!

@GlynP
Copy link

GlynP commented Oct 9, 2016

Thanks @drewnoakes Came across your helpful VS tool after an exchange with @madskristensen on twitter pointed me to the known VS2015 issue with extensions. No more daily fiddling and checking extension status now! One happy olde programmer :-)

@drewnoakes
Copy link

@GlynP glad to hear it helped you too, though I can't take credit for the tool as I didn't write it! All credit to @remcoros :)

@GlynP
Copy link

GlynP commented Oct 9, 2016

@drewnoakes Ah, so busy wrestling with the glitch and happy to find a fix I didn't notice you weren't the author! My thanks to you for pointing me in the right direction and my thanks to @remcoros for writing the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants