Hi,
I am trying to connect something to a navision installation (Works on other nav installations.) and i get this error:
The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate oXYwdKADCgEBom0Ea2BpBgkqhkiG9xIBAgIDAH5aMFigAwIBBaEDAgEepBEYDzIwMTYwMTExMTMzMjUwWqUFAgMNnm6mAwIBKakQGw5WQUxIQUxMQS5MT0NBTKobMBmgAwIBAaESMBAbDldlYlN1cGVyT2ZmaWNl'.
I really don't have a clue about what this is.
This is one of the calls I make to nav:
Dim contactClient As New Contact_PortClient(GetNavBinding(), New EndpointAddress(GetServiceUrl("Contact")))
contactClient.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Delegation
contactClient.ClientCredentials.Windows.ClientCredential = New System.Net.NetworkCredential(username,password, domain)
contactClient.ClientCredentials.Windows.AllowNtlm = True
Dim contacts = contactClient.ReadMultiple(Nothing, Nothing, 2)
--GetNavbinding
Dim navWSBinding As New System.ServiceModel.BasicHttpBinding()
navWSBinding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly
navWSBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows
navWSBinding.MaxBufferSize = 2147483647
navWSBinding.MaxReceivedMessageSize = 2147483647
navWSBinding.MaxBufferPoolSize = 524288
Return navWSBinding
The url i try to connect to is a working url, but i get the error:
The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate oXYwdKADCgEBom0Ea2BpBgkqhkiG9xIBAgIDAH5aMFigAwIBBaEDAgEepBEYDzIwMTYwMTExMTMzMjUwWqUFAgMNnm6mAwIBKakQGw5WQUxIQUxMQS5MT0NBTKobMBmgAwIBAaESMBAbDldlYlN1cGVyT2ZmaWNl'.
Have anyone seen this before ?
*This post is locked for comments