Thursday, August 06, 2009 3:29 PM Mikael Sand

Seriously unintuitive error message from WCF

One of the many things I like about WCF is that it’s error messages are usually correct and even helpful, giving you pointers, most of the time. Therefore I have come to a point of not really questioning them. With that in mind I got this error message yesterday when doing a lab from my WCF book: The HTTP request is unauthorized with client authentication scheme 'Digest'. The authentication header received from the server was 'Digest qop="auth", realm="MapPoint”.

I was configuring a client to connect to the Bing Maps web services. Note that since this is a Microsoft Lab, everything was in plain text and I verified all the settings concerning security time after time.

<security mode="TransportCredentialOnly">
   <transport clientCredentialType="Digest" proxyCredentialType="None" realm="" />
   <message clientCredentialType="UserName" algorithmSuite="Default" />
</security>

So what do you think the problem was? Well turns out that I had the wrong username for the service. Not exactly clear as day is it? You get the same error if you use the wrong password as well. That was two hours I will never get back!

In other news: I got of Twitter that Windows7 RTM will be to MSDN at 7pm (19:00) CET today. Time to test that new 10 mBit internet wire subscription I have got at home. Maybe I can finally bid farewell to Vista…

Filed under: , ,

Comments

No Comments