Hi all,
At a customer site I keep error 216 in the eventlog at random times during the day.
The errorlog says: No access to a disposed object.
Both SQL and NAV2018 are installed on the same server.
Microsoft says that: This event ID is used for various errors that occur when the Microsoft Dynamics NAV Server cannot start or establish a connection to the Dynamics NAV database on SQL Server.
https://docs.microsoft.com/en-us/dynamics-nav/microsoft-dynamics-nav-server-events
We have changed the hostname for SQL to localhost to prevent any network issues but that also did not solve the problem.
Can anyone point in the direction I should be looking?
Thanks is advance.
Answers
In addition to the question above, the following stacktrace keeps occuring.
Any help would be appreciated.
Message: <ii>Object reference not set to an instance of an object.</ii>
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.IsPermissionCheckNeeded(Boolean readingOnly)
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.VerifyPermissions(PermissionMask permissionMask, Boolean checkForEmptyTable)
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.IssueFindRequest(DataError errorLevel, Boolean reversed, FindType findType, Boolean useCache)
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.FindFirstRecord(DataError errorLevel)
at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALFindFirst(DataError errorLevel)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50002.GetDestinationForProduct_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50002.GetDestinationForProduct(NavText inputUID, NavText inputTray, NavText barcode)
at Microsoft.Dynamics.Nav.BusinessApplication.Page50010.Integrationa58a58BarcodeReceived_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Page50010.Integrationa58a58BarcodeReceived(NavVariant sender, NavDotNet e)
at Microsoft.Dynamics.Nav.BusinessApplication.Integration_Eventhandler_Page50010.BarcodeReceived(Object senderParam, Object eParam)
at Microsoft.Dynamics.Nav.Runtime.NavInteropEventHandlerBase.HandleEvent[TArg1,TArg2](Action`2 innerHandler, TArg1 arg1, TArg2 arg2)
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2147467261
</ii>
the message resource is present but the message is not found in the string/message table