Navision 2016 RTC stop working after login when using public IP address

edwinschutten
Member Posts: 18
I have installed Dynamics Navision 2016 CU67 on a Azure VM (Windows Server 2019 Datacenter).
In SQL Server 2019 I restored a back-up from the Dynamics NAV 2016 application that is running on-premises.
The reason for the new server is that the customer wants to use the NAV 2016 environment as a reference/history environment. They are now working in BC365.
On the server I can login with a local Windows admin account. I have changed the service tier to NavUserPassword and use a thumbprint from a valid certificate.
The server in ClientUserSettings.config is set to local. I can login to the environment.
When I change the server in ClientUserSettings.config to a public IP address or server name, than I can’t login to the environment.
After filling in the username en password, the RTC suddenly stop with an error message in the Event Viewer. I have solved this by entering the server name and public IP address in the hosts file.
But now I have the same problem on my laptop. After login the RTC suddenly stop with the same error message in the Event Viewer. It seems that this happens when I use a public IP address.
When I stop the service tier, than I get the error message “Could not connect to server”. So the port is available.
I have no clue what is going wrong. The error message in the event viewer is:
Event 1026, .NET Runtime
Application: Microsoft.Dynamics.Nav.Client.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at Microsoft.Dynamics.Nav.Client.ConnectionEstablisher.OpenConnectionSystem.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089(Microsoft.Dynamics.Nav.Client.ConnectFailedEventArgs, Microsoft.Dynamics.Nav.Types.ConnectionRequest, Microsoft.Dynamics.Nav.Client.ConnectionOptions, Microsoft.Dynamics.Nav.Client.SpnSetting, Boolean, Microsoft.Dynamics.Nav.Types.UserSettings ByRef)
at Microsoft.Dynamics.Nav.Client.ConnectionEstablisher.OpenConnectionSystem.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089(Microsoft.Dynamics.Nav.Types.ConnectionRequest, Microsoft.Dynamics.Nav.Client.ConnectionOptions, Microsoft.Dynamics.Nav.Types.UserSettings ByRef)
at Microsoft.Dynamics.Nav.Client.ServiceConnection.OpenConnection()
at Microsoft.Dynamics.Nav.Client.ServiceConnection.Initialize()
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.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(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[])
In SQL Server 2019 I restored a back-up from the Dynamics NAV 2016 application that is running on-premises.
The reason for the new server is that the customer wants to use the NAV 2016 environment as a reference/history environment. They are now working in BC365.
On the server I can login with a local Windows admin account. I have changed the service tier to NavUserPassword and use a thumbprint from a valid certificate.
The server in ClientUserSettings.config is set to local. I can login to the environment.
When I change the server in ClientUserSettings.config to a public IP address or server name, than I can’t login to the environment.
After filling in the username en password, the RTC suddenly stop with an error message in the Event Viewer. I have solved this by entering the server name and public IP address in the hosts file.
But now I have the same problem on my laptop. After login the RTC suddenly stop with the same error message in the Event Viewer. It seems that this happens when I use a public IP address.
When I stop the service tier, than I get the error message “Could not connect to server”. So the port is available.
I have no clue what is going wrong. The error message in the event viewer is:
Event 1026, .NET Runtime
Application: Microsoft.Dynamics.Nav.Client.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at Microsoft.Dynamics.Nav.Client.ConnectionEstablisher.OpenConnectionSystem.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089(Microsoft.Dynamics.Nav.Client.ConnectFailedEventArgs, Microsoft.Dynamics.Nav.Types.ConnectionRequest, Microsoft.Dynamics.Nav.Client.ConnectionOptions, Microsoft.Dynamics.Nav.Client.SpnSetting, Boolean, Microsoft.Dynamics.Nav.Types.UserSettings ByRef)
at Microsoft.Dynamics.Nav.Client.ConnectionEstablisher.OpenConnectionSystem.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089(Microsoft.Dynamics.Nav.Types.ConnectionRequest, Microsoft.Dynamics.Nav.Client.ConnectionOptions, Microsoft.Dynamics.Nav.Types.UserSettings ByRef)
at Microsoft.Dynamics.Nav.Client.ServiceConnection.OpenConnection()
at Microsoft.Dynamics.Nav.Client.ServiceConnection.Initialize()
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.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(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[])
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions