HighTechTalks DotNet Forums  

Passing CAO reference back to remoting host

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Passing CAO reference back to remoting host in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Claus Trojahn
 
Posts: n/a

Default 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

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.