A "Could not compile MOF file" Error Occurs During Upgrade to Laserfiche Server 8.2

January 3, 2011 | KB: 1012728
Laserfiche 8.2

Summary

When upgrading from Laserfiche Server 8.1 to Laserfiche Server 8.2, you may receive the following error message:

Could not compile MOF file. C:\Program Files\Laerfiche\Server\remove.mof. HRESULT: 1

Cause

If certain elements of the Laserfiche Server installation were not correctly configured or were removed, the upgrade from Laserfiche Server 8.1 to 8.2 will not be able to complete correctly. This issue only affected Laserfiche Server 8.2 installations downloaded before January 4, 2011, with a setup.exe file of version 8.2.0.605 or lower.

Resolution

This issue has been resolved in Laserfiche Server installations released after January 4, 2011. The issue will not be encountered when using Laserfiche Server installation packages with a setup.exe of version 8.2.0.606 or higher. If you have not yet performed the upgrade, please download the most recent version of the Laserfiche Server installation.

Workaround

Correct the erroneous files using the Managed Object Format (MOF) compiler before attempting the upgrade again. (This workaround is only necessary if you upgraded using a version of the Laserfiche Server inistallation package released before January 4, 2011.)

  1. On the Laserfiche Server computer, open a command line interface. In most Windows installations, you can open the command line by opening the Start menu and selecting Accessories and then Command Prompt.
  2. Navigate to the Laserfiche Server directory. This will usually be located at C:\Program Files\Laserfiche\Server.
  3. Type the following and press ENTER:

    mofcomp LFFTSEvents.mof

  4. When the process has completed, continue with the upgrade normally.