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