Overview
When running M-Files Desktop Client on Windows RDS and having a new session, MFStatus works ok. When user disconnects from the session and reconnects again, MFStatus is still running but no longer accessible. Disconnect/reconnect means that the session is left open on the RDS server. The user just disconnects and then reconnects to his session. The session can be disconnected by ex: a session timeout, short internet interruption, end user action where they choose to close RDS session etc...
Also, the error “The MFStatus application is not running. (0x8004005B)” appears on the screen.
Log out / log in seems to work as opposed to disconnect / reconnect i.e., logging out from the session and logging back in doesn’t make MFStatus inaccessible.
Example use case: Running MF Client on Windows 2019 RDS
When running M-Files Desktop Client on Windows 2019 RDS MFStatus was working normally in new session. When disconnecting/reconnecting from and to the session, MFStatus was still running but it was no longer accessible.
The following error was observed by the user:
CoDropTarget.cpp, 554,
CoDropTarget.cpp, 943, The MFStatus application is not running. (0x8004005B)
ShellFolderDataTransfer.cpp, 87, The MFStatus application is not running. (0x8004005B)
ShellFolderDataTransfer.cpp, 762, The MFStatus application is not running. (0x8004005B)
ShellFolderDataTransfer.cpp, 805, The MFStatus application is not running. (0x8004005B)
VaultDocumentOperations.cpp, 2265, The MFStatus application is not running. (0x8004005B)
CoVaultMountingDocumentOperations.cpp, 4932, The MFStatus application is not running. (0x8004005B)
(M-Files 22.5.11436.3)
As soon as the session is disconnected (by a session timeout, short internet interruption, end user action where they choose to close RDS session etc...) M-Files did not work for the users until they logged out and logged in again. So, by disconnecting a user, the RDS continues to run normally. The user is also not logged out. Thus, all services including M-Files continue to run normally until the user logs back in and the session is active again.
Solution
There is a registry setting called CitrixKeepMFStatusAfterDisconnecting and can be found in section 5.1.2 of this document. Even though, the registry setting mentions Citrix, it also applies to RDS environments.
Key: HKEY_LOCAL_MACHINE\Software\Motive\M-Files\<version>\Client\MFClient
Value name: CitrixKeepMFStatusAfterDisconnecting
Value type: REG_DWORD
Description: By default, the user-specific MFStatus.exe process is shut down when the user is disconnected from the XenApp server. To change the default behavior, you must specify this setting on each XenApp server. Default value: 0 - MFStatus.exe is shut down after disconnecting from the XenApp server. Valid values: 0 - MFStatus.exe is shut down after disconnecting from the XenApp server; 1 - MFStatus.exe is not shut down after disconnecting from the XenApp server.
Remarks: You must be running M-Files 21.8.10440.0 or later. You do not need to restart M-Files Client after applying the setting.
Regarding the above use case:
It was proposed to implement that registry key with the value set to 1 (it had to be set on all RDS servers) where the user should log out and log in (not disconnect and connect) at least once if it does not have effect immediately.
Result: Implementing the registry entry had a positive impact and M-Files ran even after disconnecting.
