[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

Re: How do i create an object that can be activated remotely and local

Sunny

7/6/2004 3:49:00 PM

Hi,

you don't have to use WellKnownClientType registration.

Sunny


In article <245CDFD2-B52F-4036-AF40-F7339A8E4CE4@microsoft.com>,
E.Lucas@discussions.microsoft.com says...
> I have a BusinessObject class which inherits from ContextBoundObject.
>
> Sometimes I'm createing BusinessObject CAO instance on a remote server and that works well. (I use Activator.CreateInstance(...,...,{uri})
>
> The problem is: When I create a local instance from my BusinessObject, it also is wrapped in a TransparentProxy. (That happens if I use the "new BusinessObject" syntax, or the Activator.CreateInstance(type,args[]) syntax).
>
> Question: How can I create a local instance of my BusinessObject class without the TransparentProxy wrapper ? (and still be able to create CAO instances from this class)
>
> Thanks !
>