The HTTP request is unauthorized with client authentication scheme 'Anonymous'. Negotiate,NTLM'.

2120
Views
1
Answers

When I try to call a webservice method I get this error

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.

How do I fix it?

edit | flag
William Patrick
Asked on: Dec 01, 2011 at 3:31AM

1 Answers

76
4
76

Try these steps..
1. remove this section from Web.config

identity>
dns value
="localhost"/>

identity
>

2.Add this in web.config

security mode="TransportWithMessageCredential">
           transport clientCredentialType
="Windows" />
          message clientCredentialType
="UserName" />
         
/security>
edit | flag
Gokul A
Answered on: Dec 01, 2011 at 8:55PM

Post your Answer

Search

Welcome to Ask Amoeba!
This is 100% free and interactive site for sharing professional Questions and Answers, Opensource projects, Interview questions.
Learners, beginners, Experts stop and share your knowledge and ideas!

Browse Categories

Browse Tags