Thanks Mike. I had seen that, but wasn't sure that it was applicable to my question. It's good to know that it is. Now for the difficult part of convincing myself that I want to use private data :-)
--Michael > -----Original Message----- > From: Mike Woodring (DevelopMentor) [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 15, 2003 4:26 PM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Remoting: Getting object from URI > > > This came up before on this list. There's no documented, > publicly accessible support for doing that. But assuming > you're talking manually marshaled object > (RemotingServices.Marshal) or a well-known singleton, it's > possible to do using reflection against non-public members. > I posted one such work around to the > archives: > http://discuss.develop.com/archives/wa.exe?A2=ind0211B&L=ADVANCED-DOTNET &P=R292& I=-3 As with any work around that involves the use of reflection against private members, your code would have to have sufficient CAS priveleges, and you'd have to be willing to tolerate the code breaking on some future release of the runtime (or code defensively). My code uses a 'fail-fast' approach - if any of the implementation details I'm counting on don't turn out to be there on some future version of the runtime, I'll raise a noisy exception. -Mike DevelopMentor http://staff.develop.com/woodring > > -----Original Message----- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of > Michael Sawczyn > Sent: Tuesday, July 15, 2003 12:23 PM > To: [EMAIL PROTECTED] > > On the server side, if I have a URI is there any way to get a > reference > to the underlying object? Not the transparent proxy (which is easy to > get), but the implementation object itself? > > Can't find a thing that indicates that I can, but then again there's > reams of docs to go through and I'm undoubtedly missing something. > > Thanks. > > --Michael > > >