[英]WCF hosting in IIS 7 using ASP.NET error
我已经在IIS 7中托管了WCF服务参考,而我的wsdl路径是
http://localhost:82/CustomService.Service1.svc as it is running **on Port 82**
我将asp.net网站发布在一个文件夹中,并将该文件夹复制到其他端口81上的IIS 7中。我可以浏览default.aspx,但是如何从该网站调用WCF服务,我的Web配置如下
<client>
<endpoint address="http://localhost:82/CustomService.Service1/"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IService1"
contract="MyServiceReference.IService1" name="WSHttpBinding_IService1">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
</client>
当我尝试从ASP.net运行服务时,出现错误,没有端点
可以接受消息的http://localhost:82/CustomService.Service1
请帮忙
您的端点地址似乎不正确。 替换为
http://localhost:82/CustomService.Service1.svc
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.