Url to access the Service is different from the one used to Generate Proxy(IIS7

Posted by Vuyiswamb under WCF on 7/7/2011 | Points: 10 | Views : 1200 | Status : [Member] [MVP] [Administrator] | Replies : 1
Good Day All

i have a IIS server. This IIS Server is publicly available , so i have hosted some WCF services in that server , i can access the URL from outside my network, but i can use it. the url that i access it with is

[url]http://196.XX.XXX.XXX:8095/datalayer/[/url]


but now looking at the link to generate the metadata is different, it does not use an IP

svcutil.exe [url]http://Mywebserver.mynetwoorkdomain.local:8095/DataLayer/eCashDatalayer.svc?wsdl[/url]

so this makes it not accessible via the wcftestclient or even if i try to make add a reference in my applications in VS

What settings in the IIS do i need to change ?

Thanks

Thank you for posting at Dotnetfunda
[Administrator]



Responses

Posted by: Blessyjees on: 9/26/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

For working this add your domain in the hosts file of the system. Usually this file held at C:\Windows\System32\drivers\etc\hosts

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Vuyiswamb, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response