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

前端 未结 8 1589
醉梦人生
醉梦人生 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:46

    None of previous answers worked for me.

    I noticed that my project was referencing another project using the System.Web.Mvc reference from the .NET Framework.

    I just deleted that assembly and added the "Microsoft.AspNet.Mvc" NuGet package and that fixed my problem.

提交回复
热议问题