In general, it doesn't matter if the methods are housed in a DLL or an EXE.

In case of cross-appdomain remoting, it makes no difference.

In case of cross-process remoting, you need a OS process
that can a) publish the classes to be remoted and b) take
incoming requests from the client. You can write a generic
four-line EXE-based host to do this. Of course, if the classes
to be remoted are already housed in an EXE-based assembly,
then you can expose the classes directly from this EXE
without requiring a separate host.

Hope this helps.

Pradeep
http://www.tapadiya.net/pradeep


----- Original Message -----
From: "Hein, Richard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 7:37 AM
Subject: Re: [ADVANCED-DOTNET] Escalating: EXE Remote Object?


What I mean is, do you have to put the methods you want to invoke across
processes and/or AppDomains in a .dll assembly?  Is it possible to
invoke methods remotely that dwell in and EXE assembly?

Ingo's book describes very well how to do this stuff, but not what I am
describing above.


Thanks for the info.

Richard A. Hein
Software Developer
Level Platforms Inc.
36 Antares Drive, Suite 200, Ottawa, Ontario
* 613-232-0098
* [EMAIL PROTECTED]

Please visit us at http://www.levelplatforms.com


-----Original Message-----
From: Ian Griffiths [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 7:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] Escalating: EXE Remote Object?

Is this within a single process?  (If not, what exactly do you mean by
"across AppDomains"?)

To be honest I suspect the reason you've not had an answer is that it's
not
clear which part is causing you a problem.  I can't actually tell why
the
"Your First Remoting Application" example on page 14 on Ingo Rammer's
book
doesn't answer your question.  It shows you how to invoke methods across
process boundaries.

--
Ian Griffiths
DevelopMentor

----- Original Message -----
From: "Hein, Richard" <[EMAIL PROTECTED]>


I am forwarding this message to the Advanced list because I didn't get
an answer in DOTNET-CLR.  This is either a stupid question one not too
many people know the answer to.

"Advanced .NET Remoting" by Ingo Rammer seems to imply (but there are no
examples doing this with an EXE that I saw) that you can do this by
using SoapSuds to extract the metadata and creating a separate .dll as
an interface from that metadata.  Am I way off base here?

-----Original Message-----
From: Hein, Richard

If I have an executable running that exposes methods that I want to
invoke from another with Remoting across AppDomains, what would be the
best way to go about it?

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to