Symptoms
I can't deploy my workflow. I am getting this error message.
SourceCode.Configuration.ConfigurationNotInitializedException: Please ensure that the needed configuration node(s) are configured in your configuration file C:Program Files (x86)K2 blackpearlHost ServerBinK2HostServer.exe.Config. Please refer to the help documentation for further details.
at SourceCode.Configuration.ConfigurationManager.CheckIsConfigurationInitialized()
at SourceCode.Configuration.ConfigurationManager.get_ConfigurationFolder()
at SourceCode.Workflow.Authoring.Process.EnsureRequiredReferences()
at SourceCode.Workflow.Authoring.Process..ctor()
at SourceCode.WebDesigner.Authoring.Forms.GenerateProcess.Generate(String LocalHostConnection, String UserName, Int32 ProcessID, String InputData, String ProcessXML, String SqlConnectionString, String HostServerConnectionString)
Diagnoses
N/A
Resolution
The following was changed in the K2HostServer.exe.config file:
<sourcecode.configuration managerConfigFile="C:Program Files (x86)K2 blackpearlConfigurationConfigurationManager.config" />
Updated to the format below:
<sourcecode.configuration managerConfigFile="C:Program Files (x86)K2 blackpearlConfigurationConfigurationManager.config" productPath="C:Program Files (x86)K2 blackpearlBin" templateConfigFile="" />
1. Please stop the K2 service/console mode
2. Backup the K2Hostserver.exe.config file and make the changes above
3. Start the K2 service/console mode
4. Retest the process deployment