RTC Throws error "The Server "Net.tcp//localhost:7046/Dynami

hksharmaahksharmaa Member Posts: 55
edited 2011-02-24 in NAV Three Tier
RTC Throws error "The Server "Net.tcp//localhost:7046/DynamicsNav/Service is eiher unavilable or connection has been lost when i press Statsitsc button(F7 In RTC)in all Purchase Invoice taht i have made.
I had also imported the base page 51 of Purchase Invoice but it agains give the same error.
The Purchase Order works fine. Same in Classic. There in no problem in Classic version.
I have also restarted Services many times but it agains shows the same error.
Please suggest what to do.....

Comments

  • deV.chdeV.ch Member Posts: 543
    Look at the eventlog and tell us the error.
  • hksharmaahksharmaa Member Posts: 55
    I am copy pasting the description....It says something like this...

    Type: Microsoft.Dynamics.Nav.Client.NavClientClosingException
    Message: The connection to the server has been lost. The application will close.
    StackTrace:
    at Microsoft.Dynamics.Nav.Client.ExceptionHandler.DoExecute(Func`1 execute)
    at Microsoft.Dynamics.Nav.Client.ExceptionHandler.DoRethrowWithCatchException(Exception exception)
    at Microsoft.Dynamics.Nav.Client.ExceptionHandler.Application_ThreadException(Object sender, ThreadExceptionEventArgs e)
    at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
    at System.Windows.Forms.Control.WndProcException(Exception e)
    at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(ApplicationContext context)
    at Microsoft.Dynamics.Nav.Client.WinClient.RunCore()
    at Microsoft.Dynamics.Nav.Client.ExceptionHandler.ExecuteAndCatchExceptions(Func`1 execute)
    at Microsoft.Dynamics.Nav.Client.ExceptionHandler.DoExecute(Func`1 execute)
    at Microsoft.Dynamics.Nav.Client.WinClient.Run()
    Source: Microsoft.Dynamics.Nav.Client
    Type: Microsoft.Dynamics.Nav.Types.NavConnectionLostException
    Message: The connection to the server has been lost. The application will close.
    StackTrace:
    at Microsoft.Dynamics.Nav.Client.ExceptionHandler.<>c__DisplayClass2.<DoRethrowWithCatchException>b__0()
    at Microsoft.Dynamics.Nav.Client.ExceptionHandler.ExecuteAndCatchExceptions(Func`1 execute)
    Source: Microsoft.Dynamics.Nav.Client
    Type: Microsoft.Dynamics.Nav.Types.NavConnectionLostException
    Message: The connection to the server has been lost. The application will close.
    StackTrace:
    at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.WaitForServerResponse(IAsyncResult asyncResult, ThreadCallbackContext threadEventContext)
    at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.CallServer[T](CallServerMethod`1 callServerMethod)
    at Microsoft.Dynamics.Nav.Client.ServerInvocationHandler.CallServer[T](CallServerMethod`1 callServerMethod)
    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.ServiceConnectionBase.CallServer[T](CallServerMethod`1 callServerMethod)
    at Microsoft.Dynamics.Nav.Client.ServiceConnection.ActionField(NavRecordState& state, NavDataSet recDataSet, String controlTriggerMethodName)
    at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.ActionMethod(String triggerName)
    at Microsoft.Dynamics.Nav.Client.Actions.InvokePageTriggerAction.InvokeTrigger(LogicalControl logicalControl, UISession uiSession)
    at Microsoft.Dynamics.Nav.Client.Actions.InvokePageTriggerAction.InvokeCore(Boolean async, LogicalControl logicalControl, Object state, UISession uiSession)
    at Microsoft.Dynamics.Framework.UI.Action.InvokeCoreWithErrorHandling(Boolean async, LogicalControl logicalControl, Object state, UISession uiSession)
    at Microsoft.Dynamics.Framework.UI.Action.DoInvoke(LogicalControl logicalControl, UISession uiSession)
    at Microsoft.Dynamics.Framework.UI.ActionControl.Invoke()
    at Microsoft.Dynamics.Framework.UI.Windows.ActionControlAdapterBase.DefaultInvokeAction(LogicalControlAdapter adapter, ActionControl actionControl)
    at Microsoft.Dynamics.Framework.UI.Windows.ActionControlAdapterBase.DefaultInvokeAction(LogicalControlAdapter adapter)
    at Microsoft.Dynamics.Framework.UI.Windows.ActionControlAdapterBase.OnInvoke()
    at Microsoft.Dynamics.Framework.UI.WinForms.ActionPaneActionControlAdapter.<InitializeNativeControl>b__0(Object sender, EventArgs e)
    at Microsoft.Dynamics.Framework.UI.WinForms.Controls.ActionItem.OnButtonClick()
    at Microsoft.Dynamics.Framework.UI.WinForms.Controls.ActionButton.OnMouseUp(MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Source: Microsoft.Dynamics.Nav.Client.ServiceConnection
    Type: Microsoft.Dynamics.Nav.Types.NavConnectionLostException
    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, Exception e, Int32 messageNumber, String sessionId)
    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.ServiceConnectionBase.CallServer[T](CallServerMethod`1 callServerMethod)
    at Microsoft.Dynamics.Nav.Client.ServiceConnection.CheckAndGetDependencies(MasterPage page, String personalizationId)
    at Microsoft.Dynamics.Nav.Client.ServiceConnection.GetMasterPageFromCache(Int32 pageId, String personalizationId, Boolean applyPersonalization, Boolean doGetDependencies)
    at Microsoft.Dynamics.Nav.Client.ServiceConnection.GetMasterPage(Int32 pageId, String personalizationId, Boolean applyPersonalization)
    at Microsoft.Dynamics.Nav.Client.ServiceClientCallback.GetMasterPage(PageType pageType, Int32 pageId, String personalizationId, Guid formHandle)
    at Microsoft.Dynamics.Nav.Client.ServiceClientCallback.CreateLogicalForm(FormState formState, PageType pageType, Int32 masterPageId, String personalizationId, Guid formHandle)
    at Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass16.<FormRunModal>b__15()
    at Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass1.<RunClientRequest>b__0()
    at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.WaitForServerResponse(IAsyncResult asyncResult, ThreadCallbackContext threadEventContext)
    Source: Microsoft.Dynamics.Nav.Client.ServiceConnection
    Type: System.ServiceModel.CommunicationObjectFaultedException
    Message: The channel was faulted.
    StackTrace:

    Server stack trace:
    at Microsoft.Dynamics.Nav.Types.Channels.ChunkingXmlDictionaryReader.get_InnerReader()
    at Microsoft.Dynamics.Nav.Types.Channels.ChunkingXmlDictionaryReader.Close()
    at Microsoft.Dynamics.Nav.Types.Channels.ChunkingMessage.OnClose()
    at System.ServiceModel.Channels.Message.Close()
    at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at Microsoft.Dynamics.Nav.Types.INavService.GetPageDependencies(ICollection`1 pageIds, ICollection`1 tableIds)
    at Microsoft.Dynamics.Nav.Client.ServiceConnection.<>c__DisplayClass86.<CheckAndGetDependencies>b__84()
    at Microsoft.Dynamics.Nav.Client.ServerCallContext`1.InvokeCall(Object instance)
    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

    Exception rethrown at [1]:
    at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
    at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
    at System.Threading.WaitCallback.EndInvoke(IAsyncResult result)
    at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.CallServer[T](CallServerMethod`1 callServerMethod)
    at Microsoft.Dynamics.Nav.Client.ServerInvocationHandler.CallServer[T](CallServerMethod`1 callServerMethod)
    at Microsoft.Dynamics.Nav.Client.ConnectionStateManager.CallServer[T](CallServerMethod`1 callServerMethod)
    Source: mscorlib
    Type: System.ServiceModel.CommunicationObjectFaultedException
    Message: The channel was faulted.
    StackTrace:
    at Microsoft.Dynamics.Nav.Types.Channels.ChunkingDuplexSessionChannel.ThrowIfClosedOrFaulted()
    at Microsoft.Dynamics.Nav.Types.Channels.ChunkReceiveStream.AddChunkBuffer(Byte[] buffer, Boolean isFinalChunk)
    at Microsoft.Dynamics.Nav.Types.Channels.ChunkingXmlDictionaryReader.AddMessage(Message nextMessage, Guid newMessageId, Boolean isLastChunk, Int32 chunkNumber)
    at Microsoft.Dynamics.Nav.Types.Channels.ChunkingDuplexSessionChannel.ProcessReceivedChunk(Message receivedMessage)
    at Microsoft.Dynamics.Nav.Types.Channels.ChunkingDuplexSessionChannel.ReceiveChunkLoop(Object state)
    Source: Microsoft.Dynamics.Nav.Types
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    The Vendor Statistics page has number 152. Are you able to compile this page without errors?
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • hksharmaahksharmaa Member Posts: 55
    Yes the vendor stats page is working fine...It shows error only when i open the purchase invoice Document through ....APPROVAL ENTRIES....OR APPROVAL REQUEST ENTRIES....When i click document on the Page ...the Purchase invoice opens up...and as i press F7 then this error appears.....


    IF i directly open that Purchase Invoice Page through Purchase ---It opens up....But if i go through Approvals and then try to open the Invoice page and then Press f7 in RTC it throws error....
  • mihail_kolevmihail_kolev Member Posts: 379
    this is the Client eventlog, check the Service event log too.
    -Mihail- [MCTS]
  • sclarksclark Member Posts: 1
    Was there every any resolution to this issue? Having a similar issue and I'm very interested to know if this was resolved.

    Thanks!
  • mark_aumark_au Member Posts: 40
    What's the build number you are having issues with? For RTC crashes there are a number of fixes which were made early on after RTM. If you're using the RTM then the issue is almost certainly addressed, you'll just need to apply a hotfix.
  • manisharma31manisharma31 Member Posts: 285
    We are also having the same issue,when user are pressing F7 on purchase invoice.

    They are having error in NAV 2009 SP1 (Build 6.00.29626)
    The error is generated on Windows Server 2008 & users are accessing it through Terminal server.

    After relogin in RTC when the user navigate to the same purchase invoice & press F7 they are not getting the error second time.
    I have tried to compile page 161 as defined in the purchase invoice page action,there are no issues.
    Below is the standard code written on page 51 - Purchase Invoice -> Action -> Action57(Statistics).

    <Action57> - OnAction()
    CalcInvDiscForHeader;
    COMMIT;
    IF Rec.Structure <> '' THEN BEGIN
    PurchLine.CalculateStructures(Rec);
    PurchLine.AdjustStructureAmounts(Rec);
    PurchLine.UpdatePurchLines(Rec);
    PurchLine.CalculateTDS(Rec);
    COMMIT;
    END ELSE BEGIN
    PurchLine.CalculateTDS(Rec);
    COMMIT;
    END;
    FORM.RUNMODAL(FORM::"Purchase Statistics",Rec);

    Any idea what could be the problem ?
    Regards,
    Manish
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    Try this fix

    Update 0.26
    30212
    977218
    The Microsoft Dynamics NAV 2009 Service Pack 1 client crashes when you run the FORM.RUNMODAL statement together with the COMMIT statement
  • manisharma31manisharma31 Member Posts: 285
    Hey mohana_cse06 thanks for the detial.

    I will try it & confirm the same.
    Regards,
    Manish
Sign In or Register to comment.