Terminated session - Navision 2013R2

PloegPloeg Member Posts: 70
edited 2015-09-04 in NAV Three Tier
Hello my friends,

Our customer has one client computer on which the RTC crashes with the message: "Microsoft Dynamics NAV stopped working". In the eventlog on the server we see a warning (doesn't seem like a warning to me ](*,) ) with the next stacktrace:
StackTrace:
     at Microsoft.Dynamics.Nav.Runtime.SessionAccessLock.ThrowSessionTerminatedException()
     at Microsoft.Dynamics.Nav.Service.ServiceCall.GetClientReturnValue(Action invokeCallback)
     at Microsoft.Dynamics.Nav.Service.NSClientCallback.FormRunModal(NavForm form, NavFormRuntimeParameters parameters)
     at Microsoft.Dynamics.Nav.Runtime.NavForm.RunModal(NavRecord record, Int32 fieldNo)
     at Microsoft.Dynamics.Nav.Runtime.NavReport.RunRequestPage()
     at Microsoft.Dynamics.Nav.Runtime.NavReport.RunReportInternal(NavRecord record, Boolean displayResult)
     at Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean runReportModal, NavRecord record, IList`1 reportTextualFilters)
     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.Service.NSReport.Run(NavSession session)
     at Microsoft.Dynamics.Nav.Service.NSService.RunReport(ApplicationMethodRequest applicationMethodRequest)
     at SyncInvokeRunReport(Object , Object[] , Object[] )
     at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
     at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.ErrorMappingCombinator(ServiceOperation innerOperation, NSServiceBase serviceInstance, Object[] inputs, Object[]& outputs)
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2146233088

I have no idea what causes this error, but it is annoying. Can someone help me with this issue?

Regards,
Ploeg

Comments

  • tinoruijstinoruijs Member Posts: 1,226
    Have you tried to restart the servicetier?

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • PloegPloeg Member Posts: 70
    Tino,

    No, we did not restart the service tier yet, but we will do this later today.
  • tinoruijstinoruijs Member Posts: 1,226
    Ploeg wrote:
    Tino,

    No, we did not restart the service tier yet, but we will do this later today.

    Did the restart solve it?

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • PloegPloeg Member Posts: 70
    Sorry for the late heads up. The restart did not resolve anything... same old same old.
    We're looking for other solutions.
  • geordiegeordie Member Posts: 655
    Can you try at least to identify if the crash is related to a specific process executed?
  • tinoruijstinoruijs Member Posts: 1,226
    Maybe a failed client-installation? Reinstalling might help.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • vremeni4vremeni4 Member Posts: 323
    Hi,

    If I look at the Stack trace it says
    at Microsoft.Dynamics.Nav.Runtime.NavForm.RunModal(NavRecord record, Int32 fieldNo)
    
    This is a hint that the problem is caused by a report.

    Is it possible to double check whether Report Viewer is installed on this machine.
    It may be worth to run the installation setup.exe and to make sue that Report viewer is installed correctly.

    I hope this helps.
  • PloegPloeg Member Posts: 70
    The problem is indeed caused by a (custom made) report, but the Report Viewer is installed and the report runs (80% of the time) without any problems.

    Maybe a reinstall of the Report Viewer or a complete client reinstall will solve this. A good hint, never thought in that direction.

    Will try this next week. Thanks!
  • jbridgukjbridguk Member Posts: 5
    Hi,

    Did you ever find a solution?
    We have massive problems since launching on 2013R2 - 120 users, over 1000 events like this since 1st July 2015.

    Printing seems to be most often involved, but not always, sometimes it seems to be also when one page run modally is running another page modally.

    Regards,
    John
  • jbridgukjbridguk Member Posts: 5
    In case anyone is having problems, we found that CU21 has reduced the number of terminated sessions a lot.
    The issue was printing related:
    Microsoft.Dynamics.Nav.Common.Printing.NavPrinterSettingsCache.TryGetValue(String printerName, NavPrinterSettings& printerSettings)
Sign In or Register to comment.