Skip to main content

KBT145392

PRODUCT: K2 blackpearl 4.7

BASED ON: K2 blackpearl 4.7

 

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

 

LEGACY/ARCHIVED CONTENT

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.

Issue

When opening a SmartForms Client Event within Visual Studio or K2 Studio, the following error message appears:

 

"SourceCode.HostClientAPI

   at SourceCode.Hosting.Client.BaseAPI.SCConnectionStringBuilder.ParseConnectionString(String connectionString)
   at SourceCode.Hosting.Client.BaseAPI.SCConnectionStringBuilder..ctor(String connectionString)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString)
   at SourceCode.Workflow.Common.HostedServers.Common.GetConnection(String connectionstring)
   at SourceCode.Workflow.Plugins.Forms.FormsItemContext.get_Connection()
   at SourceCode.Workflow.Plugins.Forms.FormsItemContext.get_CategoryServer()
   at SourceCode.Workflow.Plugins.Forms.FormsCategoryItemBase.get_CategoryManager()
   at SourceCode.Workflow.Plugins.Forms.FormsServerItem..ctor(ObjectBrowserPlugin plugin, FormsServerField environmentfield, FormsServerContext FormsServerContext, Int32 depth)
   at SourceCode.Workflow.Plugins.Forms.FormsRootItem.CreateNewFieldContainer(EnvironmentField field)
   at SourceCode.Workflow.Plugins.EnvironmentSettings.EnvironmentRootCacheManager.CreateNewRootItem(String fieldId, String fieldTypeId)
   at SourceCode.Workflow.Plugins.EnvironmentSettings.EnvironmentRootCacheManager.GetRootItem(String fieldId, String fieldTypeId)
   at SourceCode.Workflow.Plugins.EnvironmentSettings.EnvironmentPluginRoot.OnLoadItems()
   at SourceCode.Workflow.Plugins.ObjectBrowser.ObjectBrowserItemsContainer.LoadItems()
   at SourceCode.Workflow.Plugins.ObjectBrowser.ObjectBrowserItem.OnRefresh()
   at SourceCode.Workflow.Wizards.Forms.WizardHelper.SetContext(IServiceProvider service, FormsContextEnum enumValue, Stringi] treePath)
   at SourceCode.Workflow.Wizards.Forms.Pages.ClientEvent.SelectFormStatePage.Activate()
   at SourceCode.Workflow.Wizards.Forms.Pages.ClientEvent.SelectFormStatePage.OnActivate()
   at SourceCode.Workflow.WizardFramework.WizardPage.SourceCode.Framework.IWizardPage.Activate()
   at SourceCode.Workflow.WizardFramework.PropertyWizard.ActivateCurrentPage()
   at SourceCode.Workflow.WizardFramework.PropertyWizard.OnNavigateToPage(WizardPage destinationPage, Direction direction)
   at SourceCode.Workflow.WizardFramework.PropertyWizard.set_CurrentPage(WizardPage value)
   at SourceCode.Workflow.WizardFramework.PropertyWizard.OnNext(IWizardHostService host)
   at SourceCode.Workflow.WizardFramework.PropertyWizard.SourceCode.Framework.IPropertyWizard.Next(IWizardHostService host)
   at SourceCode.Workflow.DesignerFramework.WizardHost.ShowNextPage()"

Symptoms

This  issue is caused by  one of the SmartForms Runtime Environment fields which was set to a “SmartForms Server” type instead of “SmartForms Runtime URL” type.

 

Troubleshooting Steps

To resolve this issue, correct the Environment Field Type.