MS Robotics Studio:“合约与命名空间不同”
我正在尝试使用 MS Robotics Studio 和 VS 2008 构建 DSS 服务,但是当我构建时,我从 dssproxy.exe 收到一条错误消息:
The class MyServiceName has a ContractAttribute but the contract is different from that of the namespace.
并且构建失败,因为 dssproxy 返回代码 10。有谁知道此消息的含义吗?
Contract 标识符在 Types 类文件中声明,并在属性声明中使用,就像“添加新项目”>“添加新项目”一样。 Dss 服务向导构建它们。 我的理解是标识符只是一个唯一的字符串。 这是试图告诉我它必须以某种方式匹配我的命名空间吗?
如果我再次构建,错误就会消失,但如果我在构建之前强制重建或清理,它就会回来。
谢谢, 安迪
I'm trying to build a DSS service using MS Robotics Studio and VS 2008, but when I build, I get an error from dssproxy.exe saying:
The class MyServiceName has a ContractAttribute but the contract is different from that of the namespace.
and the build fails because dssproxy returns code 10. Does anyone know what this message means?
The Contract identifier is declared in the Types class file and used in the attribute declaration just the way the Add New Project > Dss Service wizard builds them. My understanding is that the identifier is just a unique string. Is this trying to tell me it must match my namespace somehow?
If I build again, the error goes away, but if I force a rebuild or clean before building, it comes back.
Thanks,
Andy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己弄清楚了:如果合同标识符包含大写字母,即使它与清单完全匹配,也会发生此错误。 类型和清单中的标识符都必须全部小写。 不幸的是,“添加新项目”对话框不会阻止您为此输入混合大小写。 :(
I figured it out myself: If the contract identifier contains capital letters, this error will occur, even in it matches the manifest exactly. Both the identifier in the types and the manifest must be all lowercase. Unfortunately, the Add New Project dialog doesn't prevent you from entering mixed-case for this. :(