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

[Solved] Example Code Broken

1 Answer 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brent
Top achievements
Rank 1
Brent asked on 11 Jul 2011, 02:45 PM
Hi, I am trying to use Telerik ASP.NET MVC2 GRID in VB.NET with Visual Studios 2008 and 2010 on Windows 7 32-bit.  First of all i cannot open it in 2008, but in 2010, I am having nothing but trouble with this product.  I tried using the example code at http://www.telerik.com/community/forums/aspnet-mvc/grid/mvc-grid-using-vb-net.aspx#1104707 with no luck.  This code is supposed to work, yet i get the following error message on the gridBuilder.Render() function in Views/Home/Index.aspx:

System.MissingMethodException was unhandled by user code
  Message=Method not found: 'System.Collections.Generic.IDictionary`2<System.String,System.Web.Mvc.ValueProviderResult> System.Web.Mvc.ControllerBase.get_ValueProvider()'.
  Source=Telerik.Web.Mvc
  StackTrace:
       at Telerik.Web.Mvc.UI.GridBindingContextExtensions.ValueOf[T](ControllerBase controller, String key)
       at Telerik.Web.Mvc.UI.GridBindingContextExtensions.ValueOf[T](IGridBindingContext context, String key)
       at Telerik.Web.Mvc.UI.GridDataProcessor.get_SortDescriptors()
       at Telerik.Web.Mvc.UI.GridRenderer`1.HeaderCellContent(GridColumn`1 column)
       at Telerik.Web.Mvc.UI.Grid`1.WriteHeaderCell(IGridRenderer`1 renderer, GridColumn`1 column)
       at Telerik.Web.Mvc.UI.Grid`1.<>c__DisplayClass16.<WriteHeader>b__14(GridColumn`1 column)
       at Telerik.Web.Mvc.Extensions.EnumerableExtensions.Each[T](IEnumerable`1 instance, Action`1 action)
       at Telerik.Web.Mvc.UI.Grid`1.WriteHeader(IGridRenderer`1 renderer)
       at Telerik.Web.Mvc.UI.Grid`1.WriteTable(IGridRenderer`1 renderer)
       at Telerik.Web.Mvc.UI.Grid`1.WriteHtml(HtmlTextWriter writer)
       at Telerik.Web.Mvc.UI.ViewComponentBase.Render()
       at Telerik.Web.Mvc.UI.ViewComponentBuilderBase`2.Render()
       at ASP.views_home_index_aspx.__RenderindexContent(HtmlTextWriter __w, Control parameterContainer) in C:\Users\bragas\Downloads\176324_visualbasicmvcgrid\VisualBasicMvcGrid\Views\Home\Index.aspx:line 20
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
       at System.Web.UI.Control.Render(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
       at ASP.views_shared_site_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\Users\bragas\Downloads\176324_visualbasicmvcgrid\VisualBasicMvcGrid\Views\Shared\Site.Master:line 35
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
       at System.Web.UI.Control.Render(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
       at System.Web.UI.Page.Render(HtmlTextWriter writer)
       at System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  InnerException:

Thank you and looking forward to using this powerful product in my company,
Brent

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 11 Jul 2011, 03:45 PM
Hi Brent,

 Are you trying to open the source project or the examples? This could make a difference. The examples can be found in Examples folder and require VS2010 and ASP.NET MVC 3.

 The error which you are seeing can occur if you the ASP.NET MVC version does not match with the Telerik.Web.Mvc.dll version e.g. ASP.NET MVC 1 application trying to use the MVC2 build. This can occur if you have opened the Source code project (which can be found in the Source folder of the distribution) and the solution build configuration of all projects is not in sync.

All the best,
Atanas Korchev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
Brent
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or