0

We are running the same program based in the core service. When changing the endpoint, we've got an error in our production environment:

Error to read Components: The HTTP request is unauthorized with client authentication scheme 'Negotitate'. The authentication header received from the serves was Negotiate,NTML

We are using the basicHttp binding and initializing the credentials in the code:

Tridion.ContentManager.CoreService.Client.CoreServiceClient cs = new Tridion.ContentManager.CoreService.Client.CoreServiceClient("basicHttp_2013");
cs.ClientCredentials.UserName.UserName = "username"; 
cs.ClientCredentials.UserName.Password = "password"; 

The conf is:

<endpoint name="basicHttp_2013" address="http://our_ip/webservices/CoreService2013.svc/basicHttp" binding="basicHttpBinding" bindingConfiguration="basicHttp" contract="Tridion.ContentManager.CoreService.Client.ICoreService" />

  • as you mentioned "When changing the endpoint", Which endpoint you were using before? – Saurabh Gangwar Jul 29 '15 at 16:32
  • 1
    you can try cs.ClientCredentials.Windows.ClientCredential = new NetworkCredential("user", "pass"); – Saurabh Gangwar Jul 29 '15 at 18:35
  • The change in the endpoint between both environments was IP, code is the same – tfinez Jul 30 '15 at 10:19
2

You can try following step, the first one recently resolve my similar issue.

  • Disable/update Loopback in registry: https://support.microsoft.com/en-us/kb/896861

  • NetworkCredential creds = new NetworkCredential(userName, password, domain); CoreServiceClient.ClientCredentials.Windows.ClientCredential = creds;

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.