MVC3 Deployment Dependency Problems
It turns out after doing a Reference Cleaning, it removed Microsoft.Web.Infrastructure
, but not from the packages.config file. After trying to add it again using the Package Manager Console
, Visual Studio says that it is already installed which is false because it was removed.
I then removed the line of code in the packages.config
file
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
and ran the command again
PM> Install-Package Microsoft.Web.Infrastructure
After this, now it works fine.
This is because Microsoft.Web.Infrastructure
is not in your GAC. You need to add this reference to your project. Right click the reference and go to properties then set copy to local to true.
Output (Ignore the Ninject and NCU):