MVC beta的应用程序调试

运行MVC beta的应用程序出错:
Compiler Error Message: CS0234: The type or namespace name 'Html' does not exist in the namespace 'System.Web.Mvc' (are you missing an assembly reference?)
Source Error:
Line 94: <add namespace="System.Web.Mvc.Html"/>
Source File: d:\Lion\AP\MvcApp\MvcApp\Web.config    Line: 94
处理办法:注释掉MvcApp\Web.config第94行即可。

彻底处理办法:因为我前两天刚刚卸载了AspNetMVCBeta-setup.msi,后来又重新安装的。而在第一次安装的时候是好的。于是我又卸载了重新安装。功夫不负有心人,终于搞定。
当然也可以使用Addins的方式来安装,可以参考http://haacked.com/archive/2008/12/03/known-installation-issues-with-asp.net-mvc.aspx

 

posted @ 2009-01-21 09:35  向阳  阅读(491)  评论(0编辑  收藏  举报