I am loading a dll into multiple AppDomains at the same time, but sometimes this error occurs
2018-03-12 16:38:47:377 SYS [Service] ExecutionManager(UpdateRunningEntries)(262) It was not possible to get the correct status for ProjectKeyFigures. Exception.Message: "Object '/90fe8696_0151_4ecb_8a5f_981be336df24/y67px9b26wwflgpukicaxrdv_6545.rem' has been disconnected or does not exist at the server."
2018-03-12 16:38:47:377 SYS [Service] ExecutionManager(UpdateRunningEntries)(262) System.Runtime.Remoting.RemotingException: Object '/90fe8696_0151_4ecb_8a5f_981be336df24/y67px9b26wwflgpukicaxrdv_6545.rem' has been disconnected or does not exist at the server.
2018-03-12 16:38:47:393 SYS [Service] ExecutionManager(UpdateRunningEntries)(262)
2018-03-12 16:38:47:393 SYS [Service] ExecutionManager(UpdateRunningEntries)(262) Server stack trace:
2018-03-12 16:38:47:393 SYS [Service] ExecutionManager(UpdateRunningEntries)(262) at System.Runtime.Remoting.Channels.ChannelServices.CheckDisconnectedOrCreateWellKnownObject(IMessage msg)
2018-03-12 16:38:47:393 SYS [Service] ExecutionManager(UpdateRunningEntries)(262) at System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(IMessage msg)
2018-03-12 16:38:47:393 SYS [Service] ExecutionManager(UpdateRunningEntries)(262)
2018-03-12 16:38:47:393 SYS [Service] ExecutionManager(UpdateRunningEntries)(262) Exception rethrown at [0]:
2018-03-12 16:38:47:393 SYS [Service] ExecutionManager(UpdateRunningEntries)(262) at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
2018-03-12 16:38:47:393 SYS [Service] ExecutionManager(UpdateRunningEntries)(262) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
2018-03-12 16:38:47:393 SYS [Service] ExecutionManager(UpdateRunningEntries)(262) at CommonLibrary.Interface.ISchedulerAction.get_Status()
I am requesting the Status
property at least 4 times a minute, but as you can see this is not enough, as the Exception still occurs
Will it help to raise the amount of reads?
Or does it not refresh the Lease-time, if I read on a Property?
And if it does not, do I then have to set the InitializeLifetimeService to return null
, or can I somehow renew the LeaseTime in the dll?
The object I am calling in the dll is MarshalByRefObject
and have an interface, where e.g. the Status
property is defined.
The Status
property is a model with a StatusEnum
and a timestamp for the last update of the status.