NAV 2017 can't access WebClient, receive "A server error has occured..."

MarcusRBMarcusRB Member Posts: 40
edited 2017-06-09 in NAV Three Tier
Hello,

I have been trying to setup and access the NAV 2017 WebClient, and I've run into an issue that I can't get past.

I followed the following guide (except step 2, 3 & 4 as I'm using Windows authentication): https://saurav-nav.blogspot.dk/2015/11/microsoft-dynamics-nav-2016-how-to.html

I'm currently receiving the following error when trying to access the WebClient:

gcn3tvechq9p.png

I get this error when accessing it locally and from another computer in our domain, it also doesn't matter whether I use Internet Explorer or FireFox.

This is the logged error in my event viewer:
Fejl under adgang til webstedet Microsoft Dynamics NAV 2017 Web Client
Raw URL: /NAV2017UDV/WebClient/list.aspx?spa=1&dc=0&inapp=false
URL: https://XXXXX/NAV2017UDV/WebClient/list.aspx?spa=1&dc=0&inapp=false
Type: Microsoft.Dynamics.Nav.Types.NavServerNotFoundException
Message: Der blev ikke fundet en server på "net.tcp://XXXXX:7046/NAV2017UDV/Service". Enten er URL-adressen forkert, eller serveren er ikke tilgængelig i øjeblikket.
StackTrace:
at Microsoft.Dynamics.Nav.Client.ConnectionEstablisher.ConfirmOpenConnectionRetry(ConnectFailedEventArgs connectFailedArgs, Exception exception)
at Microsoft.Dynamics.Nav.Client.ConnectionEstablisher.TestSpnSettings(ConnectFailedEventArgs connectFailedArgs)
at Microsoft.Dynamics.Nav.Client.ConnectionEstablisher.OpenConnection[TChannel](ConnectionRequest connectionRequest, ConnectionOptions connectionOptions, UserSettings& userSettings)
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.FormBuilder.BuilderSessionInitializer.InitializeCore()
at Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSessionInitializer.Initialize()
at Microsoft.Dynamics.Framework.UI.UISession.Initialize()
at Microsoft.Dynamics.Nav.Client.Web.NavWebUISessionInitializer.InitializeCore(UISession session)
at Microsoft.Dynamics.Nav.WebClient.NavWebClientUISessionInitializer.InitializeCore(UISession session)
at Microsoft.Dynamics.Nav.Client.Web.NavWebUISessionInitializer.Initialize(UISession session)
at Microsoft.Dynamics.Framework.UI.Web.ShownFormTrackingUISessionInitializer.InitializeSessionAndTrackShownInitializationForms(UISession session)
at Microsoft.Dynamics.Framework.UI.Web.LogicalFormInitializer.<>c__DisplayClass9_0.<Create>b__0()
at Microsoft.Dynamics.Framework.UI.LogicalOperationInvoker.InvokeAndHandleExceptions(Func`1 action, IExceptionHandler exceptionHandler)
Source: Microsoft.Dynamics.Nav.Client.ServiceConnection
Type: System.Net.Sockets.SocketException
Message: No connection could be made because the target machine actively refused it XXX.XXX.XXX.XXX:7046
StackTrace:
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
Source: System

I'm not using the default NAV server instance, but one that was created by our (very capable) technical team,- I added a NAV webserver instance using the following command:
New-NAVWebServerInstance -WebServerInstance NAV2017UDV -Server XXXXX -ServerInstance NAV2017UDV -ClientServicesCredentialType Windows
I confirmed that it was created by opening IIS (it's on the same server as NAV).

I have had a look at the following MSDN page: https://msdn.microsoft.com/en-us/library/hh997105(v=nav.90).aspx
And I can cross off all checkpoints.

EDIT: I am able to log into the Windows client just fine.

Best regards
MarcusRB

Answers

Sign In or Register to comment.