K2ROM Access Problems

  • 9 March 2006
  • 3 replies
  • 0 views

Badge +1
Hi,

I am trying to use K2ROM Connection object in the code behind of a server side event. When I complie the code it gives an error

'SourceCode.K2ROM.Connection' is inaccessible due to its protection level.

I have GAC'd the K2ROM dll. Is there anything else that I have to be doing?

Thanks

3 replies

Badge +11
Hi,

Are you saying that you're trying to reference and use the K2ROM object model INSIDE your process definition in the code of a Server Event?

If so, it can not be done. This is due to the context in which the code of the server event executes - remember, this code executes inside K2Server already.

What is it that you want to achieve? Maybe we can recommend a different approach.

Regards,
Ockert
Badge +1
Thanks Ockert! I have found a work around by creating a dll which uses K2ROM object and calling that dll from with in my process server event.
Badge +13
hgopaluni have you run into problems with wrapping in DLL? It was restricted for good reason, the DLL would still run in same process as the K2 server itself?

Reply