"Method not found" error on deployment

  • 24 February 2022
  • 0 replies
  • 94 views

Userlevel 5
Badge +20
 

"Method not found" error on deployment

kbt146388

PRODUCT
K2 blackpearl
TAGS
Deployment
Package and Deploy
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 blackpearlBin
    • ...K2 blackpearlHost ServerBin
    • Global Assembly Cache (C:WindowsassemblyGAC_MSILSourceCode.Forms.Desing...)
  • SourceCode.Runtime.Services.Forms.dll
    • ...K2 blackpearlHost ServerBinExtensionsRuntime
    • ...K2 blackpearlSetupReference

 

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

0 replies

Be the first to reply!

Reply