I tried to upload my web site to a server. It was working fine with my local host, so I uploaded everything in my localhost wwwroot folder to the server and cha
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
and ran the command again
PM> Install-Package Microsoft.Web.Infrastructure
After this, now it works fine.