Unable to deploy SmartForm using the K2 Package and Deployment tool

  • 24 February 2022
  • 0 replies
  • 15 views

Userlevel 5
Badge +20
 

Unable to deploy SmartForm using the K2 Package and Deployment tool

kbt162448

PRODUCT
K2 blackpearl 4.7
BASED ON
K2 blackpearl 4.7
TAGS
Deployment
Package and Deploy
SmartForms
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

You are unable to deploy your SmartForm using the K2 Package and Deployment tool due to a "Method not found" error:

Image

Symptoms

An example of the full error message shown in the Deployment logs is as follows:

"PackTest" package deployed 1/31/2019 3:48:02 AM
User Account: DomainUser
Fail TESTDEPLOY
 

 

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) 00:00:00.0403547


Success Form 00:00:00.0648798
Success test 00:00:00.0156003
Total Duration: 00:00:00.1208348

Troubleshooting Steps

Please compare the version of the assembly "SourceCode.Forms.Design.dll" in the locations below and in your Global Assembly Cache (C:WindowsassemblyGAC_MSIL). 

[InstallDrive]:Program Files (x86)K2 blackpearlHost ServerBin
[InstallDrive]:Program Files (x86)K2 blackpearlBin

If the assembly version in GAC does not match up, please replace the assembly with the one in either of the above-mentioned locations.

 

Kindly stop K2 Service first before replacing any assemblies. 

The assemblies' version can be viewed when you right-click on the file, choose Properties and select the Details tab as per below:

Image


0 replies

Be the first to reply!

Reply