should I have any concers if I copy the K2ROM.dll into the C:Windowsassembly. I need to do that to make the underneath code working in a button event of an InfoPath form. It changes the status of the worklist items. Setting code to full trust in the .Net Configuration manager is not enough.
SourceCode.K2ROM.Connection myK2Conn = new SourceCode.K2ROM.Connection();
SourceCode.K2ROM.WorklistCriteria myCriteria = new SourceCode.K2ROM.WorklistCriteria();
myK2Conn.Open("luxdevas02");
SourceCode.K2ROM.Worklist myWorkList = myK2Conn.OpenWorklist(myCriteria.Platform);
foreach(SourceCode.K2ROM.WorklistItem myWorkListItem in myWorkList)
{
string strSerial = myWorkListItem.SerialNumber.ToString();
myK2Conn.OpenWorklistItem(strSerial, myCriteria.Platform, true);
}
myK2Conn.Close();