2011-12-14 2 views

답변

1

가있을 수 제한을 초과 할 경우

어떤 이유

, 어떤 요소 (기본 최대 인 실버 클라이언트 콜백에서 볼 수 없다 2 147 483 647 바이트, 내가 잘못하지 않았다면). 또한 반환 된 개체 그래프의 최대 항목에 대한 기본 제한이 있습니다 (값은 65536 임). 즉, 3450 개의 엔티티가 너무 많아서 클라이언트에 전달되는 관련 객체가있는 경우 오류가 발생합니다. 당신의 자신의 위험이를 고정하기위한 서비스를 위해 행동 구성을 추가 :

... 
    <services> 
    <service name="MySilverlightAppl.Web.MyDomainService" behaviorConfiguration="MyDomainServiceConfig"> 
    </service> 
    </services> 

    <behaviors> 
    <serviceBehaviors> 
     <behavior name="MyDomainServiceConfig"> 
     <dataContractSerializer maxItemsInObjectGraph="xxxxxx"/> 
     </behavior> 
    </serviceBehaviors> 
    </behaviors> 
</system.serviceModel> 
+0

http://stackoverflow.com/questions/7476853/wcf-error-maximum-number-of-items-that-can-be- 직렬화 또는 비 직렬화 –

관련 문제