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
Page 1 / 1
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
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
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.
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
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.