WCF is using the computer name instead of the IP address and cannot be resolved

前端 未结 5 1099
醉酒成梦
醉酒成梦 2020-12-05 21:13

I have a WCF service that works fine on the LAN but when trying to access it from outside the service reference fails.

My WCF service is hosted on a win2k3 box that

5条回答
  •  渐次进展
    2020-12-05 21:39

    This is what worked for me. In config file

    < serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
    < / system.serviceModel >
    

    If it is set to false, I was getting that crazy computername substitution.

    multipleSiteBindingsEnabled="true" seems to be all that I have to do for this to work as it should.

提交回复
热议问题