Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

User Name & Password error

Posted on by 566

Hello, I have followed all steps to change credentials type to User Name and Password (new service tier, certificate thumprint, modifying ClientUserSettings.config file...) but when I start NAV and after asking for name/password it gets stuck for 2 or 3 minutes until this error pops up :

Application: Microsoft.Dynamics.Nav.Client.exe
Framework Version: v4.0.30319
Description: The application requested process termination through System.Environment.FailFast(string message).
Message: The connection to the server has been lost. The application will close.
Stack:
at System.Environment.FailFast(System.String, System.Exception)
at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(System.Func`1<Int32>)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(System.Func`1<Int32>)
at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.RunCore()
at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.Run(Boolean)
at Microsoft.Dynamics.Nav.Client.Program.Main(System.String[])

I have dig into event viewer and found (besides this error) this warning:

Server instance: SECURE  (its the name a gave the new NST with user/password credentials)
Tenant:
<ii>The service could not add service principal names because the service account could not be found in Active Directory.
Account: NT AUTHORITY\NET SERVICE
Service principal names:
DynamicsNAV/ALL-IN-ONE:20                   (ALL-IN-ONE is my computer's name)
DynamicsNAV/ALL-IN-ONE:20</ii>

Any ideas how to solve it?

Thank you

*This post is locked for comments

  • ShanAbeywicrema Profile Picture
    ShanAbeywicrema 940 on at
    RE: User Name & Password error

    seems your service is running. you can do following basic testing and configurations . 

    First open the database from development environment check if its opening correctly without error.

    Second go to SQL server Management studio, then security, select the user which your service is running and check following permission,

    under user mapping , select your db and bellow check following permissions, 

    public, db_owner, db_datareader, db_datawriter,  

    Now try to login into your rtc, if the error still same please let me know,

    Regards

    Shan Abeywicrema

    navsupports.com

  • AntonioTorre Profile Picture
    AntonioTorre 566 on at
    RE: User Name & Password error

    nts2.jpg

    nts2.jpg

    nts3.jpg

  • ShanAbeywicrema Profile Picture
    ShanAbeywicrema 940 on at
    RE: User Name & Password error

    can you post here your NTS screen shot please

  • AntonioTorre Profile Picture
    AntonioTorre 566 on at
    RE: User Name & Password error

    Hi Shan, for some reason when I try to use my credentials in NTS I get an error message: The specified account is not valid

  • ShanAbeywicrema Profile Picture
    ShanAbeywicrema 940 on at
    RE: User Name & Password error

    Instead of NT Authority did you check with your credentials in your NAV Service ?Is it getting stopped after get this error ?

  • AntonioTorre Profile Picture
    AntonioTorre 566 on at
    RE: User Name & Password error

    Hi Mahesh, that Network service for Login Account is the same used for "standard" Windows Auth. NST, and it works fine with that service.

    I also grant permissions for that Login Account at Local Computer Logical Certificate store.

    Its kind of frustrating since it seems to  begin opening,  but menus wont show up, just the opening blue square of Microsoft Dynamics NAV.

  • mmv Profile Picture
    mmv 11,465 on at
    RE: User Name & Password error

    Hi,

    if you are using the NT AUTHORITY\NETWORK SERVICE as the Login Account, could you check whether the same is been granted permissions to the correct db which is mapped in the nav service instance mentioned in your issue?

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