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.
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.
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.
- 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=18.104.22.168, Culture=neutral, PublicKeyToken=0000000000">
<section name="Assembly Name " type="System.Configuration., System, Version=22.214.171.124, Culture=neutral, PublicKeyToken=00000000000" requirePermission="false" />
- Ensure that the K2 Service starts up correctly and that all components of K2 are functioning as expected without error.