Skip to main content


 

Symptoms


SP WF Deployment Error
 

Diagnoses


When we deploy the attached package on dev environment (from SP dev box) it works (gets deployed) as expected. The same package on our UAT box fails (UAT SP UAT QA) with the following error. Note that sp app pool account has perms on k2 uat box and k2 svc account has farm admin rights on sp uat farm. also note that all k2 features have been activated on sharepoint.

K2 Workflow Integration Process Deployment:
------ Task Started: K2 Workflow Integration With SharePoint ------
Retrieving event data
Executing ...
Task Error: System.Exception: Error occurred adding the feature to the farm. ---> System.Exception
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.ConfigureASPX.BuildASPXStartForms(IntegrationObject integration)
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.ConfigureEvent.BuildStartForms(IntegrationObject integration)
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.ConfigureEvent.AddFeature(IntegrationObject integration)
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.WorkflowIntegrationService.Execute(IntegrationObject integration, Boolean testMode, Boolean c
reateDependancies)
--- End of inner exception stack trace ---
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.WorkflowIntegrationService.Execute(IntegrationObject integration, Boolean testMode, Boolean c
reateDependancies)
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.WorkflowIntegrationTask.Execute()
 

Resolution

The msbuild package deployment was successful after installing Web Deployment Project 2005 and the copying the aspnet_merge.exe and its accompanying files from "C:Program Files (x86)MSBuildMicrosoftWebDeploymentv8.0" to the other "C:Program Files (x86)MSBuildMicrosoftWebDeployment" directories. Then we were able to deploy using "C:WindowsMicrosoft.NETFrameworkv2.0.50727".

I believe the other method of obtaining the "aspnet_merge.exe" is to install the appropriate Microsoft Windows SDK on the Sharepoint WFE server performing the build and deployment. Please see some relevant articles:

http://stackoverflow.com/questions/28765/using-visual-studio-2008-web-deployment-projects-getting-an-error-finding-aspn
http://stackoverflow.com/questions/272484/install-and-use-aspnet-merge-exe-without-installing-the-windows-sdk

You can also install the appropriate SDK to obtain that aspnet_merge.exe from:

When using "C:WindowsMicrosoft.NETFrameworkv2.0.50727":
http://www.microsoft.com/en-us/download/details.aspx?id=3138

When using "C:WindowsMicrosoft.NETFrameworkv4.0.30319":
http://www.microsoft.com/en-us/download/details.aspx?id=8279

"I downloaded the "web" version of the SDK because the setup is only 500KB and it prompts you for which components to install and only downloads and installs the ones you choose. I unchecked everything except for ".NET Development Tools". It then downloaded and installed about 250MB worth of stuff, including aspnet_merge.exe and sgen.exe"
(http://stackoverflow.com/questions/272484/install-and-use-aspnet-merge-exe-without-installing-the-windows-sdk)




 
Be the first to reply!

Reply