我根据专业ASP.NET 3.5 MVC的第13章,由Scott Hanselmen,Phil Haack和Rob Conery将一个ASP.net 4 webform项目转换为Asp.net MVC4,由Wiley Publishing,Inc.出版(ISBN:978-) 0-470-38461-9).我也关注了这个博客.现在我可以添加控制器,视图等.所有引用都设置正确.没有构建错误.但是在启动转换后的项目时,我遇到了编译错误.我在同一台机器上安装了mvc3.我甚至改变了对它的引用.它仍然抱怨.你能帮忙吗?谢谢.
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 …Run Code Online (Sandbox Code Playgroud)