After creating a service host, I am not able to open page “http://myuri:8000/ServiceModelSamples/Service” when I use internet explorer.
Uri baseAddress = new Uri("http://myuri:8000/ServiceModelSamples/Service");
// Step 2 of the hosting procedure: Create ServiceHost
ServiceHost selfHost = new ServiceHost(typeof(CalculatorService), baseAddress);
// rest of the below code is from calculator MSDN sample
It only works if I use localhost instead of “myuri”. Can someone please tell what else is required?
EDIT: myri is actually my PC name. I tried using IP adress for my PC also. Internet explorer is able to open up the URL from my box, but it fails when I open the URL from other box (eg., the URL I am trying to open is http://111.251.164.20:8000/ServiceModelSamples/Service )
Eh…
myuriis just an example, a placeholder. Not something you should use literally.