This is a migrated thread and some comments may be shown as answers.

[Solved] ASP.NET MVC 4 Beta Exception

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mike Cousins
Top achievements
Rank 1
Mike Cousins asked on 18 Apr 2012, 05:42 AM

I recently upgraded my site to ASP.NET MVC 4 Beta and I'm running into a strange exception now that seems to be Telerik related.  If anybody has any ideas for how to fix it that would be great!

Server Error in '/' Application.

Method not found: 'Telerik.Web.Mvc.UI.ViewComponentFactory`1<!!0> Telerik.Web.Mvc.UI.HtmlHelperExtension.Telerik(System.Web.Mvc.HtmlHelper`1<!!0>)'.

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: 'Telerik.Web.Mvc.UI.ViewComponentFactory`1<!!0> Telerik.Web.Mvc.UI.HtmlHelperExtension.Telerik(System.Web.Mvc.HtmlHelper`1<!!0>)'.

Source Error: 

Line 101:@Html.ActionLink("FAQ", "FrequentlyAskedQuestions", "Help") | 
Line 102:@Html.ActionLink("Terms Of Service", "TermsOfService", "Home") | 
Line 103:@Html.ActionLink("Privacy", "Privacy", "Home")<br />
Line 104:Icons by <a href="http://dryicons.com">DryIcons</a><br />
Line 105:©2010-11 Shuttr Inc.<br />

Source File: c:\Users\Administrator\Documents\git\shuttr\Website\Shuttr.Web\Views\Shared\_Layout.cshtml    Line: 103 

Stack Trace: 

[MissingMethodException: Method not found: 'Telerik.Web.Mvc.UI.ViewComponentFactory`1<!!0> Telerik.Web.Mvc.UI.HtmlHelperExtension.Telerik(System.Web.Mvc.HtmlHelper`1<!!0>)'.]
   ASP._Page_Views_Shared__Layout_cshtml.Execute() in c:\Users\Administrator\Documents\git\shuttr\Website\Shuttr.Web\Views\Shared\_Layout.cshtml:103
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +97
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +88
   System.Web.WebPages.<>c__DisplayClass7.<RenderPageCore>b__6(TextWriter writer) +233
   System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +10
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +71
   System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +64
   System.Web.WebPages.WebPageBase.PopContext() +246
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +95
   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +257
   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +295
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +23
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +242
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +21
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
   System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +89
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +102
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +57
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +43
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +57
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +47
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +9
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__4(IAsyncResult asyncResult) +25
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +48
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9478661
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +178


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17379
 

1 Answer, 1 is accepted

Sort by
0
Mike Cousins
Top achievements
Rank 1
answered on 18 Apr 2012, 05:43 AM
The line of code that it is breaking on seems to be completely unrelated.  If I delete that line it moves up a line, if I comment it out it still breaks on that (commented) line, etc.
Tags
General Discussions
Asked by
Mike Cousins
Top achievements
Rank 1
Answers by
Mike Cousins
Top achievements
Rank 1
Share this question
or