Microsoft MVP성태의 닷넷 이야기
오류 유형: 85. WCF 연결 오류: MessageSecurityException [링크 복사], [링크+제목 복사],
조회: 25524
글쓴 사람
정성태 (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

비밀번호

댓글 작성자
 




... 166  [167]  168  169  170  171  172  173  174  175  176  177  178  179  180  ...
NoWriterDateCnt.TitleFile(s)
855정성태4/24/201025146.NET Framework: 176. DataContext가 thread-safe한 것인가?
854정성태4/22/201022005오류 유형: 94. 팀 프로젝트 생성 오류 - TF218017, TF250044
853정성태4/22/201022634오류 유형: 93. TFS 2010 오류: rsProcessingAborted, rsErrorExecutingCommand
852정성태4/21/201023832Team Foundation Server: 33. 단일 서버에 Team Foundation Server 2010 설치하는 방법
851정성태4/14/201034281오류 유형: 92. Task Scheduler 오류: 2147942667 (0x8007010B)
850정성태4/7/201022902.NET Framework: 175. WCF - webHttpBinding + PUT 메서드 구현파일 다운로드1
848정성태3/30/201036495개발 환경 구성: 73. 한 대의 PC에서 여러 개의 키입력 매크로 프로그램이 가능할까? [5]파일 다운로드5
846정성태3/29/201034474VC++: 39. C++에서 싱글톤 구현하기 [8]파일 다운로드1
844정성태3/19/201021889개발 환경 구성: 72. Adobe Creative Suite 3 Master Collection - 하드 디스크로부터 설치하는 방법
843정성태3/19/201030896Windows: 50. Windows Server 2008 R2 시스템에 Windows 7 멀티 부팅하는 방법
842정성태3/17/201026519Windows: 49. VHD 파일 지원
841정성태3/16/201027141.NET Framework: 174. 작업자 프로세스(w3wp.exe)가 재시작되는 시점을 알 수 있는 방법 [1]
840정성태3/4/201020544개발 환경 구성: 71. w3wp.exe에 환경 변수 전달하는 방법 [1]
836정성태2/13/201023969VS.NET IDE: 67. Visual Studio 2010: 베타 2에서 RC 마이그레이션
835정성태1/26/201025220.NET Framework: 173. WCF - webHttpBinding + IIS 6.0 윈도우 인증 구현 예제 [3]파일 다운로드1
834정성태1/25/201025686.NET Framework: 172. WCF - webHttpBinding 윈도우 인증 구현 예제 [3]파일 다운로드1
833정성태1/25/201025056.NET Framework: 171. WCF - webHttpBinding 구현 예제 [1]파일 다운로드1
832정성태1/25/201028893.NET Framework: 170. PerformanceCounter의 RawValue/NextValue()에서 멈춤 현상
831정성태1/14/201018700개발 환경 구성: 70. WSS - check out 메뉴에서 오류나는 문제
830정성태1/10/201023158개발 환경 구성: 69. Windows Internal Database
829정성태1/7/201022613개발 환경 구성: 68. ODP.NET + OraMTS 사용
828정성태1/7/201030594개발 환경 구성: 67. 환경 변수를 이용한 다중 ODAC 버전 테스트
827정성태1/4/201022732개발 환경 구성: 66. .NET 응용 프로그램에서 64비트 Oracle Data Access Components 사용 (2)
826정성태1/3/201030182기타: 28. 2009년 인기 순위 정리
825정성태1/3/201046989개발 환경 구성: 65. .NET 응용 프로그램에서 64비트 Oracle Data Access Components 사용 [5]
823정성태1/1/201024264개발 환경 구성: 64. ODP.NET 설치 작업 없이 ASP.NET 응용 프로그램 배포파일 다운로드1
... 166  [167]  168  169  170  171  172  173  174  175  176  177  178  179  180  ...