Partner Zone
Partner Zone

Your company file session has expired.....

This thread is now closed to new comments.
Some of the links provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
Partner wilf58
12 Posts
Partner
Australia
wilf58
Partner

12Posts

0Kudos

0Solutions

Your company file session has expired.....

The data file of my client is server based running Windows Server 2013 R2. We have already increased the timeout feature in the Huxley Application Config file. But we are getting this message VERY frequently and in the middle of posting a transaction. There are no upgrades performed and inactivity is certainly not the problem when posting a journal.

 

Anything else we need to do as this isn't workable.

3 REPLIES 3
MYOB Product Team Haydes
6,147 Posts
MYOB Product Team
Australia
Haydes
MYOB Product Team

6147Posts

994Kudos

876Solutions

Re: Your company file session has expired.....

Hi @wilf58

 

In non-technical terms; The server can detect that AccountRight is not active when it's processing a transaction and take away resources to apply it to other programs that need it and then bring them back which causes the program to believe it was closed and throw the error.

 

Troubleshooting can be fairly difficult as it could either be the memory management issues or directly caused by the environment and works without error outside the Terminal Server. Where I'd start is to get a copy of the file outside of the Terminal Server and on a regular Workstation with AccountRight installed and replicate the same steps and see how this goes, if this goes without error we would want to check the Diagnostic Log (See the bottom of my post for where to find this)

 

 

I do know that a lot of work has been put into the next release of AccountRight to fix memory management issues that cause a lot of these errors and this may be fixed by the next update.

 

To find the Diagnostic Log:
1. Open your Start Menu
2. Type: %localappdata%
3. Open the %localappdata% folder:
temp.png
4. Open the MYOB Folder.
5. Open the AccountRight Folder.
6. Open the Version folder (E.g: 2018.4)
7. Open the Diagnostics Folder.
8. Copy the Huxley.Application_xxxx.log file to your Desktop to get to it easier.

In the Diagnostic Log you would want to look for "OutofMemory" to give an indicator on if this is the case. To make life easier, feel free to post the Diagnostic Log here so I can take a look as well. You can do this by clicking the Choose file button in the bottom left when replying to this thread.



Cheers,

Hayden
MYOB Product Team
Partner wilf58
12 Posts
Partner
Australia
wilf58
Partner

12Posts

0Kudos

0Solutions

Re: Your company file session has expired.....

Thanks Hayden - 

