내 컴퓨터에서 개인 큐를 만들고 프로젝트를 실행 한 NetMsmq 바인딩을 사용하여 WCF 서비스를 만들었습니다. 이것은 잘 작동하며 WCF 서비스가 시작되고 디버깅 환경의 대기열을 사용하여 메시지에 액세스합니다. 이제는 Windows 서비스를 사용하여 서비스를 호스트하고 싶었고 새 프로젝트와 Windows 설치 프로그램도 만들었습니다.이 서비스는 로컬 시스템 계정에서 실행됩니다. 그런 다음 명령 프롬프트를 통해 InstallUtil 명령을 사용하여이 Windows 서비스를 설치하려고했습니다.Msmq 및 WCF 서비스
이There was an error opening the queue. Ensure that MSMQ is installed and running, the queue exists and has proper authorization to be read from. The inner exception may contain additional information.
Inner Exception System.ServiceModel.MsmqException: An error occurred while opening the queue:Access is denied. (-1072824283, 0xc00e0025). The message cannot be sent or received from the queue. Ensure that MSMQ is installed and running. Also ensure that the queue is available to open with the required access mode and authorization.
at System.ServiceModel.Channels.MsmqQueue.OpenQueue()
at System.ServiceModel.Channels.MsmqQueue.GetHandle()
at System.ServiceModel.Channels.MsmqQueue.SupportsAccessMode(String formatName, Int32 accessType, MsmqException& msmqException)
사람이 위의 문제에 대한 해결 방안을 제시 할 수 : 설치가 일어나고 서비스 호스트 개방 동안 때, 나는 예외 말을 얻을? 큐에 대한 권한과 Windows 서비스에 대한 권한이 누락 되었습니까? 그렇다면이 권한을 어디에 추가해야하는지 제안 할 수 있습니까?
답장 Daniel에 대한 고맙습니다. 로컬 시스템 계정이라고하는 목록에있는 컴퓨터 계정에 대한 모든 관련 권한을 부여하려고 시도했습니다. 하지만 아직 같은 오류가 발생합니다. 생성 된 비공개 대기열에는 소유자로서 내 도메인 로그인이 있습니다. 나는 모든 권한을 설정할 필요가있다. 다른 가능한 권한이 누락 된 경우 제안 할 수 있습니까? – Sowmya
Sowmya, 작동 시키셨습니까? 그렇지 않으면이 링크를 확인하십시오. http://beyondrelational.com/blogs/ibhadelia/archive/2011/06/21/an-error-occurred-while-opening-the-queue-access-is-denied-msmq-exception. aspx – IBhadelia