我使用ASP.net MVC的发行版本,我似乎得到这个错误很多HTML辅助扩展未找到
'System.Web.Mvc.HtmlHelper' does not contain a definition for 'RenderPartial' and no extension method 'RenderPartial' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)
这是非常奇怪的,因为我可以浏览到的System.Web .Mvc.HtmlHelper和所有的扩展方法都在那里。更奇怪的是,我可以编译,所有的错误都会消失,但只要我再次开始编辑,它们就会显示出来。我包括
<%@ Import Namespace="System.Web.Mvc" %>
<%@ Import Namespace="System.Web.Mvc.Html" %>
在我site.master文件,我发现建议的地方,但似乎没有帮助。有任何想法吗? intelisense也没有找到扩展方法。
这仅仅是,它有一个新的项目 <%Html.RenderPartial( “LogOnUserControl”)标准的Site.Master; %> – stimms 2009-05-18 16:01:53