<{{Subtitle_Weight}} class="prominent-subhead {{Show_Subtitle}}"> {{Header_Subtitle}}

"Method not found" error on deployment

~~repeating-content.html~~
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
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.

Issue

Items in a package fail to deploy with the following error:

"Method not found: 'Void SourceCode.Forms.Design.DefinitionUtility.Merge(SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection, SourceCode.Forms.Design.Merging.IMergeInfoProvider, SourceCode.Forms.Authoring.View, SourceCode.Forms.Authoring.View, SourceCode.Forms.Design.Merging.MergeContext)'. System.MissingMethodException: Method not found: 'Void SourceCode.Forms.Design.DefinitionUtility.Merge(SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection, SourceCode.Forms.Design.Merging.IMergeInfoProvider, SourceCode.Forms.Authoring.View, SourceCode.Forms.Authoring.View, SourceCode.Forms.Design.Merging.MergeContext)'. at SourceCode.Runtime.Services.Forms.MergeProvider.MergeAuthoringInstances(IMergeInfoProvider mergeProvider, IBaseNamedObject source, IBaseNamedObject target, ComplexType complexType) at SourceCode.Runtime.Services.Forms.MergeProvider.Merge(ComplexType complexType, IBaseNamedObject instance) at SourceCode.Runtime.Services.Forms.MergeProvider.Merge(ComplexType complexType) at SourceCode.Runtime.Services.Forms.Services.BaseFormViewService`3.Deploy(IDeploymentContext context)"

Symptoms

This error suggests that an assembly may be out of sync or on a different version from those in another file location.

Troubleshooting Steps

To resolve this, please verify that the versions of the following assemblies are consistent throughout their locations:

  • SourceCode.Forms.Design.dll
    • ...\K2 blackpearl\Bin\
    • ...\K2 blackpearl\Host Server\Bin\
    • Global Assembly Cache (C:\Windows\assembly\GAC_MSIL\SourceCode.Forms.Desing\...)
  • SourceCode.Runtime.Services.Forms.dll
    • ...\K2 blackpearl\Host Server\Bin\Extensions\Runtime\
    • ...\K2 blackpearl\Setup\Reference\

Follow the steps below to check the version of an assembly:

  1. Right-click on the assembly and select Properties
  2. Go to the Details tab
  3. The File version would be the version of the assembly:
    Image