Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Error message on start up: The connection to the server has been lost. The application will close.

Posted on by Microsoft Employee

Hi


We're using NAV 2013 with NAV users (not windows authentication).

We've installed NAV 2013 on 4 new computers. On 3 computers (and all previous installed computers) NAV is working smoothly. Only 1 computer can't connect to the NAV database.

On startup, after typing the connection string, NAV shows all companies in the database. Then we select a company. After choosing a company, we have to re-enter the username and password. 
After entering the username and password. NAV gives the error: "The connection to the server has been lost. The application will close."

We followed the same installation procedure as we did with the other computers: Same installation DVD (= same version no.), same certificates, same client-configuration file. We always use the same account to test whether we can log in. On the 3 new computers and the previous installed computers we can log in with our account, only on this computer we can't log-in. The user has super rights within the NAV database.
Using another user account doesn't make a difference.

When we type a wrong username and password, NAV gives the correct message that the username and password isn't correct.

We've also reïnstalled NAV, certificates: no solution.

Does anyone know what causes this problem and how we can resolve this?

Message Event Viewer computer:

Type: Microsoft.Dynamics.Nav.Client.NavClientClosingException
Fatal: True
ShowError: True
Message: The connection to the server has been lost. The application will close.
StackTrace:
at Microsoft.Dynamics.Nav.Client.ConnectionStateManager.HandleCommunicationFailure[T](CallServerMethod`1 callServerMethod, ServerCallOptions options, Exception e, Int32 messageNumber, String sessionId)
at Microsoft.Dynamics.Nav.Client.ConnectionStateManager.CallServer[T](CallServerMethod`1 callServerMethod, ServerCallOptions options)
at Microsoft.Dynamics.Nav.Client.ConnectionStateManager.CallServer[T](CallServerMethod`1 callServerMethod)
at Microsoft.Dynamics.Nav.Client.ServerInvocationHandler.CallServer[T](CallServerMethod`1 callServerMethod)
at Microsoft.Dynamics.Nav.Client.ServiceConnection.CallServer[T](CallServerMethod`1 callServerMethod)
at Microsoft.Dynamics.Nav.Client.ServiceConnectionBase.CallServer(CallServerMethod callServerMethod)
at Microsoft.Dynamics.Nav.Client.ServiceConnection.SetClientSettings(SessionSettings sessionSettings, Boolean saveOnly)
at Microsoft.Dynamics.Nav.Client.ServiceConnection.SetupCultureCore(SessionSettings sessionSettings, CultureInfo userCulture)
at Microsoft.Dynamics.Nav.Client.ServiceConnection.SetupCulture(CultureInfo currentCulture)
at Microsoft.Dynamics.Nav.Client.ServiceConnection.Initialize()
at Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSessionInitializer.InitializeService(IService service)
at Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSessionInitializer.OpenConnectionToServer()
at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.OpenServerConnectionCore()
at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.OpenServerConnectionWithMultipleLoginAttempts()
at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.InitializeUISession()
at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.SetupSessions()
at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.InitCore()
at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.InitCore()
at Microsoft.Dynamics.Framework.UI.ClientSessionCore.Init()
at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.Run()
at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(Func`1 execute)
Source: Microsoft.Dynamics.Nav.Client.ServiceConnection
HResult: -2146233088

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error message on start up: The connection to the server has been lost. The application will close.

    We've changed the Windows region code.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error message on start up: The connection to the server has been lost. The application will close.

    Hi which region code did you change ?

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error message on start up: The connection to the server has been lost. The application will close.

    We were able to solve the problem.

    After changing the region code of the computer, NAV was able to start.

    Thx for your replies.

  • Suggested answer
    Maneesha Profile Picture
    Maneesha 5,889 on at
    RE: Error message on start up: The connection to the server has been lost. The application will close.

    copy your ClientUserSettings(config file) to

    C:\nav\ClientUserSettings.config "%USERPROFILE%\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\70"

  • ManishS Profile Picture
    ManishS 6,578 on at
    RE: Error message on start up: The connection to the server has been lost. The application will close.

    Is this specific to a single user ?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error message on start up: The connection to the server has been lost. The application will close.

    Hi

    After disabling the firewall, the message still appears.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Error message on start up: The connection to the server has been lost. The application will close.

    Have you checked firewall settings, if the port is open or blocked. Try disabling firewall if you have one.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans