ObjectSharp Blogs

You are currently viewing

Dan's Blog

Random Ramblings on Software


MaxItemsInObjectGraph – WCF RIA Services Exception

 

The MaxItemsInObjectGraph error message comes up fairly often in the WCF RIA Services forums and I just ran into it on a personal project so I thought I’d write a quick blog on how to fix this error.

The exact error message from WCF Trace is:

'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. '.

You need to add the following code to your web.config, and replace the following:

HockeyStatsService-Web-HockeyStatsDomainService with YourRiaProjectName-Web-YourDomainServiceName

HockeyStatsService.Web.HockeyStatsDomainService with YourRiaProjectName.Web.YourDomainServiceName

<services>
  <service name="HockeyStatsService.Web.HockeyStatsDomainService"
          behaviorConfiguration="HockeyStatsService-Web-HockeyStatsDomainService">
  </service>
</services>
<behaviors>
  <serviceBehaviors>
    <behavior name="HockeyStatsService-Web-HockeyStatsDomainService">
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="true" />
      <dataContractSerializer maxItemsInObjectGraph="655360"/>
    </behavior>
  </serviceBehaviors>
</behaviors>

Comments

  • Dan's Blog April 13, 2010 8:58 PM

    The dreaded “The remote server returned an error: NotFound” error message in RIA Services can be frustrating

  • blingmyfaves.com November 26, 2010 10:07 AM

    The MaxItemsInObjectGraph error message comes up fairly often in the WCF RIA Services forums and I just ran into it on a personal project so I thought I’d write a quick blog on how to fix this error. The exact error message from WCF Trace is: 'Maximu

  • pligg.com November 26, 2010 10:07 AM

    The MaxItemsInObjectGraph error message comes up fairly often in the WCF RIA Services forums and I just ran into it on a personal project so I thought I’d write a quick blog on how to fix this error. The exact error message from WCF Trace is: 'Maximu

  • pligg.com November 26, 2010 10:18 AM

    The MaxItemsInObjectGraph error message comes up fairly often in the WCF RIA Services forums and I just ran into it on a personal project so I thought I’d write a quick blog on how to fix this error. The exact error message from WCF Trace is: 'Maximu

  • wagg.it November 26, 2010 10:19 AM

    The MaxItemsInObjectGraph error message comes up fairly often in the WCF RIA Services forums and I just ran into it on a personal project so I thought I’d write a quick blog on how to fix this error. The exact error message from WCF Trace is: 'Maximu

  • pligg.com November 26, 2010 10:29 AM

    The MaxItemsInObjectGraph error message comes up fairly often in the WCF RIA Services forums and I just ran into it on a personal project so I thought I’d write a quick blog on how to fix this error. The exact error message from WCF Trace is: 'Maximu

  • easymash.com November 26, 2010 10:56 AM

    The MaxItemsInObjectGraph error message comes up fairly often in the WCF RIA Services forums and I just ran into it on a personal project so I thought I’d write a quick blog on how to fix this error. The exact error message from WCF Trace is: 'Maximu

  • pligg.com November 26, 2010 10:59 AM

    The MaxItemsInObjectGraph error message comes up fairly often in the WCF RIA Services forums and I just ran into it on a personal project so I thought I’d write a quick blog on how to fix this error. The exact error message from WCF Trace is: 'Maximu

  • pligg.com November 26, 2010 11:19 AM

    The MaxItemsInObjectGraph error message comes up fairly often in the WCF RIA Services forums and I just ran into it on a personal project so I thought I’d write a quick blog on how to fix this error. The exact error message from WCF Trace is: 'Maximu

Anonymous comments are disabled