CS0234: Mvc does not exist in the System.Web namespace

前端 未结 8 1592
醉梦人生
醉梦人生 2020-12-01 08:57

I converted a ASP.net 4 webform project to Asp.net MVC4 according to Chapter 13 of the Professional ASP.NET 3.5 MVC, by Scott Hanselmen, Phil Haack, and Rob Conery, Publishe

8条回答
  •  我在风中等你
    2020-12-01 09:45

    This problem can happen when you deploy your web application to a server, so you must check if you already installed MVC3.

    Check if the folder C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 3 exists.

    If it doesn't exist, you need to install it from http://www.microsoft.com/en-us/download/details.aspx?id=1491


    If you wont to install you can add all DLLs locally in bin folder and add references to them this work fine if you host on server don't deploy ASP.NET Web Pages or MVC3.

提交回复
热议问题