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

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

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]

... 76  77  [78]  79  80  81  82  83  84  85  86  87  88  89  90  ...
NoWriterDateCnt.TitleFile(s)
554sky1/23/200715087<급질문> interop 를 사용함에 있어 [2]
557sky1/26/200712663    답변글 [답변]: <급질문> interop 를 사용함에 있어
553deve...1/15/200714615오류가 나는데 도저히 모르겠네여...좀 봐주세요... [3]파일 다운로드1
551sky1/23/200713608[급질문] vb6으로 만들어진 dll 를
552정성태1/10/200715343    답변글 [답변]: [급질문] vb6으로 만들어진 dll 를 [1]
546오택성1/2/200714097스마트클라이언트 DebugIEHost.log 좀 봐 주세요. [9]
545심현철12/28/200614245ClickOnce를 이용한 SmartClient의 설치 자동화 방법에 대해서 문의를 드립니다. [1]
53912/26/200613368COM+ 자동등록 하니 속도가 영...?
540정성태12/26/200615379    답변글 [답변]: COM+ 자동등록 하니 속도가 영...? [1]
538오택성12/26/200614598스마트클라이언트에서 그리드 컴포넌트 사용시 화면에 그리드가 올라오지 않네요~ [1]
537김현12/23/200615112스마트클라이언트 CAS배포문제와, ASP.NET에서 SmartClient로 DB인자 넘기는 문제 입니다. [3]
536오택성12/23/200612610스마트 클라이언트에서 A폼에서 B폼에 있는 그리드에 데이타를 담을려고 하는데요... [2]파일 다운로드1
541달봉이12/27/200615192    답변글 [답변]: 스마트 클라이언트에서 A폼에서 B폼에 있는 그리드에 데이타를 담을려고 하는데요...
535김태곤12/22/200618978ActiveX DLL( VB 6.0 )와 관련해 질문드립니다. [1]파일 다운로드1
534심현철12/21/200614512IE Embedded SmartClient관련 질문입니다. [1]
542달봉이12/27/200614784    답변글 [답변]: IE Embedded SmartClient관련 질문입니다.
543심현철12/27/200613692        답변글 [답변]: [답변]: IE Embedded SmartClient관련 질문입니다.
544달봉이12/28/200613446            답변글 [답변]: [답변]: [답변]: IE Embedded SmartClient관련 질문입니다.
53112/20/200615264업로드 시에 로컬의 파일을 페이지 submit 시에 같이 태워보낼 수 있을 까요?
532정성태12/20/200612816    답변글 [답변]: 업로드 시에 로컬의 파일을 페이지 submit 시에 같이 태워보낼 수 있을 까요? [1]
527심현철12/19/200615458VC++과 C# COM의 interop에서 디버깅을 하는 방법에 대해서 물어봅니다.
529정성태12/19/200616754    답변글 [답변]: VC++과 C# COM의 interop에서 디버깅을 하는 방법에 대해서 물어봅니다. [1]
526독불장군12/17/200613051아랫글 과련... [1]
525독불장군12/15/200613233일주일 공부하고 있는데 잘 안되네요 도와 주세요 스마트 클라이언트파일 다운로드1
528정성태12/19/200613528    답변글 [답변]: 일주일 공부하고 있는데 잘 안되네요 도와 주세요 스마트 클라이언트
530독불장군12/20/200613013        답변글 [답변]: [답변]: 답변에 감사 드립니다.
... 76  77  [78]  79  80  81  82  83  84  85  86  87  88  89  90  ...