Thursday, July 31, 2014

Failure to load packages creating an MVC project

Whenever I create a new MVC project, I am getting an error loading various packages for Powershell, entity framework and Jquery.

The error: The following packages failed to install from 'C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 5\Packages'

I noticed a reference looking for C:\Program Files (x86)\7-Zip\7z.exe, which is pretty strange and subsequently found that 7Zip was installed in the “c:\program files” hive and not in the x86 one. I copied the 7zip folder to the x86 folder structure and then restarted Visual Studio. Now it works as expected.

I can only surmise that by installing 7Zip i have messed with the natural order of things somehow. Either way, copying to the x86 folder fixed things for me.

Something to remember if you get the same issue.


p.s. i haven’t had this issue on my Windows 7 box but experienced this on the Windows 8 ‘beta’ image i am currently testing for rollout at work. I don’t remember if i installed 7Zip myself or if it was already installed. I have a sneaky suspicion it was already there and maybe the directory it was installed to was incorrect?

1 comment:

  1. All the lovers are excited because the day of love, Valentine's Day 2018 is near. All have started making plans for this special day to make it more special for their soul mates.

    read more