Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

NAV 2013 and 2013 R2 Web Client Cannot Connect Server(App and Web Server Different)

Posted on by 714

Hi Team,

      I'm installed NAV 2013 3Tier Installation on my development environment. Installation is successful and can connect RTC (any PC). But I installed web client on Web Server. I can open web client on web server using by "http://localhost:8080/". But I cannot open from other server. It always show below error. Again I try to install 2013 R2 3 Tier and web client is separated on web server. That one also show same error as NAV 2013. I follow this link msdn.microsoft.com/.../hh997105%28v=nav.71%29.aspx  to fix the error but that does not work anymore.

    Anyone has experience web client installation on web server (separated installation Web Server and App Server). Or MS not support separate installation? Or Bug ?

Navision 2013 Web Client Error

Error accessing Website Microsoft Dynamics NAV 2013 Web Client

URL: http://websrv:8080/default.aspx

Type: Microsoft.Dynamics.Nav.Types.NavServerNotFoundException

Message: A server was not found at "net.tcp://navsrv.yukon.ts:7046/DynamicsNAV7/Service". Either the URL is incorrect or the server is currently not available.

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(ConnectionRequest connectionRequest, 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.InitializeSession(FormPropertyBag formBeingInitialized, ClientSession clientSession)

  at Microsoft.Dynamics.Framework.UI.Web.LogicalFormInitializer.<>c__DisplayClass1.<Create>b__0()

  at Microsoft.Dynamics.Framework.UI.LogicalOperationInvoker.InvokeAndHandleExceptions(Func`1 action, IExceptionHandler exceptionHandler)

Source: Microsoft.Dynamics.Nav.Client.ServiceConnection----------------------------------

Type: System.IO.IOException

Message: The write operation failed, see inner exception.

StackTrace:

  at System.Net.Security.NegotiateStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)

  at System.Net.Security.NegotiateStream.Write(Byte[] buffer, Int32 offset, Int32 count)

  at System.ServiceModel.Channels.StreamConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)

Source: System----------------------------------

Type: System.ServiceModel.CommunicationException

Message: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:01:00'.

StackTrace:

  at System.ServiceModel.Channels.SocketConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)

  at System.ServiceModel.Channels.BufferedConnection.WriteNow(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, BufferManager bufferManager)

  at System.ServiceModel.Channels.BufferedConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)

  at System.ServiceModel.Channels.ConnectionStream.Write(Byte[] buffer, Int32 offset, Int32 count)

  at System.Net.Security.NegotiateStream.StartWriting(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)

  at System.Net.Security.NegotiateStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)

Source: System.ServiceModel----------------------------------

Type: System.Net.Sockets.SocketException

Message: An existing connection was forcibly closed by the remote host

StackTrace:

  at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)

  at System.ServiceModel.Channels.SocketConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)

Source: System

Navision 2013 R2 Web Client Error

Error accessing Website Microsoft Dynamics NAV 2013 R2 Web Client

URL: http://websrv2:8080/DynamicsNAV71/WebClient/default.aspx

Type: Microsoft.Dynamics.Nav.Types.NavServerNotFoundException

Message: A server was not found at "net.tcp://navsrv:7056/DynamicsNAV71/Service". Either the URL is incorrect or the server is currently not available.

StackTrace:

  at Microsoft.Dynamics.Nav.Client.ConnectionEstablisher.ConfirmOpenConnectionRetry(ConnectFailedEventArgs connectFailedArgs, Exception exception)

  at Microsoft.Dynamics.Nav.Client.ConnectionEstablisher.OpenConnection(ConnectFailedEventArgs connectFailedArgs, ConnectionRequest connectionRequest, SpnSetting spnSettingToTry, Boolean allowSpnSettingsSwap, UserSettings& userSettings)

  at Microsoft.Dynamics.Nav.Client.ConnectionEstablisher.OpenConnection(ConnectionRequest connectionRequest, 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.InitializeSession(FormPropertyBag formBeingInitialized, ClientSession clientSession)

  at Microsoft.Dynamics.Framework.UI.Web.LogicalFormInitializer.<>c__DisplayClass1.<Create>b__0()

  at Microsoft.Dynamics.Framework.UI.LogicalOperationInvoker.InvokeAndHandleExceptions(Func`1 action, IExceptionHandler exceptionHandler)

Source: Microsoft.Dynamics.Nav.Client.ServiceConnection----------------------------------

Type: System.IO.IOException

Message: The write operation failed, see inner exception.

StackTrace:

  at System.Net.Security.NegotiateStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)

  at System.Net.Security.NegotiateStream.Write(Byte[] buffer, Int32 offset, Int32 count)

  at System.ServiceModel.Channels.StreamConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)

