MVC3 Deployment Dependency Problems

后端 未结 4 747
不知归路
不知归路 2020-12-05 17:27

I\'ve just tried deploying an MVC3 application to our IIS7 hosting environment but I\'m being presented wtih the following exception:

Could not load t

4条回答
  •  时光说笑
    2020-12-05 18:18

    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.

提交回复
热议问题