Do I need to install MVC 3/4 on web server to run mvc application

后端 未结 4 1178
日久生厌
日久生厌 2020-11-28 06:19

I\'ve a MVC 4 application and runs well on my DEV Machine where I installed MVC 4 extension for VS 2010.

When deploying to the web server with IIS 7, do I need to in

4条回答
  •  借酒劲吻你
    2020-11-28 06:47

    You no longer have the option to "Add deployable dependencies" in Visual Studio 2012. So you'll have to do it manually, by bin deploying all the MVC assemblies:

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

    A step by step guide is found here.

提交回复
热议问题