(FileLoadException) File Load Exception While calling K2 Methods

While using a class library method which has references to K2 Assemblies we might see a FileLoadException while debugging in Visual Studio as shown in below Screen shot.

fileloadexception

Just use this attribute useLegacyV2RuntimeActivationPolicy=”true” in the app.config <startup> element of the calling application and then rebuild which should fix the issue.

Sample app.config below

<?xml version=”1.0″ encoding=”utf-8″ ?>

<configuration>

<startup useLegacyV2RuntimeActivationPolicy=”true”>

<supportedRuntime version=”v4.0″ sku=”.NETFramework,Version=v4.5.2″ />

</startup>

</configuration>

Advertisements

Author: Vijay

I'm a K2 Certified Developer, helping teams to automate, design, develop & maintain business process applications connecting across multiple platforms with multiple technologies.

One thought on “(FileLoadException) File Load Exception While calling K2 Methods”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s