Overview
In some cases, an error similar to the one below may occur when installing an application into an M-Files document vault (line numbers may vary depending on the M-Files version).
DlgClientApplications.cpp, 539, The structure of the application is invalid. (0x800408E2)
Item_DocumentVault.cpp, 1742, The structure of the application is invalid. (0x800408E2)
RPCMethodCallWithRetry.h, 153, The structure of the application is invalid. (0x800408E2)
RPCMethodCallWithRetry.h, 153, The structure of the application is invalid. (0x800408E2)
RPCClientScript.cpp, 982, The structure of the application is invalid. (0x800408E2)
RPCClientScript.cpp, 406, The structure of the application is invalid. (0x800408E2)
RPCClientScriptHelper.cpp, 639, The structure of the application is invalid. (0x800408E2)
RPCClientScriptHelper.cpp, 903, The structure of the application is invalid. (0x800408E2)
RPCClientScriptHelper.cpp, 903, Access is denied. (0x80070005)
AppFolderFuncs.cpp, 426, Access is denied. (0x80070005)
(M-Files <version> <timestamp>)
Solution
First, check that there isn't an issue with the application installation package itself. If it, e.g., installs fine in another system, it's likely the installation package is valid.
The "Access is denied" error indicates that something is blocking the writing of temporary folders to the applications installation folder. The culprit has often been antivirus software if the server-side antivirus exclusions haven't been made according to our instructions. Make sure to follow the instructions.
This could also be due to insufficient Windows rights or some other interfering process. Process Monitor log may help determine what exactly is interfering with installation. If you cannot otherwise find a solution, you may contact M-Files Support.
