Microsoft MVP성태의 닷넷 이야기
오류 유형: 85. WCF 연결 오류: MessageSecurityException [링크 복사], [링크+제목 복사],
조회: 25603
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)
WCF 연결 오류: MessageSecurityException


얼마 전에 소개해 드렸던 .NET ServiceBus... 혹시 설정해 보셨나요? ^^

.NET Service Bus 응용 사례: SocketShifter
; https://www.sysnet.pe.kr/2/0/752

속도가 좀 느리긴 해도 서로 Private IP를 가진 상태에서 연결을 할 수 있는 기반을 제공하는 것이 여간 매력적이지 않습니다.

테스트하는 과정에서 재미있는 시행착오를 하나 겪은 것이 있어 공유하고자 합니다.

우선, 위의 글에서 소개한 응용 프로그램을 실행하려고 하는데 "일부 컴퓨터"에서 다음과 같은 식으로 오류가 발생하였습니다.

C:\temp\test\Debug>SocketShifterServer.exe
ServiceHost serviceHost

Unhandled Exception: System.ServiceModel.Security.MessageSecurityException: 
An unsecured or incorrectly secured fault was received from the other party. 
See the inner FaultException for the fault code and detail. ---> System.ServiceModel.FaultException: An error occurred when verifying security for the message.
   --- End of inner exception stack trace ---

Server stack trace:
   at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState
, TimeSpan timeout)
...중간 생략...
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open()
   at Server.Program.Main(String[] args) in C:\temp\socketshifter-27275\SocketShifterServer\Program.cs:line 82

C:\temp\test\Debug>

검색이 쉽지가 않더군요. ^^ 그러다 아래와 같은 글에서 문제의 답을 찾을 수 있었습니다.

Error when trying to connect to service bus
; http://social.msdn.microsoft.com/Forums/en-US/netservices/thread/1d34bf34-b0a6-4144-928b-68b0116b28e3


"
Another problem might be the time/date settings of your computer. I tried to change the time on my local machine by 10 minutes and got the same exception as you discribed. Can you help to verify if your local time settings is close to standard time and try again? Thanks!
"



그렇습니다. ^^; 그 컴퓨터의 시간을 살펴보니 "시간"은 정확하나 "시간대"가 미국으로 잡혀 있어서 전혀 엉뚱한 시간이 되어버렸고, 이것이 보안 통신의 시간 차이 제한값을 넘어가버려서 오류가 발생한 것입니다. 결국 보안 통신이니까, 비단 .NET Service Bus에서만 발생하는 사례는 아닙니다.




[이 토픽에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 4/11/2022]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 151  152  153  154  155  156  [157]  158  159  160  161  162  163  164  165  ...
NoWriterDateCnt.TitleFile(s)
1121정성태9/12/201127579Java: 5. WTP 내에서 서블릿을 실행하는 환경
1120정성태9/11/201127486.NET Framework: 239. IHttpHandler.IsReusable 속성 이야기파일 다운로드1
1119정성태9/11/201126618Java: 4. 이클립스에 WTP SDK가 설치되지 않는다면? [2]
1118정성태9/11/201138265Java: 3. 이클립스에서 서블릿 디버깅하는 방법 [4]
1117정성태9/9/201125559제니퍼 .NET: 17. 제니퍼 닷넷 적용 사례 (2) - 웹 애플리케이션 hang의 원인을 알려주다.
1116정성태9/8/201156640Java: 2. 자바에서 "Microsoft SQL Server JDBC Driver" 사용하는 방법
1115정성태9/4/201130117Java: 1. 닷넷 개발자가 처음 실습해 본 서블릿
1114정성태9/4/201134644Math: 2. "Zhang Suen 알고리즘(세선화, Thinning/Skeletonization)"의 C# 버전 [4]파일 다운로드1
1113정성태9/2/201134206개발 환경 구성: 129. Hyper-V에 CentOS 설치하기
1112정성태9/2/201150941Linux: 1. 리눅스 <-> 윈도우 원격 접속 프로그램 사용 [3]
1111정성태8/29/201125414제니퍼 .NET: 16. 적용 사례 (1) - DB Connection Pooling을 사용하지 않았을 때의 성능 저하를 알려주다. [1]
1110정성태8/26/201126741오류 유형: 136. RDP 접속이 불연속적으로 끊기는 문제
1109정성태8/26/201129615오류 유형: 135. 어느 순간 Active Directory 접속이 안되는 문제
1108정성태8/22/201131171오류 유형: 134. OLE/COM Object Viewer - DllRegisterServer in IVIEWERS.DLL failed. [1]
1107정성태8/21/201128911디버깅 기술: 43. Windows Form의 Load 이벤트에서 발생하는 예외가 Visual Studio에서 잡히지 않는 문제
1106정성태8/20/201127244웹: 26. FailedRequestTracing 설정으로 인한 iisexpress.exe 비정상 종료 문제
1105정성태8/19/201127167.NET Framework: 238. Web Site Model 프로젝트에서 Trace.WriteLine 출력이 dbgview.exe에서 확인이 안 되는 문제파일 다운로드1
1104정성태8/19/201127311웹: 25. WebDev보다 IIS Express가 더 나은 점 - 다중 가상 디렉터리 매핑 [1]
1103정성태8/19/201133198오류 유형: 133. WCF 포트 바인딩 실패 오류 - TCP error(10013) [1]
1102정성태8/19/201130963Math: 1. 방탈출3 - Room 10의 '중복가능한 조합' 문제를 위한 C# 프로그래밍 [2]파일 다운로드1
1101정성태8/19/201129640.NET Framework: 237. WCF AJAX 서비스와 JavaScript 간의 DateTime 연동 [1]파일 다운로드1
1100정성태8/17/201128760.NET Framework: 236. SqlDbType - DateTime, DateTime2, DateTimeOffset의 차이점파일 다운로드1
1099정성태8/15/201128163오류 유형: 132. 어느 순간 갑자기 접속이 안 되는 TFS 서버
1098정성태8/15/201150170웹: 24. 네이버는 어떻게 로그인 처리를 할까요? [2]
1097정성태8/15/201121486.NET Framework: 235. 메서드의 메타 데이터 토큰 값으로 클래스를 찾아내는 방법
1096정성태8/15/201125645디버깅 기술: 42. Watson Bucket 정보를 이용한 CLR 응용 프로그램 예외 분석 - (2)
... 151  152  153  154  155  156  [157]  158  159  160  161  162  163  164  165  ...