An "Could not load file or assembly 'LfPEPClientLib' or one of its dependencies. An attempt was made to load a program with an incorrect format." Error Occurs After Opening Forms 9.1 or Web Admin 9.1 When It Is Installed On A 64-Bit Machine.

July 22, 2014 | KB: 1013388
Laserfiche Forms 9.1, Web Administration Console 9.1

Summary

This error may appear for users trying to access Laserfiche Forms 9.1 or Web Administration Console 9.1 if it is installed on a 64-bit machine and the application pools in IIS are set to enable 32-bit applications by default.

Cause

If Enable 32-Bit Applications is set to True in the Application Pool Defaults window in IIS, this setting will be True for the FormsAppPool and WebAdminAppPool by default. On 64-bit machines, this setting should be False.

Workaround

  1. On the machine where Forms 9.1 or Web Administration Console 9.1 is installed, open IIS Manager.
  2. Expand the server and select Application Pools.
  3. Right-click the FormsAppPool or WebAdminAppPool and click Advanced Settings....
  4. In the drop-down list next to Enable 32-Bit Applications, select False.
  5. Click OK to close the dialog box.