ASP.NET MVC3 In IIS 7.5

后端 未结 9 1038
别跟我提以往
别跟我提以往 2020-12-31 11:47

Hi I want to publish an MVC 3 site in Windows Server 2008 R2 SP1. I installed MVC 3 and MVC 2. When I created an MVC 2 site, it worked fine but the MVC 3 site did not work.

9条回答
  •  一生所求
    2020-12-31 12:13

    1. Right click on the your root project node in VS 2010 and select "Add Deployable Dependencies" and then choose:

    a) ASP .NET MVC

    b) ASP .NET Web Pages with Razor syntax

    (Press OK and Publish the project)

    1. The element "runAllManagedModulesForAllRequests" of the web.config should be = "true". (By Default it is TRUE)

    2. Under IIS 7.5 "Basic Settings" check if the website has Application pool like "ASP.NET v4.0"

    3. Make sure if you downloads ALL files from the BIN folder. Sometimes FileZilla gets stuck... So, check it twice.

    I hope this will help! :)

提交回复
热议问题