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.


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: