vb.netdll-referencekofax

Reference VB.NET DLL in Kofax Document Validation Script


We are working on a validation script for Kofax Capture 9.0 / 10.0 in VB.NET 3.5. We know how to create a script using the Admin Module, and how to get it operational.

The problem is that we need to reference a dll, located on a remote machine. (GAC is no option) This dll holds abstract classes we need in each validation script.

Even when putting the dlls locally (copy local), the Validation Module (index.exe) immediately throws the "cannot find reference" exception, even though the project compiled perfectly.

I guess the basic question comes down to: where do we put the dlls, in order for the Validation Module to find them?


Solution

  • We found a solution: add all library files as "links" to the project. (Add --> Existing File --> small arrow next to "Add" --> Add as Link) This ensures the files are compiled when you build the project. The Kofax Validation Module can now find the files, whereas when referencing the file, it could not. Why it could not, remains a mystery...