web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Can't connect to navision 2009 webservices

(0) ShareShare
ReportReport
Posted on by 165

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

  • keoma Profile Picture
    32,729 on at

    try first with defaultcredentials.

    are the user and password correct? did you test that.

    is that user a nav user ?

  • Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    Check on the CustomSettings.config  what is the value for WebServicesUseNTLMAuthentication, it should be set to false if you are using AllowNTlm to true.

  • throha Profile Picture
    165 on at

    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.

  • throha Profile Picture
    165 on at

    This is set to false. We also tried to change this to true and use ntlm authentication instead, but this didn't work either.

  • Community Member Profile Picture
    on at

    Did you find the solution?

  • Verified answer
    throha Profile Picture
    165 on at

    Yes, it works now.

    In our case it was something wrong server side, it was actually the navision installation that was the problem.

  • Community Member Profile Picture
    on at

    Thanks for verifying.

  • Community Member Profile Picture
    on at

    We also have this issue, what was the solution?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Hannes Holst Profile Picture

Hannes Holst 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans