如何在seprate项目中添加自托管wcf服务的服务引用 [英] how to add the service reference of the self hosted wcf service in seprate project

查看:80
本文介绍了如何在seprate项目中添加自托管wcf服务的服务引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经提供服务,我可以在同一个解决方案中添加其服务参考但是当我尝试在seprate项目中添加引用时不在同一个解决方案中...它显示错误

给出下面







i have made a service and i can add its service reference within the same solution but when i try to add the reference in the seprate project not within the same solution...it shows the error
given below



There was an error downloading 'http://user-pc:8732/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it [2001:0:9d38:6abd:3cde:17a4:3f57:febc]:8732
Metadata contains a reference that cannot be resolved: 'http://user-pc:8732/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex'.
There was no endpoint listening at http://user-pc:8732/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex that could accept the message. This is often caused by an incorrect address

推荐答案

在添加任何服务引用之前,您必须确保该服务是如果您自己托管该服务,则运行。所以我建议运行该服务,然后添加服务引用。如果您仍然遇到问题,请告诉我。



谢谢,

Shashi
Before you add any service reference you have to make sure that service is running if you have self hosted that service. So I'll suggest run the service and then add service reference. Let me know if you still face issues.

Thanks,
Shashi


这篇关于如何在seprate项目中添加自托管wcf服务的服务引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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