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

    Question

  • Hello

    I have a self hosted WCF service as 

     

    WSHttpBinding binding = new WSHttpBinding();
    binding.ReaderQuotas.MaxStringContentLength = int.MaxValue;
    binding.Name = "Binding1";
    binding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard;
    binding.Security.Mode = SecurityMode.Transport;
    binding.ReliableSession.Enabled = false;
    binding.TransactionFlow = false;
    
    

     

    and my client as 

    ServiceEndpoint endPoint = host.AddServiceEndpoint(typeof(IActionServiceContract), binding, "");
    WSHttpBinding binding = new WSHttpBinding();
    binding.Name = "Binding1";
    binding.ReaderQuotas.MaxStringContentLength = int.MaxValue;
    binding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard;
    binding.Security.Mode = SecurityMode.Transport;
    binding.ReliableSession.Enabled = false;
    binding.TransactionFlow = false;
    
    
    _wcfActionService = new ActionServiceWCFRef.ActionServiceContractClient(binding, address);
    
    

     

    The service is working and I can connect to it from many machines other than itself. 

    When I try it from itself it's getting

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

    Thanks in advance for any help

    Mohsen



    Thursday, May 05, 2011 3:18 AM

Answers

  • On 5/4/2011 11:18 PM, Mohsen Kokabi wrote:
     
    >
    > The service is working and I can connect to it from many machines other
    > than itself.
    >
    > When I try it from itself it's getting
    >
    > /The HTTP request is unauthorized with client authentication scheme
    > 'Negotiate'. The authentication header received from the server was
    > 'Negotiate'./
    >
    > Thanks in advance for any help
    >
     
     
    <copied>
     
    IWA is also known by several names like HTTP Negotiate authentication,
    NT Authentication, NTLM Authentication, Domain authentication, Windows
    Integrated Authentication, Windows NT Challenge/Response
    authentication,[1] or simply Windows Authentication.[2]
     
    <end copy>
     
     
    It has to do with the authentication of the client that wants to access
    the service.
     
    I know I had to go to Google and or Bing with the error message and find
    the resolution, which I don't remember.
     
    'The HTTP request is unauthorized with client authentication scheme
    'Negotiate'. The authentication header received from the server was
    'Negotiate'.'
     
    • Marked as answer by Yi-Lun Luo Wednesday, May 11, 2011 9:31 AM
    Thursday, May 05, 2011 9:15 AM