2019-02-11 10:42:33.7797,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Error,1,Unhandled error. : MYOB.Huxley.API.HuxleySecurityException: (MyDotUserNotLinked): ---> System.ServiceModel.FaultException: The company file login failed.

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at MYOB.Huxley.ServiceModel.ICompanyFileSts.AuthenticateUsingMydot(Guid companyFileId, String mydotIdentity)
at MYOB.Huxley.ServiceModel.CompanyFileAuthenticator.Authenticate(ITokenInfo oAuthTokenInfo, ICloudContext cloudContext)
at MYOB.Huxley.ServiceModel.HuxleyOAuthMessageInspector.BeforeSendRequest(Message& request, IClientChannel channel)
at System.ServiceModel.Dispatcher.ImmutableClientRuntime.BeforeSendRequest(ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.PrepareCall(ProxyOperationRuntime operation, Boolean oneway, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [1]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at MYOB.Huxley.Service.Gateway.API.IGatewayService.Dispatch(String name, Object[] arguments)
at MYOB.Huxley.Service.Proxy.Services.ProxyLicenceService.GetCompanyFileLicence()
at MYOB.Huxley.BusinessLayer.Core.CompanyFile.get_Licence()
at MYOB.Huxley.ServiceModel.Proxy.HuxleyEndPointAddress.GetCloudEndPointAddress(IApplication application, ICompanyFile companyFile, ICloudContext cloudContext, String serviceName, String methodName)
at MYOB.Huxley.Service.Proxy.Services.ProxyServiceBase.GetEndPointAddress(IServiceContext serviceContext, String serviceName, String methodName)
at MYOB.Huxley.Service.Proxy.Services.ProxyServiceBase.CreateService(String serviceName, String methodName)
at MYOB.Huxley.Service.Proxy.Services.ProxyLoginService.LoginWithMydot(String myDotUsername, Nullable`1 sessionId)
at MYOB.Huxley.BusinessLayer.Core.CompanyFile.AuthenticateLoginSession(String myDotUserName)
--- End of inner exception stack trace ---
at MYOB.Huxley.BusinessLayer.Core.CompanyFile.ProcessLoginFaultException(FaultException ex)
at MYOB.Huxley.BusinessLayer.Core.CompanyFile.AuthenticateLoginSession(String myDotUserName)
at MYOB.Huxley.BusinessLayer.Core.CompanyFile.Login(String myDotUserName)
at MYOB.Huxley.UI.Model.Facades.Common.UICompanyFile.<>c__DisplayClass17.<Login>b__16(IIntCompanyFile x, String mname)
at MYOB.Huxley.UI.Decorators.DecoratorSiteExecutor.ExecuteWithReturn[TDecorate,TParm1,TReturn](TDecorate decoratedInstance, Func`3 execute, String siteName, IUIDecoratorFaultHandler faultHandler, TParm1 parm1, Int32 siteDepth, DecoratorType decoratorType, Type decoratingType)
2019-02-11 11:40:43.3761,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,7,This error should be handled: (Unknown):
2019-02-11 11:40:43.4471,MYOB.Huxley.UI.Controllers.Helpers.AccessInterruptedExceptionHelper,Warn,1,Login session has timedout due to inactivity
2019-02-11 11:42:17.9231,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,18,This error should be handled: (Unknown):
2019-02-11 11:44:18.6851,MYOB.Huxley.Application.FatalExceptionHandler,Fatal,1,Service method execution aborted - DecoratorAbortException. : MYOB.Huxley.API.HuxleySessionTimeoutException: (Unknown):

Server stack trace:
at MYOB.Huxley.ServiceModel.ErrorHandling.ExceptionHandingClientMessageInspector.System.ServiceModel.Dispatcher.IClientMessageInspector.AfterReceiveReply(Message& reply, Object correlationState)
at System.ServiceModel.Dispatcher.ImmutableClientRuntime.AfterReceiveReply(ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at MYOB.Huxley.Service.Gateway.API.IGatewayService.Dispatch(String name, Object[] arguments)
at MYOB.Huxley.Service.Proxy.Services.ProxyPeriodicScheduleService.Validate(Object entity, IEnumerable`1 propertyNames)
at MYOB.Huxley.UI.Decorators.Services.DecoratorServiceMYOBHuxleyAPIServicesRecurringTransactionIPeriodicScheduleService.MYOB.Huxley.API.Services.Core.IValidator.Validate(Object entity, IEnumerable`1 propertyNames)
2019-02-11 11:45:17.9291,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,16,This error should be handled: (Unknown):
2019-02-11 11:46:27.7191,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,9,This error should be handled: (Unknown):
2019-02-11 11:46:27.7471,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,19,This error should be handled: (Unknown):
2019-02-11 11:46:44.8121,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,8,This error should be handled: (Unknown):
2019-02-11 11:46:44.8351,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,7,This error should be handled: (Unknown):
2019-02-11 11:46:55.4251,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,1,This error should be handled: (Unknown):
2019-02-11 11:49:22.4061,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Error,5,Unhandled error. : MYOB.Huxley.API.HuxleyApplicationException: (Unknown): CompanyFile Not initialised.

Server stack trace:
at MYOB.Huxley.ServiceModel.ErrorHandling.ExceptionHandingClientMessageInspector.System.ServiceModel.Dispatcher.IClientMessageInspector.AfterReceiveReply(Message& reply, Object correlationState)
at System.ServiceModel.Dispatcher.ImmutableClientRuntime.AfterReceiveReply(ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at MYOB.Huxley.Service.Gateway.API.IGatewayService.Dispatch(String name, Object[] arguments)
at MYOB.Huxley.Service.Proxy.Services.ProxyCacheRefreshService.GetCompositeObject(IEnumerable`1 setVersions)
at MYOB.Huxley.UI.Decorators.Services.DecoratorServiceMYOBHuxleyApplicationServicesContainerAPIICacheRefreshService.MYOB.Huxley.ApplicationServices.Container.API.IObjectContainerService<MYOB.Huxley.ApplicationServices.Container.API.ICacheRefresh>.GetCompositeObject(IEnumerable`1 setVersions)
2019-02-11 11:50:20.8140,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,1,This error should be handled: (Unknown):
2019-02-11 11:50:20.8150,MYOB.Huxley.UI.Controllers.Helpers.AccessInterruptedExceptionHelper,Warn,1,Login session has timedout due to inactivity
2019-02-11 11:50:38.9960,MYOB.Huxley.Application.FatalExceptionHandler,Fatal,1,Service method execution aborted - DecoratorAbortException. : MYOB.Huxley.API.HuxleySessionTimeoutException: (Unknown):

Server stack trace:
at MYOB.Huxley.ServiceModel.ErrorHandling.ExceptionHandingClientMessageInspector.System.ServiceModel.Dispatcher.IClientMessageInspector.AfterReceiveReply(Message& reply, Object correlationState)
at System.ServiceModel.Dispatcher.ImmutableClientRuntime.AfterReceiveReply(ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at MYOB.Huxley.Service.Gateway.API.IGatewayService.Dispatch(String name, Object[] arguments)
at MYOB.Huxley.Service.Proxy.Services.ProxyRecordJournalContainerService.ProcessContainer(IRecordJournalContainer container, IEnumerable`1& results, Nullable`1& updatedId)
at MYOB.Huxley.UI.Decorators.Services.DecoratorServiceMYOBHuxleyApplicationServicesContainerAPIIRecordJournalContainerService.MYOB.Huxley.ApplicationServices.Container.API.IRecordJournalContainerService.ProcessContainer(IRecordJournalContainer container, IEnumerable`1& results, Nullable`1& updatedId)
2019-02-11 11:50:39.1940,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,1,This error should be handled: (Unknown):
2019-02-11 12:01:58.3210,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,1,This error should be handled: (Unknown):
2019-02-11 12:01:58.3770,MYOB.Huxley.UI.Controllers.Helpers.AccessInterruptedExceptionHelper,Warn,1,Login session has timedout due to inactivity
2019-02-11 12:02:00.1050,MYOB.Huxley.Application.FatalExceptionHandler,Fatal,1,Service method execution aborted - DecoratorAbortException. : MYOB.Huxley.API.HuxleySessionTimeoutException: (Unknown):

Server stack trace:
at MYOB.Huxley.ServiceModel.ErrorHandling.ExceptionHandingClientMessageInspector.System.ServiceModel.Dispatcher.IClientMessageInspector.AfterReceiveReply(Message& reply, Object correlationState)
at System.ServiceModel.Dispatcher.ImmutableClientRuntime.AfterReceiveReply(ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at MYOB.Huxley.Service.Gateway.API.IGatewayService.Dispatch(String name, Object[] arguments)
at MYOB.Huxley.Service.Proxy.Services.ProxyRecurringTransactionScheduleContainerService.ProcessContainer(IRecurringTransactionScheduleContainerBase container, IEnumerable`1& results)
at MYOB.Huxley.UI.Decorators.Services.DecoratorServiceMYOBHuxleyApplicationServicesContainerAPIIRecurringTransactionScheduleContainerService.MYOB.Huxley.ApplicationServices.Container.API.IObjectContainerProcessService<MYOB.Huxley.ApplicationServices.Container.API.IRecurringTransactionScheduleContainerBase>.ProcessContainer(IRecurringTransactionScheduleContainerBase container, IEnumerable`1& results)
2019-02-11 12:02:00.2340,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,7,This error should be handled: (Unknown):
2019-02-11 12:02:00.3990,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,1,This error should be handled: (Unknown):
2019-02-11 12:05:48.4040,MYOB.Huxley.RF.Core.Services.AppService.RFLogService,Error,11, : System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort()
at MYOB.Huxley.RF.Framework.UI.ProgressWindowHelper.Close(Boolean final)
2019-02-11 12:07:13.7120,MYOB.Huxley.RF.Core.Services.AppService.RFLogService,Error,16, : System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort()
at MYOB.Huxley.RF.Framework.UI.ProgressWindowHelper.Close(Boolean final)
2019-02-11 12:07:14.7750,MYOB.Huxley.MsOffice.Integration.OutlookEmail.OutlookEmailProvider,Error,1,Failed to get Outlook application: Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE)) : System.Runtime.InteropServices.COMException (0x800401E3): Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE))
at System.Runtime.InteropServices.Marshal.GetActiveObject(Guid& rclsid, IntPtr reserved, Object& ppunk)
at System.Runtime.InteropServices.Marshal.GetActiveObject(String progID)
at MYOB.Huxley.MsOffice.Integration.OutlookEmail.OutlookEmailProvider.SendMessage(String emailAddresses, String subject, String body, EmailResourceType resourceType, String documentNumber, IEnumerable`1 attachments)
2019-02-11 12:07:56.8309,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,1,This error should be handled: (Unknown):
2019-02-11 12:07:56.8309,MYOB.Huxley.UI.Controllers.Helpers.AccessInterruptedExceptionHelper,Warn,1,Login session has timedout due to inactivity
2019-02-11 12:07:59.4499,MYOB.Huxley.Application.FatalExceptionHandler,Fatal,1,Service method execution aborted - DecoratorAbortException. : MYOB.Huxley.API.HuxleySessionTimeoutException: (Unknown):

Server stack trace:
at MYOB.Huxley.ServiceModel.ErrorHandling.ExceptionHandingClientMessageInspector.System.ServiceModel.Dispatcher.IClientMessageInspector.AfterReceiveReply(Message& reply, Object correlationState)
at System.ServiceModel.Dispatcher.ImmutableClientRuntime.AfterReceiveReply(ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at MYOB.Huxley.Service.Gateway.API.IGatewayService.Dispatch(String name, Object[] arguments)
at MYOB.Huxley.Service.Proxy.Services.ProxySaleEventService.UpdateDocumentAction(IEnumerable`1 eventIds, DocumentAction documentActionPerformed)
at MYOB.Huxley.UI.Decorators.Services.DecoratorServiceMYOBHuxleyAPIServicesAccountingIIntSaleEventService.UpdateDocumentAction(IEnumerable`1 eventIds, DocumentAction documentActionPerformed)
2019-02-11 12:07:59.6389,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,1,This error should be handled: (Unknown):
2019-02-11 12:12:13.3479,MYOB.Huxley.RF.Core.Services.AppService.RFLogService,Error,9, : System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort()
at MYOB.Huxley.RF.Framework.UI.ProgressWindowHelper.Close(Boolean final)
2019-02-11 12:54:43.3579,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,25,This error should be handled: (Unknown):
2019-02-11 13:02:43.3269,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,27,This error should be handled: (Unknown):
2019-02-11 13:10:43.3209,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,16,This error should be handled: (Unknown):
2019-02-11 13:18:43.3180,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,19,This error should be handled: (Unknown):
2019-02-11 13:26:43.3340,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,16,This error should be handled: (Unknown):
2019-02-11 13:34:43.3399,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,10,This error should be handled: (Unknown):
2019-02-11 13:42:43.3419,MYOB.Huxley.UI.Decorators.DecoratorFaultProcessor,Warn,5,This error should be handled: (Unknown):

MYOB Product Team Haydes
6,147 Posts
MYOB Product Team
Australia
Haydes
MYOB Product Team

6147Posts

994Kudos

876Solutions

Re: Your company file session has expired.....

Hi @wilf58

 

Thanks for the log, looks like it's related to what I mentioned before with the Server stopping AccountRight as I can see this event:

 

System.Threading.ThreadAbortException: Thread was being aborted

 

Looks like AccountRight's thread has been suspended and resumed which is throwing that Session Timeout error. I'd be trying that troubleshooting method I mentioned before about getting a copy fo the datafile on a standalone computer that's unconnected to the RDS environment and then see if this gives us the same grief. Keep me posted on how you go.



Cheers,

Hayden
MYOB Product Team
Didn't find your answer here?
Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post