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

MissingMethodException Error...

1 Answer 165 Views
Grid
This is a migrated thread and some comments may be shown as answers.
tom
Top achievements
Rank 1
tom asked on 22 Mar 2009, 04:57 AM
I am using Q1 2009 and follow the Live Examples of ClientBinding.

Unable get the example to work with error:

System.MissingMethodException was unhandled by user code
  Message="No parameterless constructor defined for this object."
  Source="mscorlib"
  StackTrace:
       at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
       at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
       at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
       at System.Web.HttpRuntime.FastCreatePublicInstance(Type type)
       at System.Web.UI.WebControls.LinqDataSourceView.CreateObjectInstance(Type type)
       at System.Web.UI.WebControls.LinqDataSourceView.CreateContext(Type contextType)
       at System.Web.UI.WebControls.LinqDataSourceView.CreateContextAndTable(DataSourceOperation operation)
       at System.Web.UI.WebControls.LinqDataSourceView.CreateContextAndTableForSelect()
       at System.Web.UI.WebControls.LinqDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
       at System.Web.UI.WebControls.LinqDataSourceView.Select(DataSourceSelectArguments arguments)
       at Telerik.Web.UI.GridLinqDataSource.GetData()
       at Telerik.Web.UI.RadGrid.GetBindingData(String contextTypeName, String tableName, Int32 startRowIndex, Int32 maximumRows, String sortExpression, String filterExpression)
       at DataService.GetDataAndCount(Int32 startRowIndex, Int32 maximumRows, String sortExpression, String filterExpression) in c:\ACAMS\_Schools\App_Code\ GridWcfService.cs:line 43
       at SyncInvokeGetDataAndCount(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
  InnerException: 

at the GridWcfService.svc/GridWcfService.cs modules.

Re-install .NET 3.5 SP1 frame work does not fix problem.

How can I fix it?

Thank.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 24 Mar 2009, 05:06 PM
Hello tom,

I suggest you review the communications from the following public forum post and migrate to the latest internal build of RadControls for ASP.NET AJAX to address the issue in question.

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
tom
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or