K2.Net 2003 Compile Error

K2 Add comments

The other day I implemented a method that required calling a SharePoint webservice from a K2.Net 2003 solution. K2 created an assembly wrapper for the webservice call. When it came to deploying the solution to our QA environment, my colleague Daniel Gocsman and myself ran into the following compilation error.

“Compile Error: Imports Line 0: Metadata file ‘Installation Path\Workflow\Bin\SiteData.dll’ could not be opened — ‘Version 2.0 is not a compatible version.’

Initially we were concerned about the SharePoint installation being different on the two environments, however we managed to rule that out. The next step was to see which version of the .Net Framework the K2 Server was configured to use. The first place to check was the server configuration in the K2.Net 2003 Service Manager Properties page on the Advanced tab. This correctly displayed the .Net Framework version as 2.0.50727.

After confirming the K2.Net Service Manager was set as expected, we started digging around the configuration files in the K2.Net 2003 installation Bin folder. Looking at the K2Studio.exe.config file we found the .Net Framework version used by the K2 Studio when compiling the workflow solution - it was set to use .Net 1.1. This proved to be the cause of the compilation issue. After updating it to the use .Net Framework 2.0 as the supported runtime version our solution compiled and exported as expected.

, ,

View blog reactions

Bookmark and Share Bookmark and Share

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in
404 Not Found

Not Found

The requested URL /getcode was not found on this server.


Apache/1.3.39 Server at fbnovc77.amhost.net Port 80