Symptoms
Error during the deploy of a package using "Package and Deployment" (PandD)
Method not found: 'Void SourceCode.Forms.Design.DefinitionUtility.Merge(SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection, SourceCode.Forms.Authoring.View, SourceCode.Forms.Authoring.View, System.Collections.Generic.IDictionary`2)'. System.MissingMethodException: Method not found: 'Void SourceCode.Forms.Design.DefinitionUtility.Merge(SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection, SourceCode.Forms.Authoring.View, SourceCode.Forms.Authoring.View, System.Collections.Generic.IDictionary`2)'.
at SourceCode.Runtime.Services.Forms.Services.BaseFormViewService`3.MergeAuthoringInstances(AuthoringType source, AuthoringType target, ComplexType ct)
at SourceCode.Runtime.Services.Forms.Services.BaseFormViewService`3.Deploy(IDeploymentContext context) 00:00:00.0137751
Diagnoses
This type of issue seems to occurs when an issue appears during installation of rollups.
We found in your installation documentation of K2 that the command
Get-ChildItem -Path hDELIVERY_DIR]K28-FixK24611.38 -Recurse | Unblock-File
Example:
Get-ChildItem -Path C: empK28-FixK24611.38 -Recurse | Unblock-File
was advised to be executed AFTER the execution of the rollup installation but this unblock should be done BEFORE the rollup installation
Resolution
Dear Mr Abitol,
ISSUE:
DIAGNOSIS:
Case 1): If the issue was linked to a bad setting of the rollup (Fill of the parameter "Directory Path" not correct), the issue is simply fixed by the re-execution the Rollup with good parameters.
In other similar ticket, we found this resolution:
In short, the error is due to the use of a tab when specifying the installation path (see step 5 on automatic installation guide), instead of typing it manually.
On the guide they clearly state that "NOTE: Do not tab to the desired installation path as this will result in some assemblies not getting copied over, instead please type the installation path manually."
Case 2): If the issue was only linked the unblock not set before the installation of the Rollup, this command should work
Get-ChildItem -Path "C:Program Files (x86)K2 blackpearl" -Recurse | Unblock-File
You fixed by doing the 2: Unblock the C: empK28-FixK24611.38 directory, re-execute the rollup installation, and execute the command:
Get-ChildItem -Path "C:Program Files (x86)K2 blackpearl" -Recurse | Unblock-File