Hi All,
How to run debugger in Multitenant environment.
From CSIDE degubber breakpoint (F9) attached, I can open session page through RTC and start the degugging. But after this debugger page will not catch the code execution. I tried with Enable Debugging option in NAV Administration as well as DB_Ownar in SQL. The page crash after I refresh the debugger page with error : A fatal debugger error has occurred. I don't know if this is a limitation with Multitenant environment.
Thanks in advance.
Event log:
Server instance: DynamicsNAV90
Tenant ID:
User: ALLETECHNO\msinha
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavDebuggerFatalException
Message: A fatal debugger error has occurred.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(ITreeObject obj, String methodName, Object[] args)
at Microsoft.Dynamics.Nav.Service.NSFormApplicationCode.Invoke(NavSession session)
at SyncInvokeInvokeApplicationMethod(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.RunInTransactionCombinator(ServiceOperation innerOperation, NSServiceBase serviceInstance, Object[] inputs, Object[]& outputs)
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.TransientErrorRetryCombinator(ServiceOperation innerOperation, NSServiceBase serviceInstance, 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
Type: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
StackTrace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(ITreeObject obj, String methodName, Object[] args)
Source: mscorlib
HResult: -2146232828
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavDebuggerFatalException
Message: A fatal debugger error has occurred.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.ALDebugger.get_Instance()
at Microsoft.Dynamics.Nav.Runtime.DebuggerCallStackDataProvider.GetAllItems(Boolean& isOrderedByPrimaryKeyAscending)
at Microsoft.Dynamics.Nav.Runtime.EagerVirtualDataProvider.Find(FindProviderRequest request, Func`1 onlyCurrentKeyNeededForNextRow)
at Microsoft.Dynamics.Nav.Runtime.DataAccess.InnerFind(FindCacheRequest request, Boolean fromPosition, Func`1 onlyCurrentKeyNeededForNextRow)
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.IssueFindRequest(DataError errorLevel, Boolean reversed, FindType findType, Boolean useCache)
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.FindLastRecord(DataError errorLevel)
at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALFindLast(DataError errorLevel)
at Microsoft.Dynamics.Nav.Runtime.NavForm.NewRecord(Boolean belowXRec)
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2146233088
Type: System.InvalidOperationException
Message: Not an application method.
HResult: -2146233079
Type: System.InvalidOperationException
Message: Not an application method.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.MethodSourceInfo.GetSourceSpanAttribute(Type navMethodScopeType)
at Microsoft.Dynamics.Nav.Runtime.MethodSourceInfo.GetCurrentStatementSourceSpan(NavMethodScope scope)
at Microsoft.Dynamics.Nav.Runtime.Debugger.DebugEnvironment.<BuildStackTrace>b__1e(NavMethodScope scope)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Microsoft.Dynamics.Nav.Runtime.Debugger.DebugEnvironment.PerformBreakCallback(NavMethodScope methodScope, Exception exception)
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2146233079
Thanks,
Manish Sinha
0
Answers
This is test environment where all 3-Tier (NAV Server, RTC & SQL Server) in same box.