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.