windows-services – Msmq和WCF服务
发布时间:2020-12-14 04:12:04 所属栏目:Windows 来源:网络整理
导读:我使用NetMsmq绑定创建了一个WCF服务,我在我的机器上创建了一个私有队列并执行了该项目.这样工作正常,我的WCF服务启动并使用调试环境中的队列访问消息.现在,我想使用 Windows服务托管服务,同样我也创建了一个新项目和Windows安装程序(此服务在本地系统帐户下
我使用NetMsmq绑定创建了一个WCF服务,我在我的机器上创建了一个私有队列并执行了该项目.这样工作正常,我的WCF服务启动并使用调试环境中的队列访问消息.现在,我想使用
Windows服务托管服务,同样我也创建了一个新项目和Windows安装程序(此服务在本地系统帐户下运行).然后我尝试通过命令提示符使用InstallUtil命令安装此Windows服务.当安装正在进行并且在服务主机打开期间,我得到一个例外说:
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服务设置的任何权限,如果是这样,你能否建议在哪里添加这些权限?
汤姆·霍兰德(Tom Hollander)有一个关于使用WCF的MSMQ的三部分博客系列 – 非常值得一试!
> MSMQ,WCF and IIS: Getting them to play nice (Part 1) 也许你会找到解决你问题的解决方案! (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- Windows Server 2008 局域网内Web访问 服务器搭建
- .NET不使用DLL
- windows-server-2003 – 我如何测试某个特定端口
- Win10 for Docker 安装 K8S
- windows – 如何编写.bat或.cmd文件以从PATH中删
- windows-server-2008 – Win Server 2008 Standa
- windows-phone-7 – ApplicationBar背后的背景图
- 在Windows7上安装OpenVPN
- remote-desktop – 无法远程连接我的Windows 8.1
- windows-8.1 – 在Windows 8.1和Windows 10上使用
热点阅读