Source: System----------------------------------

Type: System.ServiceModel.CommunicationException

Message: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:09.8340000'.

StackTrace:

  at System.ServiceModel.Channels.SocketConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)

  at System.ServiceModel.Channels.BufferedConnection.WriteNow(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, BufferManager bufferManager)

  at System.ServiceModel.Channels.BufferedConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)

  at System.ServiceModel.Channels.ConnectionStream.Write(Byte[] buffer, Int32 offset, Int32 count)

  at System.Net.Security.NegotiateStream.StartWriting(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)

  at System.Net.Security.NegotiateStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)

Source: System.ServiceModel----------------------------------

Type: System.Net.Sockets.SocketException

Message: An existing connection was forcibly closed by the remote host

StackTrace:

  at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)

  at System.ServiceModel.Channels.SocketConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)

Best Regards,

Yukon

*This post is locked for comments

  • Yukon Profile Picture
    Yukon 714 on at
    RE: NAV 2013 and 2013 R2 Web Client Cannot Connect Server(App and Web Server Different)

    Hi Vajid,

         Still cannot solved this problem. I'm testing on 2013 Lasted and R2. Both are same. I not sure i already tested on your mention. Currently my testing enviroment is down. I will let know here again after tested on your mention. Currently we installed NAS on IIS Server for solving this issue. I know that is not correct way and also cannot find the solution. Really disappointed follow the documentation.

    Regards,

    Yukon

  • RE: NAV 2013 and 2013 R2 Web Client Cannot Connect Server(App and Web Server Different)

    Hi Yukon,

    Did you manage to find a solution for the issue you were facing? Could you allow any authentication protocol instead of Kerberos only in AD and then try again?

  • Yukon Profile Picture
    Yukon 714 on at
    RE: NAV 2013 and 2013 R2 Web Client Cannot Connect Server(App and Web Server Different)

    Hi Roberto,

        Thanks for your suggestion. I already delegated and SPN for application pool account and web server. I follow this link msdn.microsoft.com/.../jj551742(v=nav.71).aspx. I used application pool account same as Navision Service account.

    Best Regards,

    Yukon

  • Suggested answer
    Roberto Stefanetti Profile Picture
    Roberto Stefanetti 12,998 on at
    RE: NAV 2013 and 2013 R2 Web Client Cannot Connect Server(App and Web Server Different)

    hi,

    i think you need delegation (impersonation) for your scenario.

    you need SPN (service principal name) to solve name in network.

    setspn -A DynamicsNAV/NAVSERV.corp:7046 corp\navdomainuser

    After configure Kernel Mode Authentication to use the Application Pool Credentials.

    c:\Windows\System32\inetsrv\config\applicationHost.config

    -> <windowsAuthentication enabled="true" useAppPoolCredentials="true" />

    restart IIS

    msdn.microsoft.com/.../jj551742(v=nav.70).aspx

    --------------------------------------------------------------------------------------

    Dynamics NAV Web Client on Two Computers

    msdn.microsoft.com/.../jj551771(v=nav.70).aspx

    Dynamics NAV Web Client on Three Computers

    msdn.microsoft.com/.../jj551748(v=nav.70).aspx

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans