Service Hit error : A user callback threw an exception. Check the exception stack and inner exception to determine the callback that failed.

Hi ,

When user click sales order from one of our client PC system hang , and this one will auto stop the service on the server . so far this PC has this issue .

Nav Version 2015 build(8.00.37874)

event log details follows, Any idea?

Log Name: Application
Source: MicrosoftDynamicsNavServer$DynamicsNAV80
Date: 5/9/2015 2:22:27 PM
Event ID: 216
Task Category: (13)
Level: Error
Keywords: Classic
User: N/A
Computer: DB8R7R42.lap-laser.local
Description:
Server instance: DynamicsNAV80
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.InputQueueChannel1.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.ReliableChannelBinder1.Fault(Exception e)
at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.OnChannelFaulted(Object sender, EventArgs e)
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
at System.ServiceModel.Channels.TransportDuplexSessionChannel.OnFaulted()
at System.ServiceModel.Channels.CommunicationObject.Fault()
at System.ServiceModel.Channels.TransportDuplexSessionChannel.SendAsyncResult.Cleanup(Boolean success, Boolean lockTaken)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.SendAsyncResult.OnEnterComplete(Object state, Exception asyncException)
at System.Runtime.AsyncWaitHandle.AsyncWaiter.Invoke()
at System.Runtime.ActionItem.CallbackHelper.InvokeWithoutContext(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

Event Xml:
schemas.microsoft.com/.../event">](http://schemas.microsoft.com/win/2004/08/events/event)


216
2
13
0x80000000000000

10064
Application
DB8R7R42.lap-laser.local



Server instance: DynamicsNAV80
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.InputQueueChannel1.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.ReliableChannelBinder1.Fault(Exception e)
at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.OnChannelFaulted(Object sender, EventArgs e)
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
at System.ServiceModel.Channels.TransportDuplexSessionChannel.OnFaulted()
at System.ServiceModel.Channels.CommunicationObject.Fault()
at System.ServiceModel.Channels.TransportDuplexSessionChannel.SendAsyncResult.Cleanup(Boolean success, Boolean lockTaken)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.SendAsyncResult.OnEnterComplete(Object state, Exception asyncException)
at System.Runtime.AsyncWaitHandle.AsyncWaiter.Invoke()
at System.Runtime.ActionItem.CallbackHelper.InvokeWithoutContext(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


Don’t know the error, but I would first follow the “normal steps”, when trying to find such a technical error:

  1. If the error only occurs at one client pc, then what is the difference in this PC and any other PC’s?

  2. Does the error follows the PC or the user? Try to test with a different user on the same PC, and the same user on a different PC. Still getting the error?

Hello,

today the same problem happened to me after i’ve set up a dynmiacs nav instance.

The NAV service kept crashing at random times. It was driving me crazy.

I’ve searched for about 3-4 hours on the internet to find a solution to the problem. I coulnd’t find anything about this except this post.

I tried diferent approaches and finally found the problem. Maybe this helps some someone someday.

The problem is that Reconnect period was set to MaxValue in the instance settings. Just change it to some value and it solves the problem.

Before:

After:

pastedimage1478282967989v3.png

After changing it the problems stopped.

best regards,