Skip to main content
I am trying to build my own sps webpart (which I know how to do very well) but I am running into some issues trying to use the K2ROM from within my webpart.

I create a reference to the K2ROM.dll then when I try to connect to the K2 server I am getting a runtime error but the try catch block does not see to be working, instead I get the dreaded "Your webpart appears to be causing a problem" message.

To make things worse, my debugger has decided to not allow me to attach to the running instance of w3p...

So let me ask how did K2 themselves write your webparts? Are they talking to the Object Model or are they using the webservice?

Does anybody have some source (C#) of a webpart talking to K2 that they might share?

Thanks, Mike

Mike - did you ever get this working?


Thanks,


Adriano


I've upload some samples on how to do this.  First, a web control was created that can be used independent of SharePoint.  You can display the control within the toolbox of Visual Studio and drop it onto your ASP.net page.  Through the configuration of an XML file you can display what process datafields are displayed on the grid.  The second project simply houses the web control within a SharePoint web part and offers the same functionality.


 Note: This is sample code and not supported by any of the K2 product teams.


Let me know if you have any questions.


 -mike


http://k2underground.com/files/folders/codesamples/entry19523.aspx


http://k2underground.com/files/folders/codesamples/entry19522.aspx 


Reply