Start to connect to K2 server From Windows Service

  • 16 November 2015
  • 2 replies
  • 1 view

Badge

when i try to connect to K2 server from windows service using "SourceCode.Workflow.Client" i always got

 

"Unable to load connection string with Key: ---" and in  inner expetion "Value cannot be null.
Parameter name: userName"

 

Note : i using that connection string in web application and it work fine  Can any one help .


2 replies

Badge +9

Hey there,


 


To start with, have you used this connection string programmatically before or just within web applications? Also, does the connection string contain a username? If not, then I would suggest trying to add in the username and password to se if that works. If you need assistance, one of our learning modules (300.NRT) walks through creating a connection string. More on this is available here:


 


help.k2.com/files/4726


 


Ian

Userlevel 5
Badge +18

Here are some connection string examples:


 


https://www.k2.com/onlinehelp/k2blackpearl/devref/current/default.htm#ConnectionStringSamples.htm

Reply