När jag måste skriva, så skriver jag.

4 dec. 2012

WCF Gotcha...

While implementing a new service-based application (using net.tcp binding, which is kind of new to me), I started to get a really annoying error as soon as I tried to do service-to-service calls on the same machine. The error in question was that the service didn't accept the client credentials.

It turns out this is actually a security feature. If your service is calling another service on the same machine, both client and server must use localhost in the service address.

So, now I know. However, please note that there are a bunch of false answers out there (turn off security, set credentials manually etc).

This blog entry was most helpful in resolving this issue.