Skip to main content
Kofax

Kofax TotalAgility - Failed to compile process assembly. The compiler reported: Could not find file 'C:\ProgramData\Kofax\TotalAgility\Generated Assemblies\Process Assemblies\Temp\xxx.dll'

Applies To

  • TotalAgility 7.3
  • TotalAgility 7.4
  • TotalAgility 7.5
  • TotalAgility 7.6
  • TotalAgility 7.7
  • TotalAgility 7.8

Problem

A job suspends or fails evaluation due to the below error.

Failed to compile process assembly. The compiler reported: Could not find file 'C:\ProgramData\Kofax\TotalAgility\Generated Assemblies\Process Assemblies\Temp\060cc592245744968768a2824c8bff56.dll'.
 

When you check the application event log, you see an APPCRASH for the csc.exe process at the same time as the above error.

Solution

KTA uses the csc.exe process to build assemblies that will handle KTA business process logic.  Since this has crashed, the process assembly cannot be generated and the above error is thrown.

To resolve this error, do the following:

  1. Stop all instances of IIS and the KTA Core Worker Service
  2. Backup the folder C:\ProgramData\Kofax\TotalAgility\Generated Assemblies\Process Assemblies 
  3. Delete the contents of the folder
  4. Start all instances of IIS and the KTA Core Worker Service

The next time a job runs, it will create the process assembly if one doesn't already exist.