开发者

WCF and IIS confusion on the wsdl location

开发者 https://www.devze.com 2023-01-20 12:02 出处:网络
I created my WCF project and it works fine when I just run it from the deb开发者_Python百科ugger.

I created my WCF project and it works fine when I just run it from the deb开发者_Python百科ugger.

But when I publish it to IIS and point a browser to the svc the path used has localhost in it. Like this:

htpp://localhost/MyService/MyServices.svc

but the path that the webpage says to go to for the WSDL uses my computer name, like this:

http://MyComputerName.MyDomain.net/MyService/MyService.svc?wsdl

When I click on the link it times out. (Also, trying to view the services like that in WCFTestClient times out.)

However, if I go the wsdl using localhost then it works right away:

http://lcoalhost/MyService/MyService.svc?wsdl

Any link that uses my computer name times out ("takes too long to respond").

Any idea on how to make my WCF service work with the computer name?

(NOTE: I am using Visual Studio Ultimate and IIS 7)


Try adding MyComputerName.MyDomain.net to your proxy bypass list in Internet Explorer proxy configuration setting. Check that the IIS website has this FQDN in it's hostname in the site bindings.

Also what happens if you only use MyComputerName without the domain ?

0

精彩评论

暂无评论...
验证码 换一张
取 消