WCF服务显示的是服务器名称而不是IP地址...

 

打开http://xx.xx.xx.xx:端口号/Service1.svc页面显示的服务地址为:
http://xx_yy_server:端口号/Service1.svc?wsdl

是显示的服务器的名称而不是IP地址...

 

原文地址:http://blog.csdn.net/cjq1234/article/details/8816921

<!--加上这个配置就可以了-->    
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />

 

posted @ 2016-08-17 14:32  zh89233  阅读(832)  评论(0编辑  收藏  举报