I have a WCF service that is being consumed by two clients:
- A Silverlight client; this works fine with IWA.
- A desktop application
I want to use IWA in the desktop application, but is that possible? I’m getting an HTTP error message saying I’m passing in Anonymous, when it wants Negotiate or NTLM. Sounds pretty obvious, but how can I fix this?
You can do this. It does turn out that you need to essentially mix the web.config and client config files into the app.config file of your desktop application.
So you’d need to add the web.config lines:
and
(obviously put within the
<system.serviceModel>tag.And then use that binding with the client endpoint that you’d normally put in in a client config file.