Error appears when adding custom assemblies to the K2HostServer.config.exe file

  • 16 February 2021
  • 0 replies
  • 13 views

Userlevel 5
Badge +20
 

Error appears when adding custom assemblies to the K2HostServer.config.exe file

kbt176539

PRODUCT
K2 Five
K2 blackpearl
BASED ON
K2 blackpearl (all)
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.

Issue

When starting up the K2 Server Service you will be experience an error when adding custom assemblies to the K2HostServer.config.exe:

;Error Invoking 'StartHostServer' : SourceCode.HostServerLib : The type initializer for 'SourceCode.Logging.Logger' threw an exception.

 

 

Symptoms

The K2 Server will not be accessible for users to utilize K2 Designer, Management and Workspace and they won't be able to perform their daily tasks.

Resolution

STEP 1
- Validate in the K2Hostserver.config.exe that the configuration of the <sectionGroup><sectionGroup/><section name><section name/> tags are correctly configured.

Example of the configuration:

<sectionGroup name="applicationSettings" type="System.Configuration, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0000000000">
<section name="Assembly Name " type="System.Configuration., System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=00000000000" requirePermission="false" />
</sectionGroup>

STEP 2
- Ensure that the K2 Service starts up correctly and that all components of K2 are functioning as expected without error.

 

 

 
 
 
 

 


0 replies

Be the first to reply!

Reply