Passing CAO reference back to remoting host -
10-30-2007
, 12:00 PM
Hi,
i have a little Problem with a CAO reference.
On client side i use a code like this:
IUserProfile profile = ClientContext.CurrentUser.Profile;
profile["CalendarViewSplitterDistance"] = 200;
ServerContext.UserManager.UpdateProfile(user);
where ServerContext is a SAO Singleton, ClienContext is a CAO and
CurrentUser returns a reference to IUser which is also a CAO.
IUserProfile is also a CAO.
The strange thing is, that when calling UpdateProfile() i don't get
any Exception at that point, just Dispose() is called on the main window
an the i get invalid handle exception.
My question is: is it possible to pass a CAO reference back to server,
or is it bad practice?
Thanks
Claus |