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.....
0
Comments
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
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....
Thanks!
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 ?
Manish
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
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I will try it & confirm the same.
Manish