2010-01-26 105 views
1

我試圖從Visual Studio 2005部署基本工作流程到K2 blackpearl服務器。似乎直接這樣做是不受支持的,但無論我是否嘗試從客戶端部署到服務器,還是在服務器上的部署包中使用msbuild,我都會得到相同的錯誤。我正在使用的帳戶在服務器上具有導出權限。在Visual Studio中部署K2 blackpearl項目

Error 1 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.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. at SourceCode.DeploymentTasks.FormsGeneration.ClientEventDeploymentTask.HasPublishedWebsite() at SourceCode.DeploymentTasks.FormsGeneration.ClientEventDeploymentTask.HasPublishedWebsite() at SourceCode.DeploymentTasks.FormsGeneration.ClientEventDeploymentTask.Execute() C:\Users\dev3\Documents\Visual Studio 2005\Projects\K2 sandbox\InformationRequest\obj\Debug\Deployment\InformationRequest.msbuild 68 6 InformationRequest

回答

0

這是在K2中使用Forms Generation時的一個衆所周知的問題。

我相信它源於兩種

(一)沒有安裝Web部署項目(http://msdn.microsoft.com/en-us/library/aa479568.aspx)

(B )別的東西*出錯了,所以試着通過重新啓動VS,重新生成包含此客戶端事件的Activity,甚至重新創建項目,從Forms Generation反向工作。

  • 這個「別的東西」出錯了,經常會讓人們避免使用Forms Generation。實際上,Forms Generation所增加的價值與控制成本相比幾乎沒有。我建議使用ASP.NET與默認客戶端事件。您可以使用少於幾百行代碼重新創建「表單生成」,以自動檢測「流程定義」並根據類型呈現「數據」和「XML」字段,但您確實失去了字段選擇的一些便利。
相關問題