Skip to main content

Launching a workflow on a single server install with: Windows Server 2008 R2, Sql Server 2008 R2, Visual Studio 2010 Ultimate & SharePoint 2010, falls over with the following error message:


 


Could not load file or assembly 'CSWinWF-af6c2871518849f786676303ebb2e057, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

HI There,


This is problaby due to the targeted framework for the visual studio solution, have a look at the help topic in the installed blackpearl help at


K2 Designers - > K2 for Visual Studio 2010 -> .Net Framework in K2 For Visual Studio 2010


hth


Murph


I tried to target to .NET 4.0 and still got error. Try to switch to .NET 3.5 and it will work.


Thanks.


You can configure K2 to support .net framework 4.0 by doing the tollowing:


 Modifying the "K2HostServer.config" file located in c:program filesk2blackpearlhostserverin folder.
Add the following key to the <appSettings> section of the K2HostServer.config file:
<add key="netfxversion" value="v4.0.30319" />


Restart K2HostServer.exe
a. You will be running in .NET 4 host, but will still execute .NET 3.5 code.
b. Although you can utilize .NET 4 based code constructs and references, you will not be able to use WF4 activities at this time


Thanks phung, it worked for me...


Reply