Skip to main content
Kofax

KTA 7.x - Why am I getting a This Assembly Must be Fully Trusted error?

Article # 307467 - Page views: 63

307467

Question / Problem: 

I have some .NET code that calls the KTA SDK.  This works correctly in an On-Premise system.  When executed in an On-Premise Multi-Tenant environment, it fails.

Why am I getting a This Assembly Must be Fully Trusted error?

Answer / Solution: 

TotalAgility On-Premise Multi-Tenancy and TotalAgility Azure do not support using the TotalAgility SDK API from custom .NET assemblies executed through .NET activities or .NET form actions because the custom .NET assemblies run in a non-trusted sandbox in TotalAgility On-premise Multi-Tenancy and TotalAgility Azure.  The assemblies must be run in a trusted sandbox.

To resolve this, here are 2 possible options:

  1. Redesign the DLL to call the tenant web services instead of invoking the SDK.
  2. Execute the local DLL on the Integration Server. To do this, you would need to recreate the node in the Designer on the Integration Server (This would mean it would execute on the IS thread pool).

Additionally, be aware that if your custom DLL uses methods that write to the underlying file system, these methods aren’t permitted in an OPMT environment.  For example, XmlDocument.Save() and CaptureDocumentService.GetDocumentAsFile(). 

 

From the KTA API Help:

  • TotalAgility On-premise Multi-Tenancy and TotalAgility Azure do not support using the TotalAgility SDK API from custom .NET assemblies executed through .NET activities or .NET form actions because the custom .NET assemblies run in a non-trusted sandbox in TotalAgility On-premise Multi-Tenancy and TotalAgility Azure.
  • You can directly call the TotalAgility SDK API from the .NET activities or .NET actions in TotalAgility On-premise Multi-Tenancy and TotalAgility Azure.

Applies to:  

Product Version Category
TotalAgility OPMT 7.x  

 

Author:  Steve Tanaka