This question is locked. New answers and comments are not allowed.
Hi,
I followed the video below step by step and was able to create a SL4 application using the RadGridView, EF4 and WCF RIA Services.
http://tv.telerik.com/silverlight/radgridview/optimizing-radgridview-silverlight
Everything works great using a small SQL Database like Northwind. However, when I tried creating the exact same project using the larger AdventureWorks database using the SalesOrderHeaders table, I get an error when I run it. It does not seem to matter what table I use as long as it has more than a few hundred records in it. Very small tables work fine (like in the Northwind database).
I traced the cryptic "Error NotFound" message using SvcTraceViewer.exe and it displayed the following error:
There was an error while trying to serialize parameter http://tempuri.org/:GetSalesOrderHeadersResult. The InnerException message was 'Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the MaxItemsInObjectGraph quota. '. Please see InnerException for more details.
I tried to increase the maxItemsInObjectGraph in the Web.Config to a very high number but still received the above error. Here is the setting I have in the Web.Config.
What do I need to do to prevent this error? My goal is to load the RadGridView with thousands of records like you have shown in your performance examples. However, any time I tried to load the RadGridView with more than a few hundred records I get this error. Any ideas?
Regards,
Sam
I followed the video below step by step and was able to create a SL4 application using the RadGridView, EF4 and WCF RIA Services.
http://tv.telerik.com/silverlight/radgridview/optimizing-radgridview-silverlight
Everything works great using a small SQL Database like Northwind. However, when I tried creating the exact same project using the larger AdventureWorks database using the SalesOrderHeaders table, I get an error when I run it. It does not seem to matter what table I use as long as it has more than a few hundred records in it. Very small tables work fine (like in the Northwind database).
I traced the cryptic "Error NotFound" message using SvcTraceViewer.exe and it displayed the following error:
There was an error while trying to serialize parameter http://tempuri.org/:GetSalesOrderHeadersResult. The InnerException message was 'Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the MaxItemsInObjectGraph quota. '. Please see InnerException for more details.
I tried to increase the maxItemsInObjectGraph in the Web.Config to a very high number but still received the above error. Here is the setting I have in the Web.Config.
<services>
<service name="RadControlsSilverlightApp4.Web.DomainService1" behaviorConfiguration="RadControlsSilverlightApp4-Web-DomainService1"> </service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="RadControlsSilverlightApp4-Web-DomainService1">
<serviceMetadata httpGetEnabled="True" />
<serviceAuthorization impersonateCallerForAllOperations="false"/>
<serviceDebug includeExceptionDetailInFaults="true" />
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
</behavior>
</serviceBehaviors>
</behaviors>
What do I need to do to prevent this error? My goal is to load the RadGridView with thousands of records like you have shown in your performance examples. However, any time I tried to load the RadGridView with more than a few hundred records I get this error. Any ideas?
Regards,
Sam