根据Professional ASP.NET 3.5 MVC的第13章,Scott Hanselmen和Phil Haack将ASP.net 4 webform项目转换为Asp.net MVC4,以及Rob Conery,由Wiley Publishing,Inc出版(ISBN:978-0-470-38461-9)。我也跟着这blog。现在我可以添加控制器,视图等。所有的参考都设置正确。没有生成错误。但是在启动转换后的项目时,我收到了编译错误。我在同一台机器上安装了mvc3。我甚至改变了参考。它仍然抱怨。你能帮忙吗?谢谢。CS0234:Mvc不存在于System.Web命名空间中
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Source Error:
Line 109: <namespaces>
Line 110: <add namespace="System.Web.Helpers"/>
Line 111: <add namespace="System.Web.Mvc"/>
Line 112: <add namespace="System.Web.Mvc.Ajax"/>
Line 113: <add namespace="System.Web.Mvc.Html"/>
Source File: c:\Users\Jon\Documents\Visual Studio 2012\Projects\CMT\Apps\Branches\3.0\Web.config Line: 111
没有阅读文章,编号想知道,你是否添加引用mvc DLL的? – 2013-02-12 01:58:42