A "Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies." Error Occurs When Starting A Business Process After Upgrading to Laserfiche Workflow 9.2.1.

June 1, 2015 | KB: 1013650
Workflow Suite 9.2.1

Summary

When starting a business process after upgrading from Workflow 9.2 to Laserfiche Workflow 9.2.1, you may receive the following error message

    Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Resolution

The upgrade process may not properly update a binding redirect to point to the latest version of System.Web.Mvc.dll.

Note: This issue does not affect new installations of Laserfiche Workflow 9.2.1.

Manually update the Web.config file in C:\Program Files\Laserfiche\Laserfiche Workflow 9\Web\Laserfiche.Workflow.Web.

  1. Browse to C:\Program Files\Laserfiche\Laserfiche Workflow 9\Web\Laserfiche.Workflow.Web and open the Web.config file with a text editor.
  2. look for the following block:

    <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
          <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
          <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
        </dependentAssembly>
      </assemblyBinding>
    </runtime>

  3. Change the newVersion attribute's value to 3.0.0.1:

    <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
          <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
          <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.1" />
        </dependentAssembly>
      </assemblyBinding>
    </runtime>

  4. Save the change to the Web.config file.