WCF从Windows服务错误 [英] Wcf From windows service error

查看:64
本文介绍了WCF从Windows服务错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个wcf服务,该服务被多个应用程序使用.我尝试在Windows服务应用程序中使用wcf服务,但它不起作用.它说类型名称"ServiceReference1"在类型xxx.xxx中不存在."我刚刚为此wcf服务添加了一个服务引用并构建了Windows服务项目.然后它给出了错误.任何人都可以帮忙我在这个问题上吗?

提前谢谢.





Demian

I have a wcf service which is consumed by multiple applications. I try to consume the wcf service in a windows service application, it does not works. It says that "The type name ''ServiceReference1'' does not exist in the type xxx.xxx''. I just added a service reference to this wcf service and build the windows service project. Then it gives the error. Can anyone help me in this issue?

Thanks in advance.





Demian

推荐答案

您可以检查ServiceReference1是否确实存在于上述命名空间中?为其发布一些代码可能有助于回答.
Can you check if the ServiceReference1 really exists in the mentioned namespace? Post some code for it may help answering.


这篇关于WCF从Windows服务错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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