Open K2 work list item in SharePoint Web Part


Badge +2

 

I wanto to open worklist item in SharePoint Applicaiotn page. 

 

OpenWorklistItem.

 

In the SharePoint solution I have already reference the SourceCode.Workflow.Client. but i throws Could not load file or assembly 'SourceCode.Workflow.Client,.

Anyone can help.


5 replies

Badge +6

Hi AbdulAzizADQC,


 


Where in the soution do you recieve the error? Is the error appearing when you open the WorklistItem? Can you please attach the latest K2HostServer log file to the post so I can see if there is more detail about the issue.


 


Kind Regards,


 


Yannick


 


 

Badge +2

Dear Thnx for your reply, Web part reside in the sharepoint farm. the application page is in the sharepoint farm.  This error comes from SharePoint Server not from K2.

Badge +8

Did you install the K2 components on the SP Web Front End as well as the SP App servers?

Badge +2

Yes, all the component, are installed on the SharPoint . Even I can able to create smart object of list and showing it to smart form perfectly.

I have no idea why these dll's are missing.

Badge +2

The issue has been solved. I GAC the SourceCode.Workflow.Client.dll in the SharePoint Server.  But When I tried to Open the Connection it gives me the below Error. Code is also mentioned below.

Error " Value cant be null Parameter Name Token.

 

private Connection _connection;
private WorklistItem _WorkListItem;

 

protected void Page_Load(object sender, EventArgs e)
{
LoadActions();

}

 

protected LoadActions()

{

SourceCode.Workflow.Client.ConnectionSetup connectionSetup = new SourceCode.Workflow.Client.ConnectionSetup();
connectionSetup.ConnectionParameters["Authenticate"] = "true";
connectionSetup.ConnectionParameters["Integrated"] = "true";
connectionSetup.ConnectionParameters["IsPrimaryLogin"] = "true";
connectionSetup.ConnectionParameters["Port"] = "5252";
connectionSetup.ConnectionParameters["SecurityLabelName"] = "K2";
connectionSetup.ConnectionParameters["UserID"] = Context.User.Identity.Name;
connectionSetup.ConnectionParameters["WindowsDomain"] = "vvvvvvvvvv";
if (_connection == null)
{
_connection = new Connection();
_connection.Open(connectionSetup);
//_connection.ImpersonateUser(Context.User.Identity.Name);
//_connection.ImpersonateUser("adqcca.farooqi");
}

 

 

}

 

 

 

 

Reply