У меня есть сайт, разработанный в asp.net mvc 2.
У меня есть эта ошибка после загрузки моего проекта на публичный сервер. (Например, Godaddy)
Метод не найден: 'System.String System.Web.Mvc.Html.LinkExtensions.ActionLink (System.Web.Mvc.HtmlHelper, System.String, System.String, System.String)'.
Краткое описание:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MissingMethodException: Method not found: 'System.String System.Web.Mvc.Html.LinkExtensions.ActionLink(System.Web.Mvc.HtmlHelper, System.String, System.String, System.String)'.
Source Error:
Line 50:
< div class="nav_box" >
Line 51: < ul >
Line 52: < %= Html.MenuItem(Resources.Global.Home, "Index", "Home")%> //**Getting error here.**
Line 53: < %= Html.MenuItem(Resources.Global.Search, "Index", "Search")%>
Line 54: < %= Html.MenuItem(Resources.Global.Chemistry, "Chemistry", "Dating")%>
Исходный файл: d: \ hostfolder \ 61231230 \ html \ test \ Views \ Shared \ NewGeneral.Master Строка: 52
Stack Trace:
[MissingMethodException: Method not found: 'System.String System.Web.Mvc.Html.LinkExtensions.ActionLink(System.Web.Mvc.HtmlHelper, System.String, System.String, System.String)'.]
DatingScript.Helpers.MenuItemHelper.MenuItem(HtmlHelper helper, String linkText, String actionName, String controllerName) in MenuItemHelper.cs:34
ASP.views_shared_newgeneral_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\hostfolder\6954170\html\test\Views\Shared\NewGeneral.Master:52
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +59
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266