Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Dynamics NAV 2016 update 3 - Credential Type UserName - user login crashing NAV Service

Posted on by 25

Dynamics NAV 2016 - Credential Type UserName - user login crashing NAV Service

We have many NAV 2016 Servers working perfectly with Credential Type Windows – all OK...

We then configured a further NAV service for a client for alternative Credential Type UserName (which prompts user for their windows login)  the NAV Service crashes every time an attempted client login is made – we have the same problem with Credential Type NavUserPassword even after many attempts!

I have read available info, and help without success, and have tried alternative settings and machines without success. Has anyone else seen this? Any help welcome. Are we missing something obvious?

 The service starts fine with healthy logs…

 

Server instance: NAV2016

'Microsoft Dynamics NAV Service' is listening to requests at net.tcp://navdemo.cbsnav.co.uk:6046/NAV2016/

 

Server instance: NAV2016

The service has registered service principal names in Active Directory.

Account: CBSNAV\NAVService

Service principal names:

DynamicsNAV/NAVDEMO:6045

DynamicsNAV/NAVDEMO.cbsnav.co.uk:6045

 

But when we attempt to connect - The service log gets this error… (All logins used have permissions assigned on SQL Server database - just for good measure – although the service is expected to use the service account connection to database – which is separate from the users connection…) (Same user works via Windows client connection)

Server instance: NAV2016

Tenant ID:

User:

Type: System.Data.SqlClient.SqlException

ClientConnectionId: 00000000-0000-0000-0000-000000000000

Class: 20

LineNumber: 0

Number: -1

State: 0

Source: .Net SqlClient Data Provider

ErrorCode: -2146232060

Message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

 

A further error Event Log mentions tenants but these are not in use...

 

Server instance: NAV2016

Tenant ID: nav-systemapplication

The connection to SQL server could not be established

Database server: NAVDEMO\NAVDEMO

Database name: DemoNAV2016.

 

Bit more information to confirm...

To test the UserName client login (which prompts user for a windows login) we were careful to update the client config file settings, and the user name used works fine for windows authentication (i.e. is SUPER)….

Each time we changed Credential Type we restarted the service and deleted the client settings here…

  • %APPDATA%\Microsoft\Microsoft Dynamics NAV\90\ClientUserSettings.config

and updated the client settings accordingly here…

  • %PROGRAMDATA%\Microsoft\Microsoft Dynamics NAV\90\ClientUserSettings.config

When attempting to connect we set this key value...

  • key="ClientServicesCredentialType" value="UserName"

And have tried alternative values for these settings to no avail…

  • key="ClientServicesProtectionLevel" value="EncryptAndSign"

  • key="ServicesCertificateValidationEnabled" value="false"

  • key="DnsIdentity" value="NAVDEMO.cbsnav.co.uk"

The NAV Service crashes every time!

Same results on different servers.

It looks like an issue in NAV2016 CU3.

Am I missing something? Has anyone had this working. Any help welcome.

*This post is locked for comments

  • Verified answer
    Simpson Profile Picture
    Simpson 25 on at
    RE: Dynamics NAV 2016, 9.0.44355.0 - Credential Type UserName login fails crashing NAV Service

    Thanks for pointer.  It was the backend SQL server connection that was failing as suggested by logs. I had changed the Network Protocol from Default (Memory based) to Sockets (TCP.IP) and not opened the inbound port for SQL Server on Windows Firewall !  I was misled because the service started OK and ran ok - I assumed it had made a database connection - but seemingly not so - until user connected.

  • keoma Profile Picture
    keoma 32,675 on at
    RE: Dynamics NAV 2016, 9.0.44355.0 - Credential Type UserName login fails crashing NAV Service

    did you activate sql protocol "named pipes" ?

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans