Deploying the Deployment package

  • 24 February 2010
  • 8 replies
  • 3 views

Badge +5

Hi All,


I am getting a problem with the deployment packag., I have the K2 Blackpoint evaluation version installed on my machine. I created a deployment package of a K2 project that contains two K2 processes. Now I am using MSBUILD to deploy this package since on the production machine there is no K2 installed. So I just copied the Deployment folder created after creating the Deployment package to the production machine. Then I executed the command as below to test the production environment for deployment,


msbuild "C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInfoK2.msbuild" /p:testonly=true /p:environment=production


I also tried with your solution to import the registry key at HKLMSoftwaresource code, but it gave me the same error.


Can you suggest something


This was the output:
C:WINDOWSMicrosoft.NETFrameworkv2.0.50727>msbuild "C:Documents and Settings
AdministratorDesktopobjDebugDeploymentLeaveReqInfoK2.msbuild" /p:testonly=
true /p:evironment=production
Microsoft (R) Build Engine Version 2.0.50727.1433
[Microsoft .NET Framework, Version 2.0.50727.1433]
Copyright (C) Microsoft Corporation 2005. All rights reserved.


Build started 2/24/2010 4:18:11 PM.
__________________________________________________
Project "C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLe
aveReqInfoK2.msbuild" (default targets):


Target K2 Workflow Integration Process Deployment:
    __________________________________________________
    Project "C:Documents and SettingsAdministratorDesktopobjDebugDeploymen
tLeaveReqInfoK2.msbuild" is building "C:Documents and SettingsAdministratorD
esktopobjDebugDeploymentLeaveReqInfoK2.msbuild" (InitDeploy target(s)):


    C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveRe
qInfoK2.msbuild(70,5): error MSB4018: The "SourceCode.DeploymentTasks.SharePoint
.WorkflowIntegration.WorkflowIntegrationTask" task failed unexpectedly.
    C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveRe
qInfoK2.msbuild(70,5): error MSB4018: System.IO.FileNotFoundException: Could not
 load file or assembly 'SourceCode.Framework, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=16a2c5aaaa1b130d' or one of its dependencies. The system cannot f
ind the file specified.
    C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveRe
qInfoK2.msbuild(70,5): error MSB4018: File name: 'SourceCode.Framework, Version=
4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d'
    C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveRe
qInfoK2.msbuild(70,5): error MSB4018:    at SourceCode.DeploymentTasks.TaskLogge
r.LogMessage(MessageImportance importance, String message)
    C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveRe
qInfoK2.msbuild(70,5): error MSB4018:    at SourceCode.DeploymentTasks.SharePoin
t.WorkflowIntegration.WorkflowIntegrationTask.Execute()
    C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveRe
qInfoK2.msbuild(70,5): error MSB4018:    at Microsoft.Build.BuildEngine.TaskEngi
ne.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableTo
Task, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWas
Found)
    C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveRe
qInfoK2.msbuild(70,5): error MSB4018:
    C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveRe
qInfoK2.msbuild(70,5): error MSB4018: WRN: Assembly binding logging is turned OF
F.
    C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveRe
qInfoK2.msbuild(70,5): error MSB4018: To enable assembly bind failure logging, s
et the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.
    C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveRe
qInfoK2.msbuild(70,5): error MSB4018: Note: There is some performance penalty as
sociated with assembly bind failure logging.
    C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveRe
qInfoK2.msbuild(70,5): error MSB4018: To turn this feature off, remove the regis
try value [HKLMSoftwareMicrosoftFusion!EnableLog].
    C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveRe
qInfoK2.msbuild(70,5): error MSB4018:
Done building target "K2 Workflow Integration Process Deployment" in project "Le
aveReqInfoK2.msbuild" -- FAILED.


Done building project "LeaveReqInfoK2.msbuild" -- FAILED.


Build FAILED.
C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInf
oK2.msbuild(70,5): error MSB4018: The "SourceCode.DeploymentTasks.SharePoint.Wor
kflowIntegration.WorkflowIntegrationTask" task failed unexpectedly.
C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInf
oK2.msbuild(70,5): error MSB4018: System.IO.FileNotFoundException: Could not loa
d file or assembly 'SourceCode.Framework, Version=4.0.0.0, Culture=neutral, Publ
icKeyToken=16a2c5aaaa1b130d' or one of its dependencies. The system cannot find
the file specified.
C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInf
oK2.msbuild(70,5): error MSB4018: File name: 'SourceCode.Framework, Version=4.0.
0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d'
C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInf
oK2.msbuild(70,5): error MSB4018:    at SourceCode.DeploymentTasks.TaskLogger.Lo
gMessage(MessageImportance importance, String message)
C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInf
oK2.msbuild(70,5): error MSB4018:    at SourceCode.DeploymentTasks.SharePoint.Wo
rkflowIntegration.WorkflowIntegrationTask.Execute()
C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInf
oK2.msbuild(70,5): error MSB4018:    at Microsoft.Build.BuildEngine.TaskEngine.E
xecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask
, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFoun
d)
C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInf
oK2.msbuild(70,5): error MSB4018:
C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInf
oK2.msbuild(70,5): error MSB4018: WRN: Assembly binding logging is turned OFF.
C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInf
oK2.msbuild(70,5): error MSB4018: To enable assembly bind failure logging, set t
he registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.
C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInf
oK2.msbuild(70,5): error MSB4018: Note: There is some performance penalty associ
ated with assembly bind failure logging.
C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInf
oK2.msbuild(70,5): error MSB4018: To turn this feature off, remove the registry
value [HKLMSoftwareMicrosoftFusion!EnableLog].
C:Documents and SettingsAdministratorDesktopobjDebugDeploymentLeaveReqInf
oK2.msbuild(70,5): error MSB4018:
    0 Warning(s)
    1 Error(s)


8 replies

Badge +5

avikal,


After creating the deployment package, you need to browse to where your k2 project resides, then go to "objDebug'. In the Debug folder, copy EVERYTHING in it to your Production machine. There is a necessary DLL that you will need. Then, from the command line, run the following from the folder where the msbuild file resides:


msbuild [whatever_your_k2_project_name].msbuild /p:Environment=Production


Here is an additional good resource for the deployment package:


http://help.k2.com/en/kb000188.aspx


 


Cheers!


Steve

Badge +5

Hi Steve,


still it gives me the same error. I copied everything from obj/Debug to the production machine and ran the command, but no luck. Does it require to install something more or to copy some required dlls in GAC?? since the error describes that it couldn't find some necessary files assemblies etc.

Badge +5

One thing I forgot to ask, does the account your using on the production server have export rights to deploy the process?

Badge +5

Hi Steve, one basic question, on my development machine I exported  the sharepoint site package and imported on production machine. Now I was trying to deply the K2 Deployment package, and got the above errors. Now where I will have to set the export rights to the user who is deploying the package??

Badge +5

Export rights need to be configured on the Production server K2 administration. So, when you run the deploy from that machine with the user that has permissions, they will be able to.

Badge +5

How to configure the export rights to a user on production machine. On my machine I did that by navigating to central admin--> K2 for sharepoint tab-> Management Console --> and then checked the checkbox for export rights to the required user in Server Rights section. 


But how to do this on Production machine where no K2 for sharepoint tab will be available on central admin??

Badge +5

Is there a reason you don't have K2 management installed in central admin?

Badge +5

Hi Steve,


Mine is the evaluation version of K2 Blackpoint installed on my Developing machine, I have already created a K2 deployment package for my project. Now I want to deploy this package on a new machine using MSBUID. Now do we require K2 management installed in central admin of this new machine too?? If so, will I have to install K2 management (only) on my new machine??


Thanks, for your time.

Reply