Fixed the issue: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM'
Solution:
Make this change to your binding in web.config file
<binding name="BasicHttpBinding_ISPWebUsage2">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
Also make sure you have the same binding in endpoint
<client>
<endpoint address="http://abcdefgh/_vti_bin/service1/service.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISPWebUsage2" contract="ServiceReference1.ISPWebUsage" name="BasicHttpBinding_ISPWebUsage2" />
</client>
this should fix it
Comments
Post a Comment