Skip to content
This repository

NTLM Error #15

Open
robdizon opened this Issue · 0 comments

1 participant

robdizon
robdizon

2012-03-28 11:16:47.4623 Error System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'Negotiate,NTLM'.
2012-03-28 11:16:47.4711 Error

Server stack trace:

And I tried almost everything:

Solution 1:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config -> Apply the below settings to all machine.config

<!--<processModel autoConfig="true"/>-->
<processModel userName="XXXXXXX" password="XXXXXX" />

Solution 2:

Since WindowsCredentials.AllowNtlm is deprecated, We need to set this using the following local policy.
Go to "Start | Settings | Control Panel | Administrative Tools | Local Security Settings".
Go to Local Policies | Security Options
Select Network Security : Lan Manager Authentication Level
Select the 2nd value in the "Drop Down" Send LM & NTLM.........

gpupdate /force

Solution 3:

Applied the setting in web.config

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

Also this...

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

Any help is greatly appreciated...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.