I have a Asp.net web service running on www.domain.com/Service.svc that I
connect to using jQuery from my asp.net website. Everything works
perfect if the user access my website with www.domain.com. But if the
user uses only domain.com (without www) I get error:
There was no channel actively listening at 'http://domain.com/Service.svc/get?date=2010-10-09'.
This is often caused by an incorrect address URI. Ensure that the address to which
the message is sent matches an address on which a service is listening.
In my web.config I use the serviceHostingEnvironment tag to get the service running on my webhost (it doesn't work otherwise). Maybe this is what causes the error? How can I make it possible for my users to access my webservice also when using only domain.com?
Here is my system.serviceModel in web.config (I had some problems setting up the web service so that's why my web.config might be a bit messy:
View Complete Post