Hi there,
I have a console app client that talks to a WCF service hosted by a console app on a different server. It use windows authentication with security mode = message
It works just fine until I change the service to impersonate the clients credentials. The changes I do to accomplish that is:
1. Add serviceAuthorization impersonateCallerForAllOperations="true" /> to the service behaviour
2. Add [OperationBehavior(Impersonation = ImpersonationOption.Required)] to my method signature
I then host my service and it runs as normal, all good.
In my client the only thing I do is add:
ChannelFactory channel = new ChannelFactory(binding, endPoint);
channel.Credentials.Windows.AllowedImpersonationLevel = TokenImpersonationLevel.Impersonation;
I then run my client and get the error: "The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error."
Is there something else i'm missing that i need to do to the client config?