[英]WCF hosting in IIS 7 using ASP.NET error
I have hosted a WCF service reference in IIS 7 and my wsdl path is 我已经在IIS 7中托管了WCF服务参考,而我的wsdl路径是
http://localhost:82/CustomService.Service1.svc as it is running **on Port 82**
I published my asp.net website in a folder and copied that folder to IIS 7 on other port 81 I can browse default.aspx but how can I invoke my WCF service from this website my Web Config is as follows 我将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>
When I try to run the service from ASP.net I get an error there was no endpoint at 当我尝试从ASP.net运行服务时,出现错误,没有端点
http://localhost:82/CustomService.Service1
that could accept the message 可以接受消息的
http://localhost:82/CustomService.Service1
Please help 请帮忙
Your endpoint address seems incorrect. 您的端点地址似乎不正确。 Replace it with
替换为
http://localhost:82/CustomService.Service1.svc
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.