Skip to main content


 

Symptoms

 


We recently upgraded the server from 4.6.3 to 4.6.9. We used Msbuild package to deploy the K2 workflows in 4.6.3 version. After we upgraded to 4.6.9 we can still deploy the workflows using Visual Studio "deploy" button but cannot deploy using the Msbuild package.

MSBUILD deployment in version 4.6.9 (Infopath Integrated process sharepoint 2010) seems to error with:

Application: MSBuild.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException
Stack:
at SourceCode.EnvironmentSettings.Client.EnvironmentSettingsManager.Dispose(Boolean)
at SourceCode.EnvironmentSettings.Client.EnvironmentObject.Finalize()
 

 

Diagnoses

 

 

 

Starting with K2 blackpearl 4.6.9, you will need to add some additional Sourcecode configuration entries to the (msbuild.exe.config) file for the framework that you will be using msbuild from.
 

 

Resolution 

 If you are attempting to perform the msbuild from the framework directory:

C:WindowsMicrosoft.NETFrameworkv4.0.30319

You will need to add the appropriate SourceCode configuration entries (toward the bottom of the KB below and with values specific for your environment) to the (msbuild.exe.config) in that directory:

<configSections>

 

<section name="sourcecode.configuration" type="SourceCode.Configuration.ConfigurationManager, SourceCode.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d" />

 

</configSections>

 

 

 

<sourcecode.configuration managerConfigFile="aSOURCECODECOMMONAPPDATA]ConfigurationManager.config" productPath="gINSTALLDIR]Bin" templateConfigFile="" />

 

<connectionStrings>

 

<add name="HostServer" connectionString="Integrated=True;IsPrimaryLogin=True;Authenticate=True; EncryptedPassword=False;Host=sHOSTSERVERNAME];Port=THOSTSERVERPORT]" providerName="TLICENSEDPRODUCT]" />

 

<connectionStrings>
 
http://help.k2.com/kb001637

 

 



 
Be the first to reply!

Reply