找不到ASP.Net MVC 2错误方法:'System .string

时间:2010-04-21 14:13:36

标签: asp.net asp.net-mvc

我将我的网站从asp.net mvc 1.0转换为2.0。转换后我在actionlink中收到以下错误

Method not found: 'System.String System.Web.Mvc.Html.LinkExtensions.RouteLink(System.Web.Mvc.HtmlHelper, System.String, System.Web.Routing.RouteValueDictionary, System.Collections.Generic.IDictionary`2<System.String,System.Object>)'.

Line 102:                    <%var Signin = Html.Resource("globalResources, Signin"); %>
Line 103:                    <% if (string.IsNullOrEmpty(Signin)) Signin = "Signin"; %>
Line 104:                    <%= Html.ActionLink<AccountController>(cntrl => cntrl.LogOn(), Signin.ToString(), new { @class = "defaultmaster" })%>
Line 105:                    |
Line 106:                    <%var register = Html.Resource("globalResources, Register"); %>


Source File: e:\Muchsocial\Sourcecode\Muchsocial\Views\Shared\Muchsocial.Master    Line: 104 

1 个答案:

答案 0 :(得分:0)

您是否仍在使用1.0版的MvcFutures?您可能希望从2.0升级并使用MvcFutures。