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

클라이언트에서 서버로 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)
5932EK4/12/2024514다음 제네릭에서 널익셉션이 뜨는 이유를 알수있을까요? [1]
5931이대희4/2/2024853Windows 앱 SDK C# 템플릿의 용도가 무엇인지요? [1]
5930vict...2/22/20241730ef core, FromSqlRaw 맵핑 질문입니다. [4]
5929a2/17/20241807.Net 8 에서 디버거 변경 [1]
5928vict...2/5/20241961wpf에서 대량 데이터 보여주는 방법 추천 부탁드립니다. [1]
5926엄태영1/12/20241943잘못된 Task 사용으로 인한 데드락 관련 질문 입니다. [3]
5925Euni...12/22/20231879Visual Studio에서 nodejs 사용시 npm install -g @vue/cli 실행시 오류 [1]
5924Euni...12/21/20231949Visual Studio에서 nodejs 사용시 C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g 를 찾지 못하는 설치 오류 [2]
5923정두호12/4/20232405MSSQL 데이터 전송과 공유폴더의 데이터 전송 차이점 [1]
5922Heeg...10/27/20234617C++의 double pointer를 C#에서 구현하는 방법이 잘 안됩니다. [3]
5921한예지 donator10/3/20234414마샬링 정의 및 목적이 궁금합니다. [5]
5920한예지 donator10/3/20233235C#과 WIN32 API 관계 질문드립니다. [4]
5919이건우9/27/20232925WinForm의 로딩속도 관련 질문입니다 [2]
5917한예지 donator9/14/20233010동기화 도구 질문 있습니다. [4]
5916한예지 donator9/3/20233172Thread.Sleep(500), await Task.Delay(500), Task.Delay(500) 차이점이 궁금합니다. [2]
5915한예지 donator8/30/20233076비동기 코드를 for 문 안에 작성한 경우 제어 변수가 올바르게 동작하지 않는 이유가 궁금합니다. [3]
5914한상욱8/11/20232912.net wpf에서 skiasharp 의 skelement 를 canvas로 사용 하고 있습니다. [1]
5913김태우8/10/20232989지역변수로 이해하는 메서드매개변수 게시글 댓글 [3]
5912guest4/25/20235266[참고 - 초보용] Sqlite 디비는 double이 없고 Real이 대신합니다 [3]
5911guest4/24/20233505Form1.cs와 외부 class.cs와 통신 (static async method포함) [4]파일 다운로드1
5910guest4/24/20233355Async 메서드와 try~catch [1]
5909guest4/22/20233748Visual Studio 구매 시(1인 개발자) [4]
5908guest4/22/20233609텅빈 원그리기 [5]
5907민성4/21/20233239안녕하세요 서버 백업 문제에 대해서 [2]
5906guest4/21/20233369Dispatcher 서비스 구현 질문 [1]
[1]  2  3  4  5  6  7  8  9  10  11  12  13  14  15  ...