Skip to main content
Kofax

Could not load file or assembly DocumentFormat.OpenXml.dll error when attempting to configure a Document Generation activity

Article # 3032050 - Page views: 52

3032050

Question / Problem: 

When attempting to configure a Document Generate activity from a Word Template, getting the following error:

Could not load file or assembly 'DocumentFormat.OpenXml, Version=x.x.x.x, 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)

 

Answer / Solution: 

This error can be caused when the DocumentFormat.OpenXml.dll located in the ..\TotalAgility\Agility.Server.Web\bin\ is a different file version than what was installed with the version of KTA that is currently being used.

An example of this would be: The DocumentFormat.OpenXml.dll in KTA 7.4.1 is version 2.0.5022.0, but version 2.10.0.0 is located in the Agility Bin folder.

Backup current DocumentFormat.OpenXml.dll and revert to original file version.  No file reregister is required.

Applies to:  

Product Version
KTA All