Google Analytics İzleme

08 Temmuz 2009

.Net'ten SAP RFC çağırırken MaxItemsInObjectGraph değerini artırma

RFC metodundan dönen veriler çok fazla ise aşağıdaki hatayı verecektir:

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.

Bu değeri artırmak için :

Error while retrieving XML with more than 65,536 nodes

Problem

The adapter gives the following error while retrieving XML output that has more than 65,536 nodes.

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.

Cause

The adapter cannot serialize and deserialize an object with more than 65,536 items.

Resolution

You can fix this issue by setting the maxItemsInObjectGraph parameter in either of the following two ways:

  • Set this parameter by changing the maxItemsInObjectGraph parameter in the ServiceBehavior attribute on your service class.

  • Add the following to your application's app.config file.







A sample app.config will look like the following.












contract="IOutboundContract" name="sap_ICalculator" />



Kaynak:
http://msdn.microsoft.com/en-us/library/dd788590.aspx

Hiç yorum yok: