Remoting Object

  • Thread starter Thread starter Anson
  • Start date Start date
A

Anson

Hello,

I would like to clarify something about Remoting Object in .NET.

Knowing from MSDN that in order for Remote Object to work, I need 3
components.
a) RemotableType object, just like a regular dll with additional remotable
feature.
b) Host Application, which is a listener listens for remote clients of a
remotable type
c) Client Application, which is an application that creates an instance of
your remotable type and accesses designated members.


I would like to know:
(1) Can I run remote object without a web server (IIS)?
(2) Can I run remote object without having a server program (host
application or listener) running and
waiting for a client call?
if no, can I utilize the proxy feature without using the listener?
(3) Can I call (from PC1) a remote object in another PC (e.g. PC2) and then
the remote object call another remote object in PC3. totally, 3 PC involves?


Thank you

Anson
 
Hello Anson,
I would like to know:
(1) Can I run remote object without a web server (IIS)?

Yes but you'll have to provide a custom listener.
(2) Can I run remote object without having a server program (host
application or listener) running and
waiting for a client call?

I believe no, unless you use IIS as the host program. Exceptions apply when
we talk about cross-AppDomain calls on the same PC - you don't need a
dedicated listener in this case.
(3) Can I call (from PC1) a remote object in another PC (e.g. PC2) and then
the remote object call another remote object in PC3. totally, 3 PC
involves?

I believe yes.

P.S. There's a dedicated remoting newsgroup called
microsoft.public.dotnet.framework.remoting. You might want to re-post your
question there to get more help from remoting gurus.
 
Thank you so much Dmitrity


Dmitriy Lapshin said:
Hello Anson,
I would like to know:
(1) Can I run remote object without a web server (IIS)?

Yes but you'll have to provide a custom listener.
(2) Can I run remote object without having a server program (host
application or listener) running and
waiting for a client call?

I believe no, unless you use IIS as the host program. Exceptions apply when
we talk about cross-AppDomain calls on the same PC - you don't need a
dedicated listener in this case.
(3) Can I call (from PC1) a remote object in another PC (e.g. PC2) and then
the remote object call another remote object in PC3. totally, 3 PC
involves?

I believe yes.

P.S. There's a dedicated remoting newsgroup called
microsoft.public.dotnet.framework.remoting. You might want to re-post your
question there to get more help from remoting gurus.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
Anson said:
Hello,

I would like to clarify something about Remoting Object in .NET.

Knowing from MSDN that in order for Remote Object to work, I need 3
components.
a) RemotableType object, just like a regular dll with additional remotable
feature.
b) Host Application, which is a listener listens for remote clients of a
remotable type
c) Client Application, which is an application that creates an instance of
your remotable type and accesses designated members.


I would like to know:
(1) Can I run remote object without a web server (IIS)?
(2) Can I run remote object without having a server program (host
application or listener) running and
waiting for a client call?
if no, can I utilize the proxy feature without using the listener?
(3) Can I call (from PC1) a remote object in another PC (e.g. PC2) and then
the remote object call another remote object in PC3. totally, 3 PC involves?


Thank you

Anson
 
Back
Top