Slider

Marie Curie Newton Stephen Hawkings APJ Kalam Edison Einstein Gregor Mendel Aryabhatta Ramanujan

Thursday, 27 November 2014

Could not load file or assembly 'System.Net.Http.Formatting' or one of its dependencies. The system cannot find the path specified

Whenever you have a NuGet error such as these I usually take these steps:
1) Go to the packages folder in the Windows Explorer and delete it.
2) Open Visual Studio and Go to Tools > Library Package Manager > Package Manager Settings and under the Package Manager item on the left hand side there is a Clear Package Cache button. Click this button and make sure that the check box for "Allow NuGet to download missing packages during build" is checked.
3) Clean the solution
4) Then right click the solution in the Solution Explorer and enable NuGet Package Restore
5) Build the solution 
Taking all of these steps almost always restores all the packages and dll's I need for my MVC program.

No comments:

Post a Comment