Asked by:
VS2013 Enable-Migrations error "Could not load file or assembly 'Microsoft.VisualStudio.Shell, Version=10.0.0.0,...'"

Question
-
User-228724590 posted
Hi,
I'm trying to enable migrations on a EF Code-First project using VS2013 Pro, and I'm getting this error: 'System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Shell, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.'
I remember being able to do this on VS2010, but I have already updated to VS2013.
I tried the solution metioned here, which is to install "Microsoft Visual Studio 2013 Shell (Isolated) Redistributable Package", but that didn't really help. I still get the error.
Anyone knows how to fix this?
Monday, July 13, 2015 1:30 AM
All replies
-
User2024324573 posted
Do you have the latest update installed for Visual Studio 2013?
Please see this post: http://stackoverflow.com/questions/19748878/entity-framework-migrations-error-using-visual-studio-2013
Monday, July 13, 2015 3:29 AM -
User-228724590 posted
I have tried installing Update 5 of VS2013, but that did not fix the problem.
I also tried switching from EF 5 to EF6 for my project, but it meant updating my project to compile and work with EF6, which I didn't want to do at this stage.
Note that I have VS2013 after upgrading from VS2010 through my MSDN subscription. I read from that SO item the bug could be related to remnants of VS2010. So I might tried uninstalling VS and re-installing. This bug is such a pain!
Monday, July 13, 2015 8:08 PM -
User2024324573 posted
Try with that, as I don't see any issue as I am working on VS 2013 from the beginning since it has been released.
Monday, July 13, 2015 8:13 PM -
User-228724590 posted
Hi @mostafasydney, Firstly, thanks for your help! Did you install VS2013 as a fresh install or as an upgrade from VS2010?
Monday, July 13, 2015 8:15 PM -
User2024324573 posted
I did fresh install,
Thanks,
Monday, July 13, 2015 8:16 PM -
User-228724590 posted
I think the problem with mine is it is an upgrade from VS2010.
I also get a weird error message "Invalid license data. Reinstall is required." whenever I try to open old projects I wrote originally on VS2010. I do not have VS2010 anymore and yet the VS Version Selector still seems to think I have it.
So I might try uninstalling and start afresh. There goes half of my day, at least.
Monday, July 13, 2015 8:22 PM -
User-166373564 posted
Hi Frank,
I also get a weird error message "Invalid license data. Reinstall is required." whenever I try to open old projects I wrote originally on VS2010. I do not have VS2010 anymore and yet the VS Version Selector still seems to think I have it.You can download and install Microsoft Visual Studio 2013 Update 4 after you install VS 2013, this update is the latest in a cumulative series of feature additions and bug fixes for Visual Studio 2013. then open your project, and check whether it can fix it.
With regards,
Angie
Tuesday, July 14, 2015 5:59 AM -
User-228724590 posted
Hi Angie,
I actually have VS2013 (Pro) Update 4 (as that is the version available on my MSDN subscription). And installing Update 5 RC did not help either. Neither did uninstalling VS2013 and reinstalling help.
The message comes from "VS 2010 Shell". So I tried uninstalling VS2010 Shell. That removed the issue. It actually removed "VS 2010" from the Visual Studio Version Selector. HOWEVER, it stuffed up my SQL 2014 Express Management Studio. When I try to start my SMS, it says "Cannot find one or more components. Please reinstall the application." It is like a chain reaction.
I tried to re-install SQL 2014 Express, but it insists on installing the VS 2010 Shell if you want the Management Studio. It seems to not recognize (or work with) VS2013 which I already have installed.
Anyway, re-installing SQL 2014 Express, and therefore VS2010 Shell, does not appear to resolve this issue with Enable-Migrations. I still get the same error "Could not load file or assembly 'Microsoft.VisualStudio.Shell, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."
Tuesday, July 14, 2015 8:25 PM -
User-166373564 posted
Hi Frank,
Please install Microsoft Visual Studio 2013 Shell (Isolated) Redistributable Package, and check whether it can fix it.
With regards,
Angie
Monday, July 27, 2015 11:28 PM