Microsoft MVP성태의 닷넷 이야기
WCF 서비스를 이용한 데이터 전송 중 Exception 문의 [링크 복사], [링크+제목 복사],
조회: 11386
글쓴 사람
김우형
홈페이지
첨부 파일
 

클라이언트에서 서버로 WCF서비스를 통해 데이터를 전송하는 중에 몇 시간이 흐르면 다음과 같은 Exception이 발생됩니다.
Exception이 발생되지 전까지는 문제없이 전송이 잘됩니다.
wsHttpBinding 을 사용 중입니다. 구글링을 해봤지만 문의는 있어도 답변이 없어 글을 올리게됐습니다.


System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
   at System.Configuration.PropertyInformationCollection..ctor(ConfigurationElement thisElement)
   at System.Configuration.ElementInformation.get_Properties()
   at System.ServiceModel.Configuration.MessageSecurityOverHttpElement.ApplyConfiguration(MessageSecurityOverHttp security)
   at System.ServiceModel.Configuration.NonDualMessageSecurityOverHttpElement.ApplyConfiguration(NonDualMessageSecurityOverHttp security)
   at System.ServiceModel.Configuration.WSHttpSecurityElement.ApplyConfiguration(WSHttpSecurity security)
   at System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration(Binding binding)
   at System.ServiceModel.Configuration.StandardBindingElement.ApplyConfiguration(Binding binding)
   at System.ServiceModel.Description.ConfigLoader.LookupBinding(String bindingSectionName, String configurationName, BindingCollectionElement bindingCollectionElement, Binding defaultBinding)
   at System.ServiceModel.Description.ConfigLoader.LookupBinding(String bindingSectionName, String configurationName, ContextInformation context)
   at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
   at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName, Configuration configuration)
   at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)
   at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
   at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
   at System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()
   at System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)
   at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
   at System.ServiceModel.ClientBase`1..ctor()
   at BulkDataServiceClient..ctor() in D:\Projects Source\Work\Hugeflow\NS2012\v1\NS.IOServiceProxy\BulkDataService.cs:line 42
   at Edas.IIS.Helpers.ProxyFactory.CreateBulkDataServiceClient() in D:\Projects Source\Work\Hugeflow\NS2012\v1\Edas.IIS\Helpers\ProxyFactory.cs:line 13
   at Edas.IIS.Modules.ServiceManager.TransmitBulkDatas(Int32 driverID, IEnumerable`1 channelDatas) in D:\Projects Source\Work\Hugeflow\NS2012\v1\Edas.IIS\Modules\ServiceManager.cs:line 271








[최초 등록일: ]
[최종 수정일: 3/23/2012]


비밀번호

댓글 작성자
 



2012-03-23 02시10분
^^ 답변이 없을만 하군요. 문제 재현이 되어야 어떻게 해볼텐데, 몇 시간이 흘러야 발생하는 문제라면 쉬운 문제는 아닌 것 같습니다. (아쉽게도, 위의 오류를 경험해 본적도 없습니다.)

일단, 지금 위의 콜스택을 보면 마이크로소프트 이외의 개발자 측면에서 할 수 있는 것은 없어보입니다. 따라서, 마이크로소프트 측에 기술 지원을 요청하는 것이 좋을 것 같습니다. (마이크로소프트 측 버그로 판명되면 무료로 처리됩니다.)

그 다음으로, 문제를 우회하는 것을 생각해 볼 수 있는데요. 위에서 보니까, System.Configuration 이 나오는 것을 보니 Proxy 가 app.config 에 있는 정보를 기반으로 생성되도록 만드신 것 같은데... 맞나요? 따라서, configuration 작업을 app.config 에 의존하지 말고 코드로 바꿔보는 것도 시도해 볼만할 것 같습니다.
정성태

1  2  3  4  5  6  7  [8]  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
5756흰털너부리11/25/20223465asp.net core web api에서 json 특정 property 무시하는 방법 문의 드립니다. System.Text.Json 사용중입니다. [1]
5755문정환11/24/20223799싱글스레드 프로그램도 컨텍스트 스위칭이 생길 수 있나요? [4]
5754초급11/24/20223645c# 소켓통신 [1]
5753흰털너부리11/24/20223445List와 ObservableCollection을 비교 해서 다른 값 추출 FirstOrDefault 객체 비교 [4]파일 다운로드1
5752푸헐11/15/20223587app.config 에 connectionStrings를 aspnet_regiis로 enctyption [4]
5751차가워11/8/20224383vs2022 preview net7 AOT 콘솔 실행 성능 [7]
5749차가워11/4/20223808전처리 지시문 #if DEBUG 배포시 실행 여부 [1]
5748김기헌11/3/20224155안녕하세요 선생님 싱글톤 패턴을 꼭 이렇게 사용해야 하나요? [6]
5747김기헌11/2/20223530안녕하세요 선생님 네트워크 관련 용어 중 IP 주소가 왜 논리적 주소라고 표현되는 건가요? [2]
5746물냉면이...11/2/20223724서로 다른 클래스에 있는 동일 함수의 일괄 호출 방법에 대해 궁금합니다. [3]
5745흰털너부리11/1/20224065.net core web api 사용 제한에 관한 질문 입니다. [2]
5744차가워10/31/20224462윈폼 Console.WriteLine(); 연산 문의 [1]
5743흰털너부리10/27/20223776reflection, static, override 질문입니다. [1]
5742차가워10/27/20223685하나의 socket에 여러 스레드가 접근 하는 경우 [1]
5741조호상10/27/20223914OpenCVSharp4 구현 가능 문의 [1]
5740혜성10/26/20224750Visual Studio 2022 C# 콘솔 프로그램 기본 코드 변경된 이유는 무엇인가요? [2]
5739슬픈단잠10/25/20223716조언 주신 방법으로 해봤으나, 여전히 어디가 문제인지 파악을 못했습니다. [2]
5738슬픈단잠10/24/20224110C# 마샬링 관련 질문입니다. [2]
5737감사합니...10/20/20224764찾은 어셈블리의 매니페스트 정의와 어셈블리 참조가 일치하지 않습니다. [8]파일 다운로드1
5736초보 개...10/19/20223767c# winforms 프로그램을 setup 파일로 배포 시, 설정 문의 [2]
5735농상10/17/20224428싱글톤 공부중 질문이 있습니다. [8]
5734mins10/14/20224160델파이 dll을 c#에서 사용하기 관련해서 포인트 관련이라 질문을 올립니다. [2]
5733김경환10/12/20224187선생님 질문하나만드리겠습니다. [1]
5732kss10/8/20224460c# socket.poll 버그인가요? [2]파일 다운로드1
5731kss10/8/20224030c# socket.poll 버그인가요? [3]
5730김재환10/7/20224568WPF에서 디스플레이 배율이 100%가 아닌 경우, Window의 포지션 정보가 부정확해지는 문제 [2]
1  2  3  4  5  6  7  [8]  9  10  11  12  13  14  15  ...