Microsoft MVP성태의 닷넷 이야기
WCF에서 maxItemsInObjectGraph 오류 관련 질문드립니다. [링크 복사], [링크+제목 복사],
조회: 13703
글쓴 사람
채동민
홈페이지
첨부 파일
 

안녕하세요. 삼성중공업 채동민입니다. 직장 옮기셨다죠. 잘 지내시는지요?

wcf 통신중 MaxItemsInObjectGraph관련 오류가 생겼는데 원인을 찾기 힘들어서 질문드려요.

------------------------------------ 오류내용
Event Type: Error
Event Source: HSServer
Event Category: None
Event ID: 0
Date: 4/19/2010
Time: 7:39:39 PM
User: N/A
Computer: MSDHS
Description:
tickTimer_Elapsed(HS) - DaqServer.GetValue/GetChange
MSDHS ? mscorlib ?? ??? ???????.

ErrorMessage : The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:GetChangesResult. 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.

Server stack trace:

Exception rethrown at [0]:
at IAS.ServiceRef.DaqServiceRef.IDaqService.GetChanges()
at IAS.ServiceRef.DaqServiceRef.DaqServiceClient.GetChanges() in d:\work\iaspackage\IASPackage\Dailybuild_Release_Msdcore\Sources\IAS_Solution_2006_10_12\ServiceInterfaceProjects\IAS.ServiceRef\Service References\DaqServiceRef\Reference.cs:line 1550
at HSServiceLibrary.TagHistoryProcess.tickTimer_Elapsed(Object sender, ElapsedEventArgs e) in d:\work\iaspackage\IASPackage\Dailybuild_Release_Msdcore\Sources\IAS_Solution_2006_10_12\ServiceInterfaceProjects\IAS.HSService\History\TagHistoryProcess.cs:line 291
-----------------------------------------------------
ErrorMessage : 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.
at ReadArrayOfItemTFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString , XmlDictionaryString , CollectionDataContract )

------------------------------------------------------------------------------------------------------------------
app.config 상의 maxItemsInObjectGraph 필드는 아래와 같이 충분히 큰데 65536을 넘는다는 오류가 뜨는군요.

<behaviors>
<serviceBehaviors>
<behavior name="HSServiceLibrary.ServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
<serviceThrottling maxConcurrentSessions="50"/>
</behavior>
</serviceBehaviors>
</behaviors>

안녕히 계세요..








[최초 등록일: ]
[최종 수정일: 5/19/2010]


비밀번호

댓글 작성자
 



2010-04-21 01시14분
넵. 저는 잘 지내고 있습니다. ^^

음... 보내주신 거는... 예외 메시지의 콜스택을 보아하니 클라이언트 측에서 호출한 것이 오류가 발생하는 것인데요.
반면 app.config 에서는 serviceBehaviors로 해서 서비스 측에 적용되는 설정값을 보여주고 있습니다. 그렇다면 오류가 발생하는 것이 맞습니다.

클라이언트 측에 설정값이 적용되려면 endpointBehaviors 에 설정이 되어야 합니다.

<behaviors>
<serviceBehaviors>
</serviceBehaviors>
<endpointbehaviors>
<behavior name="myBehavior">
<datacontractserializer maxitemsinobjectgraph="2147483647" />
</behavior>
</endpointbehaviors>
</behaviors>

kevin25
2010-05-16 05시59분
[누굴까~~요?^^] 예서 채선임님도 뵙네요...
반갑습니다.
[guest]

... [61]  62  63  64  65  66  67  68  69  70  71  72  73  74  75  ...
NoWriterDateCnt.TitleFile(s)
1091김대경9/20/201210592    답변글 [답변]: windows2008 에서 ActiveX 사용 시 문제점. [2]파일 다운로드1
1081Seon...8/20/201212899WCF 파일 업,다운로드 문제 [2]
1080배동선8/13/201211681정품 라이센스 인증 개발에 대해 조언을 구하고 싶습니다 [4]
1079송준호8/11/20129689basicHttpBinding stream 전송에 관하여 질문드립니다. [1]
1078Ho S...8/10/20128894윈도우폰 지도 구현에서 ㅠㅠㅠ 질문드립니다. [1]파일 다운로드1
1077한우주8/6/201211830웹서비스 호출 후 세션 유지하기 [1]
1076이성환8/2/201211311dynamic 변수 할당은 도대체 어디에???? [1]
1073pass...7/24/201211174c# 으로 만드는 음성인식/TTS 프로그램에 관련해서.. [3]
1072일반인7/23/201213418rss 만드는 방법 알려주실 수 있으신가요? [5]
1069임경훈7/20/201214129아래와 같은 오류후 IIS가 다운되는 현상이 발생합니다. [1]
1068신호철6/15/201213475ClassLibrary COM+ 등록 안되는 현상 [2]
1067김은주6/14/201222866소스세이프 사용시 pfx 파일 빌드 실패 [3]
1066너무초보6/3/201210055안녕하세요! 디렉토리 삭제 오류 질문 좀 드립니다. [4]
1065이성환5/23/201211807Assembly.LoadFrom Assembly.Load 의 차이점이 궁금합니다. [2]파일 다운로드1
1064푸우5/21/201210659GPU 디바이스 재시작시 WPF + .NET 3.5 기반 어플리케이션 UI 문제 [2]
1063발코더5/20/201210788귀신 곡할 상황 질문입니다. [3]
1062김규덕5/12/201210936ffmpeg 관련 조언 구합니다. [2]
1061Dave5/11/20129667언제 스크린 캡쳐 하시나요? [1]
1058정재훈5/11/201211566c#으로 동영상에 로고를 삽입하는 기능을 구현중입니다. [3]
1057전남진5/1/201210640** 몇일째 고생하다가 웹 검색을 통해 알게되어 질문드립니다.. 초보 질문이긴하지만 도움 부탁드려요 [2]
1056안현수5/1/201212367listview 와 웹파싱에관해 질문드립니다 [1]파일 다운로드1
1055이성환4/30/201210505WPF FramworkElement의 이벤트를 가져오고 싶습니다. [3]
1054정웅모4/20/201210047안녕하세요 [1]
1053폭풍코딩4/19/201210381스마트클라이언트 ctrl-c 복사가 작동하지 않습니다. [1]
1052에슈리온4/17/201226102ClickOnce 배포시 클라이언트의 설치경로를 지정할 수 없나요? [1]
1051최정수4/10/201213209WCF 클라이언트 비정상 종료 관련 [1]
... [61]  62  63  64  65  66  67  68  69  70  71  72  73  74  75  ...