NAV Service Stopping

aceX
Member Posts: 166
Does anyone can help about this error:
FIRST ERROR
Server instance: DynamicsNAV90Local
Tenant ID:
User:
Type: System.Runtime.CallbackException
Message: A user callback threw an exception. Check the exception stack and inner exception to determine the callback that failed.
StackTrace:
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
at System.ServiceModel.Channels.CommunicationObject.Fault()
at System.ServiceModel.Channels.ServiceChannel.OnInnerChannelFaulted(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
at System.ServiceModel.Channels.CommunicationObject.Fault()
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
at System.ServiceModel.Channels.InputQueueChannel`1.OnFaulted()
at System.ServiceModel.Channels.ServerReliableDuplexSessionChannel.OnFaulted()
at System.ServiceModel.Channels.CommunicationObject.Fault()
at System.ServiceModel.Channels.CommunicationObject.Fault(Exception exception)
at System.ServiceModel.Channels.ChannelReliableSession.OnLocalFault(Exception e, Message faultMessage, RequestContext context)
at System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnBeginSendHandler(MessageAttemptInfo attemptInfo, TimeSpan timeout, Boolean maskUnhandledException, AsyncCallback callback, Object state)
at System.ServiceModel.Channels.ReliableOutputConnection.OnRetryTimeoutElapsed(MessageAttemptInfo attemptInfo)
at System.ServiceModel.Channels.TransmissionStrategy.OnRetryElapsed(Object state)
at System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
Source: System.ServiceModel
HResult: -2146233087
Type: System.ArgumentOutOfRangeException
Message:
Time-out interval must be less than 2^32-2.
Parameter name: dueTm
ParamName: dueTm
StackTrace:
at System.Threading.Timer..ctor(TimerCallback callback, Object state, TimeSpan dueTime, TimeSpan period)
at Microsoft.Dynamics.Nav.Service.Connection.SetAsOrphan()
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
Source: mscorlib
HResult: -2146233086
SECOND ERROR
Faulting application name: Microsoft.Dynamics.Nav.Server.exe, version: 9.0.45480.0, time stamp: 0x56f23a31
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17415, time stamp: 0x54505737
Exception code: 0xe0434352
Fault offset: 0x0000000000008b9c
Faulting process id: 0x4508
Faulting application start time: 0x01d246efe3e6589f
Faulting application path: C:\Program Files\Microsoft Dynamics NAV\90\Service\Microsoft.Dynamics.Nav.Server.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: a2640416-b2e4-11e6-80b8-70106fb6b121
Faulting package full name:
Faulting package-relative application ID:
THIRD ERROR
Faulting application name: Microsoft.Dynamics.Nav.Server.exe, version: 9.0.45480.0, time stamp: 0x56f23a31
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17415, time stamp: 0x54505737
Exception code: 0xe0434352
Fault offset: 0x0000000000008b9c
Faulting process id: 0x4508
Faulting application start time: 0x01d246efe3e6589f
Faulting application path: C:\Program Files\Microsoft Dynamics NAV\90\Service\Microsoft.Dynamics.Nav.Server.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: a2640416-b2e4-11e6-80b8-70106fb6b121
Faulting package full name:
Faulting package-relative application ID:
FIRST ERROR
Server instance: DynamicsNAV90Local
Tenant ID:
User:
Type: System.Runtime.CallbackException
Message: A user callback threw an exception. Check the exception stack and inner exception to determine the callback that failed.
StackTrace:
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
at System.ServiceModel.Channels.CommunicationObject.Fault()
at System.ServiceModel.Channels.ServiceChannel.OnInnerChannelFaulted(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
at System.ServiceModel.Channels.CommunicationObject.Fault()
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
at System.ServiceModel.Channels.InputQueueChannel`1.OnFaulted()
at System.ServiceModel.Channels.ServerReliableDuplexSessionChannel.OnFaulted()
at System.ServiceModel.Channels.CommunicationObject.Fault()
at System.ServiceModel.Channels.CommunicationObject.Fault(Exception exception)
at System.ServiceModel.Channels.ChannelReliableSession.OnLocalFault(Exception e, Message faultMessage, RequestContext context)
at System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnBeginSendHandler(MessageAttemptInfo attemptInfo, TimeSpan timeout, Boolean maskUnhandledException, AsyncCallback callback, Object state)
at System.ServiceModel.Channels.ReliableOutputConnection.OnRetryTimeoutElapsed(MessageAttemptInfo attemptInfo)
at System.ServiceModel.Channels.TransmissionStrategy.OnRetryElapsed(Object state)
at System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
Source: System.ServiceModel
HResult: -2146233087
Type: System.ArgumentOutOfRangeException
Message:
Time-out interval must be less than 2^32-2.
Parameter name: dueTm
ParamName: dueTm
StackTrace:
at System.Threading.Timer..ctor(TimerCallback callback, Object state, TimeSpan dueTime, TimeSpan period)
at Microsoft.Dynamics.Nav.Service.Connection.SetAsOrphan()
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
Source: mscorlib
HResult: -2146233086
SECOND ERROR
Faulting application name: Microsoft.Dynamics.Nav.Server.exe, version: 9.0.45480.0, time stamp: 0x56f23a31
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17415, time stamp: 0x54505737
Exception code: 0xe0434352
Fault offset: 0x0000000000008b9c
Faulting process id: 0x4508
Faulting application start time: 0x01d246efe3e6589f
Faulting application path: C:\Program Files\Microsoft Dynamics NAV\90\Service\Microsoft.Dynamics.Nav.Server.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: a2640416-b2e4-11e6-80b8-70106fb6b121
Faulting package full name:
Faulting package-relative application ID:
THIRD ERROR
Faulting application name: Microsoft.Dynamics.Nav.Server.exe, version: 9.0.45480.0, time stamp: 0x56f23a31
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17415, time stamp: 0x54505737
Exception code: 0xe0434352
Fault offset: 0x0000000000008b9c
Faulting process id: 0x4508
Faulting application start time: 0x01d246efe3e6589f
Faulting application path: C:\Program Files\Microsoft Dynamics NAV\90\Service\Microsoft.Dynamics.Nav.Server.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: a2640416-b2e4-11e6-80b8-70106fb6b121
Faulting package full name:
Faulting package-relative application ID:
0
Best Answer
-
Hi,
So we know that Job NAShandler is causing the problem.
I assume, you have some routine that executes the reports/codeunits on NAS.
During this process do you set "Timeout (Sec.)" option on the "Job Queue Entries" ?
If this is not correctly set in the code then it might cause the error message above.
It might be good in the code to set "Timeout (Sec.)"=0 just to be on the safe side.
Also did you create a separate NAV service just for NAS, if not I would recommend to do this
I hope this helps.
5
Answers
-
When exactly is your service stopping ? Are you able to start the service ?
Does it stops when you try to run RTC ?0 -
Hi,
you did not provide much information here e.g. NAV version CU, when does this message happen e.g. all the time or when you run particular task.
Anyhow if I look at the error message there is this partType: System.ArgumentOutOfRangeException
Message:
Time-out interval must be less than 2^32-2.
I think this is my best guess with limited information provided.
1 -
Well, service is starting normally, more that 10 client machines are connected to the server, and they work all day using that service. But, on random time (twice or three times in a day) service stops. First I've had NAS jobqueue set to this service and a log in EvenViewer shows that NASHandler is reason that this service stops. Cause of that, for the job I've created another service and this service now is used as a default service for Windows authentication.
0 -
Hmm @vremeni4 you are right!
These days I have big headache with setting Idle Client Time Out on this service. In NAV 2016 only setting this property to (example) 10 min. does not disconnect idle sessions who are idle 10 min.
I've read this topic
https://blogs.msdn.microsoft.com/nav/2016/06/24/configuring-client-timeout/ but this solution does not working for me.
There, the Microsoft people say that if I like to disconnect idle sessions, I need to change <add key="ClientServicesKeepAliveInterval" value="120"/> to value larger than I'm set in Idle Client property in C:\ProgramData\Microsoft\Microsoft Dynamics NAV\90\ClientUserSettings.config.
Also my property ReconectPeriod is set to MaxValue, and maybe this is causing stopping the service.
Please tell me if there's some more information that i can provide here about the error.
Best Regards
0 -
Hi,
So we know that Job NAShandler is causing the problem.
I assume, you have some routine that executes the reports/codeunits on NAS.
During this process do you set "Timeout (Sec.)" option on the "Job Queue Entries" ?
If this is not correctly set in the code then it might cause the error message above.
It might be good in the code to set "Timeout (Sec.)"=0 just to be on the safe side.
Also did you create a separate NAV service just for NAS, if not I would recommend to do this
I hope this helps.
5
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions