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
We also have this issue, what was the solution?
Thanks for verifying.
Yes, it works now.
In our case it was something wrong server side, it was actually the navision installation that was the problem.
Did you find the solution?
This is set to false. We also tried to change this to true and use ntlm authentication instead, but this didn't work either.
This didn't work. The user and password are correct, we have tried several users and nothing works.
Yes, we know that all the users we have tried is navision users.
Check on the CustomSettings.config what is the value for WebServicesUseNTLMAuthentication, it should be set to false if you are using AllowNTlm to true.
try first with defaultcredentials.
are the user and password correct? did you test that.
is that user a nav user ?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156