Overview / Work Notes
Logging in to or opening a document vault stops on an error where the error dialog indicates that 'Opening file "<filepath>" failed. (0x8004005E)' followed by
'Unspecified error. (2) (0x80004005)' or
'File "<filepath>" not found. (0x80043427)'
Figure 1: Opening file failed error dialog
due to missing or corrupt locally cached document vault application data. In an example where your vault has the GANTT Chart View app installed and one of its' files are missing you will encounter an error dialog where the detailed error listing shows:
CoShellView.cpp, 5495, Opening file "C:\Program Files\M-Files\19.11.8402.0\Client\Apps\{CC5E4B31-5C70-4916-AD3A-6B669D6BB6AD}\31\{40034A4E-6066-4BFF-8F76-FF3E5A81FD0B}\json2.js" failed. (0x8004005E)
CoShellScriptHost.cpp, 440, Opening file "C:\Program Files\M-Files\19.11.8402.0\Client\Apps\{CC5E4B31-5C70-4916-AD3A-6B669D6BB6AD}\31\{40034A4E-6066-4BFF-8F76-FF3E5A81FD0B}\json2.js" failed. (0x8004005E)
CoShellScriptHost.cpp, 186, Opening file "C:\Program Files\M-Files\19.11.8402.0\Client\Apps\{CC5E4B31-5C70-4916-AD3A-6B669D6BB6AD}\31\{40034A4E-6066-4BFF-8F76-FF3E5A81FD0B}\json2.js" failed. (0x8004005E)
ScriptSiteContainer.cpp, 73, Opening file "C:\Program Files\M-Files\19.11.8402.0\Client\Apps\{CC5E4B31-5C70-4916-AD3A-6B669D6BB6AD}\31\{40034A4E-6066-4BFF-8F76-FF3E5A81FD0B}\json2.js" failed. (0x8004005E)
CoClientScriptSite.cpp, 488, Opening file "C:\Program Files\M-Files\19.11.8402.0\Client\Apps\{CC5E4B31-5C70-4916-AD3A-6B669D6BB6AD}\31\{40034A4E-6066-4BFF-8F76-FF3E5A81FD0B}\json2.js" failed. (0x8004005E)
CoClientScriptSite.cpp, 488, File "C:\Program Files\M-Files\19.11.8402.0\Client\Apps\{CC5E4B31-5C70-4916-AD3A-6B669D6BB6AD}\31\{40034A4E-6066-4BFF-8F76-FF3E5A81FD0B}\json2.js" not found. (0x80043427)
CrtFile.cpp, 61, File "C:\Program Files\M-Files\19.11.8402.0\Client\Apps\{CC5E4B31-5C70-4916-AD3A-6B669D6BB6AD}\31\{40034A4E-6066-4BFF-8F76-FF3E5A81FD0B}\json2.js" not found. (0x80043427)
(M-Files 19.11.8402.0)
Solution / Workaround
The "Opening the file failed" error can be resolved by removing locally cached app files and re-downloading them at the next login. Follow these steps to carry out this task:
1. Check the folder path indicated in the error message, e.g. C:\Program Files\M-Files\19.11.8402.0\Client\Apps\{CC5E4B31-5C70-4916-AD3A-6B669D6BB6AD}\31\{40034A4E-6066-4BFF-8F76-FF3E5A81FD0B}\json2.js
2. Within that folder path browse up to the folder level which includes a) the unique vault identifier "{CC5E…" and b) your M-Files user ID "31".
Example: C:\Program Files\M-Files\19.11.8402.0\Client\Apps\{CC5E4B31-5C70-4916-AD3A-6B669D6BB6AD}\31\
3. Move the nested folder "{40034A…}" therein to another location for a backup or delete the folder altogether
4. Re-login to your document vault and click on "Allow" when asked to allow reloading of the missing vault application
Figure 2: Step 3 - Delete the faulty vault app data folder
Figure 3: Step 4 - Click on "Allow" when asked to allow running the vault application
Figure 4: Settings > Applications via the menu bar will indicate the running vault app
