Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Can't connect to navision 2009 webservices

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can't connect to navision 2009 webservices

    We also have this issue, what was the solution?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can't connect to navision 2009 webservices

    Thanks for verifying.

  • Verified answer
    throha Profile Picture
    throha 165 on at
    RE: Can't connect to navision 2009 webservices

    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
    Community Member Microsoft Employee on at
    RE: Can't connect to navision 2009 webservices

    Did you find the solution?

  • throha Profile Picture
    throha 165 on at
    RE: Can't connect to navision 2009 webservices

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

  • throha Profile Picture
    throha 165 on at
    RE: Can't connect to navision 2009 webservices

    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.

  • Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Can't connect to navision 2009 webservices

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

  • keoma Profile Picture
    keoma 32,675 on at
    RE: Can't connect to navision 2009 webservices

    try first with defaultcredentials.

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

    is that user a nav user ?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,228 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans