The server "net.tcp://localhost:7046/DynamicsNAV/Service"

tedltedl Member Posts: 20
edited 2012-05-16 in NAV Three Tier
Hello I am new in NAV 2009 R2

How can I solve this problem. When I would like print some report give this error.

Both service is running. (Microsoft Dynamics NAV Business Web Services,Microsoft Dynamics NAV Server)

Microsoft Dynamics NAV
The server "net.[url=tcp://localhost:7046/DynamicsNAV/Service]tcp://localhost:7046/DynamicsNAV/Service[/url]" is either unavailable or your connection has been lost. Do you want to attempt to reconnect?
Yes No


Microsoft Dynamics NAV
The connection to the server has been lost. The application will close.
OK




Service: MicrosoftDynamicsNavServer
User: XXX\username
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.NavForm.SetFieldsFromControlsMetadata()
at Microsoft.Dynamics.Nav.Runtime.NavForm..ctor(ITreeObject parent, MasterPage masterPage, NavRecord record)
at Microsoft.Dynamics.Nav.Runtime.NavForm..ctor(ITreeObject parent, MasterPage masterPage)
at Microsoft.Dynamics.Nav.BusinessApplication.Report13016509..ctor(ITreeObject parent)
at (ITreeObject )
at Microsoft.Dynamics.Nav.Runtime.NCLMetaReport.CreateObjectInstance(ITreeObject parent)
at Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Int32 reportId, Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean isRunningAsModal, NavRecord record, IList`1 textualFilters)
at Microsoft.Dynamics.Nav.Runtime.NavReport.Run(Int32 reportId)
at Microsoft.Dynamics.Nav.Service.NSReport.Run(NavConnection connection)
at Microsoft.Dynamics.Nav.Service.NSService.<>c__DisplayClass24.<RunReport>b__23(Connection connection)
at Microsoft.Dynamics.Nav.Service.NSService.ExecuteOperation[T](String operationName, ServiceOperation`1 operation, Connection connection, Boolean revertLanguageChanges, WindowsIdentity impersonationIdentity)
Source: Microsoft.Dynamics.Nav.Ncl










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.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.RunReport(Int32 reportId, Boolean suppressRequestForm, NavRecordState& state, NavDataSet recordDataSet, IList`1 textualFilters)
at Microsoft.Dynamics.Nav.Client.ServiceConnection.RunReport(Int32 reportId)
at Microsoft.Dynamics.Nav.Client.Actions.RunReportAction.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.ActionLinkControlAdapter.<InitializeNativeControl>b__0(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at Microsoft.Dynamics.Framework.UI.WinForms.Controls.ImageLinkLabel.OnClick(EventArgs 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.Label.WndProc(Message& m)
at Microsoft.Dynamics.Framework.UI.WinForms.Controls.ImageLinkLabel.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: System.ServiceModel.FaultException
Action: http://schemas.microsoft.com/net/2005/1 ... cher/fault
Message: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
StackTrace:

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
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.RunReport(ApplicationMethodRequest applicationMethodRequest)
at Microsoft.Dynamics.Nav.Client.ServiceConnection.<>c__DisplayClass2a.<RunReport>b__29()
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

Comments

  • mark_aumark_au Member Posts: 40
    It's hard to say for sure, but i'm guessing this is the known issue where the RTC crashes printing reports. There's a platform hotfix which you'll need to apply if you have not already. In fact i'd suggest getting the latest platform fix anyway so all known issues are addressed in one go.

    Check in Partnersource for the NAV 2009 platform updates list and grab the latest one, it should address the problem :)
  • sil21sil21 Member Posts: 55
    I think I have the same problem - did you find the hot fix or resolve this problem?
  • manisharma31manisharma31 Member Posts: 285
    I have as user who is getting below error when trying to opening RTC,
    Microsoft Dynamics NAV
    The server "net.[url=tcp://localhost:7046/DynamicsNAV/Service]tcp://localhost:7046/DynamicsNAV/Service[/url]" is either unavailable or your connection has been lost. Do you want to attempt to reconnect?
    Yes No
    The user is having super role & i have sync the user also.
    But other user are not getting this error.

    The user is connecting through terminial.
    I also tried on different user machine with Run as,but no success.

    User is having Window 7 installed.
    Any idea what can be the issue.
    Regards,
    Manish
  • sil21sil21 Member Posts: 55
    Try adding read / modify permission to table 2000000080 (Page Data Personalization) - or make sure your users have the BASIC role - that role has some permissions required for RTC.
  • manisharma31manisharma31 Member Posts: 285
    As i have already mentioned that the user is having super role.

    Another thing i missed here,
    After selecting the path (localhost:7046/DynamicsNAV)in the RTC login window, user is able to see the list of companies.
    But when the user selects any company error message is poped up as mentioned below,

    The server "net.[url=tcp://localhost:7046/DynamicsNAV/Service]tcp://localhost:7046/DynamicsNAV/Service[/url]" is either unavailable or your connection has been lost. Do you want to attempt to reconnect?

    There is no specific company assigned to the user.
    Regards,
    Manish
  • Peter_Wibeck_[MSFT]Peter_Wibeck_[MSFT] Member, Microsoft Employee Posts: 78
    manisharma31: Can you some more information from the event log on both client and server?
    “This posting is provided "AS IS" with no warranties, and confers no rights.”

    Peter Wibeck
    Software Development Engineer in Test
    Dynamics NAV Server and Installer team
    http://blog.wibeck.org/
  • manisharma31manisharma31 Member Posts: 285
    OK the problem is solved.

    The user was assigned a profile if in the User Personalization.
    After removing the profile id,the user is able to use RTC.

    We are yet analysing the issue with the profile Id. attachment in the user personalization.
    Regards,
    Manish
  • Rikt-ItRikt-It Member Posts: 37
    Hi

    I had the same problem.

    A new installation, new upgraded database from 4.0 SP1 to 2009 SP1. The classic client worked fine, everything compiled, RTC client starts and displays Cronus welcome and then view the "lost conntection"

    The solution in my case: Office Outlook had never been started for this user ... so "home" could not be displayed.

    .:. Start Office Outlook and do the initial setup (Welkome e-mail....)

    Hälsningar
    Christer
    Regards
    Christer in Stockholm, Sweden
  • Joe_MathisJoe_Mathis Member Posts: 173
    I started getting this message as well, after installing HotFix 438509 for the PDF.

    So far I only get it when trying to print a document/report.

    EDIT:
    There was an error message in the event viewer on the server that said null exception error.

    I couldn't find any other issues or anything else that had changed, so I went back to basics and recompiled the reports and the error went away.

    Then I recompiled everything just to be sure and so far no new issues. \:D/
  • LambaLamba Member Posts: 260
    In my case all RTC window opens up and doesn't shows any error,but as i run any of the report for RTC,
    the same error msg pops up.
    The Methods i tried are:
    1. Compiling all objects.
    2. Checked the roles,i.e, super role.
    3. Removed the Userid from the user personalization table.

    Still the same issue persists. ](*,)
  • Joe_MathisJoe_Mathis Member Posts: 173
    It may have nothing to do with it, but are you sure your service tier and client match? We installed the hotfix for pdf on a client machine but did not update teh service tier. It had some of the same issues you are having, where the reports designed with the hotfix errored out even after compiling. Updated teh service tier and it went away.
Sign In or Register to comment.