HighTechTalks DotNet Forums  

Real object instantiated instead of transparent proxy?

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


Discuss Real object instantiated instead of transparent proxy? in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jens Weiermann
 
Posts: n/a

Default Real object instantiated instead of transparent proxy? - 11-01-2007 , 02:53 AM






Hi,

first of all, I'd have to mention that I don't have much experience with
remoting (and I'm afraid this will get obvious below ;-)

I have one problem that's bugging me:

I have a server activated object hosted in a windows service application
(that part is working fine).
The problem is on the client side: When instantiating the class (I'm not
using an interface here for the ease of configuration), the constructor
will *sometimes* and on *certain machines* return a "real" object instead
of a transparent proxy as expected. I can tell because
System.Runtime.Remoting.RemotingServices.IsTranspa rentProxy(...) returns
false.
A restart of the app cures the problem. No errors occur during
configuration of remoting.

Without posting any code here, does anyone have an idea what might cause
this?

Thanks!
Jens

Reply With Quote
  #2  
Old   
Spam Catcher
 
Posts: n/a

Default Re: Real object instantiated instead of transparent proxy? - 11-01-2007 , 09:54 AM






Jens Weiermann <spamgoeshere (AT) wexman (DOT) com> wrote in news:bdge9c8350qd
$.dlg (AT) prog02 (DOT) wilms.com:

Quote:
Without posting any code here, does anyone have an idea what might cause
this?
Did you set the serializable on certain objects?


Reply With Quote
  #3  
Old   
Spam Catcher
 
Posts: n/a

Default Re: Real object instantiated instead of transparent proxy? - 11-01-2007 , 09:54 AM



Spam Catcher <spamhoneypot (AT) rogers (DOT) com> wrote in
news:Xns99DB6EF142151usenethoneypotrogers (AT) 127 (DOT) 0.0.1:

Quote:
Jens Weiermann <spamgoeshere (AT) wexman (DOT) com> wrote in news:bdge9c8350qd
$.dlg (AT) prog02 (DOT) wilms.com:

Without posting any code here, does anyone have an idea what might cause
this?

Did you set the serializable on certain objects?
<seriablizable> attribute I mean.



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.