No ratings

Error appears after upgrade to 4.7: "Task error: Forms Generation publishing has failed"


Error appears after upgrade to 4.7: "Task error: Forms Generation publishing has failed"

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.
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.


Error appears after upgrade to 4.7: "Forms Generation publishing has failed."


After upgrading the K2 Blackpearl environment to 4.7. and trying to deploy the workflow solution using both K2 Studio (4.7) and Visual Studio (Professional 2013), the error appeared:

 "Task Error: System.Exception: Forms Generation publishing has failed: Please ensure that if you are deploying this project that you are not attempting to do so on client. Deployment package needs to be created and run on the server in order to publish forms correctly. - System.IO.DirectoryNotFoundException: Could not find a part of the path 'G:\XXX\XXX\Workflows\Solutions\XXX\Projects\XXX\obj\Debug\Deployment\CSWebsiteClient\precompile'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.Directory.GetFiles(String path)
at SourceCode.DeploymentTasks.Deployment.FormsGenerationClientEvent.Shared.GetWebDeploymentProductAddons(String projectFilePath)
at SourceCode.DeploymentTasks.FormsGeneration.ClientEventDeploymentTask.HasPublishedWebsite()
at SourceCode.DeploymentTasks.FormsGeneration.ClientEventDeploymentTask.HasPublishedWebsite()
at SourceCode.DeploymentTasks.FormsGeneration.ClientEventDeploymentTask.Execute()
0 Warnings(s)"

Troubleshooting Steps

This issue was caused by missing Microsoft Visual Studio 2010 Web Deployment Projects.

To resolve this, please download and install the missing component from:

Labels: (2)
Version history
Last update:
‎03-15-2022 05:29 AM
Updated by: