IIS 7中的WCF托管使用ASP.NET错误
本文关键字:ASP NET 错误 中的 WCF IIS | 更新日期: 2023-09-27 18:21:40
我在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