none
The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'. PSI RRS feed

  • Question

  • Hello,

    I am trying to access project server services (projectServer.svc) from my console application.

    But I am getting one error related to authentication.

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

    Here is my config.file,

      <system.serviceModel>
        <behaviors>
          <endpointBehaviors>
            <behavior name="basicHttpBehavior">
              <clientCredentials>
                <windows allowedImpersonationLevel="Impersonation"/>
              </clientCredentials>
            </behavior>
          </endpointBehaviors>
        </behaviors>
        <bindings>     
          <basicHttpBinding>
            <binding name="basicHttpConf" sendTimeout="01:00:00" maxBufferSize="500000000"
              maxReceivedMessageSize="500000000">
              <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="500000000" />
              <security mode="TransportCredentialOnly">
                <!--Transport Windows-->
                <transport clientCredentialType="Ntlm" proxyCredentialType="None" realm="http://SecurityDomain" />
              </security>
            </binding>
          </basicHttpBinding>   
        </bindings>
        <client>
         
          <endpoint address="http://pimdevas1th/pwa/_vti_bin/PSI/ProjectServer.svc"
            behaviorConfiguration="basicHttpBehavior" binding="basicHttpBinding"
            bindingConfiguration="basicHttpConf" contract="SvcResource.Resource"
            name="basicHttp_Resource">
            <!--<identity>
              <servicePrincipalName value="" />
            </identity>-->
          </endpoint>

    Any help would be much appreciated!

    Thanks,
    Jeneesh.


    Sunday, November 23, 2014 10:12 AM

Answers

  • Hi jeneesh k. velayudhan,

    >>The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'

    Base on the above error information, it seems that client is passing Ntlm and server is expecting NTLM. But the real reason for this is that NTLM identity is not passed across virtual folders / remote processes when NTLM authentication is used, thus it fails.

    For more information about how to solve this problem, please try to refer to the following blog:
    http://blogs.msdn.com/b/ashishme/archive/2006/11/10/ntlm-vs-kerberos-windows-communication-foundation.aspx .

    Besides, please also try to enable the WCF Trace to see if it can help to find the root cause.

    #How to enable the WCF Trace:
    http://msdn.microsoft.com/en-us/library/ms733025(v=vs.110).aspx .

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 24, 2014 2:35 AM
    Moderator