必须使用动词 SET 的 APP 对象的确切标识符 [英] Must use exact identifier for APP object with verb SET

查看:44
本文介绍了必须使用动词 SET 的 APP 对象的确切标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注 这篇关于允许 WCF 从 MSMQ 读取数据的文章,但此命令出现错误

I'm following this article on allowing WCF to read data from MSMQ but am getting an error with this command

appcmd set app "MSMQ/MsmqService" /enabledProtocols:net.msmq

MSMQ 是我的 IIS 托管网站的名称,而 MsmqService 是 .svc 文件的名称.

MSMQ is the name of my IIS hosted website and MsmqService is the name of the .svc file.

我得到的错误是

ERROR ( message:Must use exact identifer for APP object with verb SET. )

这是我的网站在 IIS 中的样子

Here is what my site looks like in IIS

推荐答案

@Sachin,您尝试通过运行此命令执行的操作是在虚拟目录的已启用协议中设置 net.msmq.在此特定命令中,MsmqService 是您网站 MSMQ 下的 vDir 的名称.如果创建名为 MsmqService 的 vDir 并执行此命令,则该命令将成功(不是 svc 文件名).并且 svc 文件应该具有 .svc 扩展名,以便 IIS 能够在请求到达时调用适当的处理程序.

@Sachin, All you are trying to perform by running this command is to set net.msmq in the enabled protocols of the virtual directory. In this specific command the MsmqService is the name of the vDir under your web site MSMQ. If you create a vDir with name MsmqService and execute this command the command will succeed (not the svc file name). And svc files should have the .svc extension for IIS to be able to invoke the appropriate handlers when a request arrives.

或者,您可以按照以下说明在 IIS UI 中执行相同的操作:

Alternatively you can do the same thing in IIS UI following these instructions:

  1. inetmgr 来自运行提示
  2. 转到网站 MSMQ
  3. 导航到 vDir MsmqService.右键单击 -> 管理应用程序 -> 高级设置..."
  4. 请注意名为启用的协议"的设置.在那里输入 net.msmq.点击确定.

这篇关于必须使用动词 SET 的 APP 对象的确切标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