Could not load file or assembly 'System.Web.Mvc' or one of its dependencies

前端 未结 5 428
没有蜡笔的小新
没有蜡笔的小新 2020-12-31 21:56

I have this new MVC application which I have installed on Windows 2008 Server. And get the following message when I run the localhost.

I have checked in the Bin fol

5条回答
  •  天命终不由人
    2020-12-31 22:33

    I had this problem when deploying to a server which ran MVC2, the files which will need to be included in the build are:

    Microsoft.Web.Infrastructure.dll
    System.Web.Helpers.dll
    System.Web.Mvc.dll
    System.Web.Razor.dll
    System.Web.WebPages.Deployment.dll
    System.Web.WebPages.dll
    System.Web.WebPages.Razor.dll
    

    Phil Haack has done a good post here (for how to solve if you run into this problem when deploying)

    http://haacked.com/archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx

提交回复
热议问题