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

Question Status

Verified
Ruben123 asked a question on 3 Aug 2017 4:05 PM

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

Reply
Suggested Answer
Suresh Kulla responded on 8 Aug 2017 4:54 PM

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

Reply
ruben007 responded on 11 Aug 2017 4:57 AM

Hi

After disabling the firewall, the message still appears.

Reply
Manish Sharma responded on 12 Aug 2017 5:14 AM

Is this specific to a single user ?

Reply
Suggested Answer
Maneesha De Silva responded on 14 Aug 2017 4:41 AM

copy your ClientUserSettings(config file) to

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

Reply
Verified Answer
ruben007 responded on 13 Sep 2017 9:54 AM

We were able to solve the problem.

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

Thx for your replies.

Reply
Verified Answer
ruben007 responded on 13 Sep 2017 9:54 AM

We were able to solve the problem.

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

Thx for your replies.

Reply
Suggested Answer
Suresh Kulla responded on 8 Aug 2017 4:54 PM

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

Reply
Suggested Answer
Maneesha De Silva responded on 14 Aug 2017 4:41 AM

copy your ClientUserSettings(config file) to

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

Reply