Skip to main content

Hi,


I've setup our K2 2003 environment with multiple domain support.


Eg. user x in domain x starts a workflow that is routed to a person y in domain y


This works and give no errors.


In a codemodule however, I make use of K2UTILITIES.DSHelper to get some values out of Active Directory. 


userid = K2.ActivityInstanceDestination.User.Name


string location = oDSH.GetUser(userid).Properties("location")(0).ToString


The code above works in the domain of person x in domain x, but not for person y in domain y.


(K2 has been setup in domain x)


The exception that is thrown is: System.Exception: Object reference not set to an instance of an object.
   at K2Code35511.Main(ClientEventContext K2)


 Any Suggestions ?


Thanks,


Nicolas

I've just found the solution.


Setting oDSH.ADServer = "servername" does the trick ...


Regards,


Nicolas


Reply