Code Fix: K2 Designer for Visual Studio is unable to compile a project that contains a K2.net 2003 Artifact(s)

  • 16 February 2021
  • 0 replies
  • 4 views

Userlevel 3
Badge +8
 

Code Fix: K2 Designer for Visual Studio is unable to compile a project that contains a K2.net 2003 Artifact(s)

KB000400

PRODUCT
K2 blackpearl

SEE ALSO K2 blackpearl Downloads Page

LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

 

Introduction

When K2.net 2003 artifacts are used in a K2 Designer for Visual Studio project and later the user attempts to deploy the process, K2 Designer for Visual Studio is unable to compile the K2.net 2003 Artifacts.

 

 

Error Scenario

Note: The steps below describe one scenario under which this error may occur. They are simplified and not all steps are shown or described.
  1. Open K2 Designer for Visual Studio
  2. Create a new K2 project that has one process
  3. Drag and add a new K2.net 2003 Activity onto the design canvas
  4. Connect a line from the Start activity to the new K2.net 2003 Activity
  5. Select the K2.net 2003 Default Server event and add it to the activity
  6. Build the process, the error described above will be returned

If the user then views the code for this K2.net 2003 Server Event as shown above, the following will be seen:
public void Main(ServerEventContext K2)
{
  K2.Synchronous = true;
}

The issue is caused by the code view that does not display any class references or namespaces.

 

 

Error Messages

When K2.net 2003 artifacts are used in a K2 Process, the user will receive the following error when attempting to compile and deploy the process. This applies to new items and existing K2.net 2003 Artifacts imported into K2 Designer for Visual Studio that have been upgraded.
Expected class, delegate, enum, interface, or struct C:Documents and Settingsk2studentLocal SettingsTempExtenderProjectsCSWinWF-f3967973aafd4628aecca3469dbb4015EventItem_e961c0616b7f46698827937752b6a0fb.cs 5 8 VSCSWinWF-f3967973aafd4628aecca3469dbb4015

 

 

Error Resolution

This Hotfix is contained within the latest K2 blackpearl 0807 Update. Install the update package to resolve the error.

The latest K2 blackpearl 0807 Update is available as an independent installation package which can be found here: https://portal.k2.com/downloads/bp/default.aspx

 


0 replies

Be the first to reply!

Reply