LEGACY CONTENT
This article refers to legacy products, components or features. Therefore, the content in this article is offered "as is" and will no longer be updated. 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


After updating and deploying a process in K2 Designer for Visual Studio with a web reference, the following error occurs at runtime because the DLL (*.dll) referenced for the web service cannot be found or is missing:
Could not load file or assembly ’[assembly name], Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.

The Hotfix contained within the latest K2 blackpearl 0807 Update resolves the error that may occur at runtime, if the process references an assembly stored in a directory path relative to the directory path of it's project.

Error Scenario Steps


  1. Create a new ASP.NET Web Service
  2. Add a simple method to the web service, for example:
    [WebMethod]
    public int add(int a,int b)
     {
      return (a+b);
     }
  3. Deploy the web service from Visual Studio
  4. Create a new process and add the web service as a web reference
  5. Use the method in a server event and deploy
  6. Run the process and it will finish successfully
  7. Close K2 Designer for Visual Studio and reopen it
  8. Re-deploy and run the process
  9. The error will be displayed

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.