I followed the video below step by step and was able to create a SL4 application using the RadGridView, EF4 and WCF RIA Services.
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.
<service name="RadControlsSilverlightApp4.Web.DomainService1" behaviorConfiguration="RadControlsSilverlightApp4-Web-DomainService1"> </service>
<serviceMetadata httpGetEnabled="True" />
<serviceDebug includeExceptionDetailInFaults="true" />
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?