• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4108
  • Last Modified:

RPC Programming with Visual C#

Hello Every one

i need to know how to develop an application that is based on Remote Procedure Calling (RPC) in Visul C#.NET.
kindly help me

Thanks for Anticipation

2 Solutions
try remoting,.. once your hooked,.. you don't want back to dcom, corba, mess with idl etc,..

here's an example,.. it's suposed to be a whiteboard,.. and it's created as an demo for a friend of mine.

the sample is 1.1 compiant and uses delegates.

I would reccomend this to be your seccond example,.. but you have to start somewhere,..

link: http://www.briolas.nl/coding/remoting/remote.zip  it's server and client all in one...

--- well that's an example,.. so how does one do it?

-make a shared interface in a dll,.. start with something simple such as a get int and set int.

-make an object that implements this interface and inherits form marshalobjectbyref
-register a channel and put your object in there as avalible.

-register channel
-activate object with activator
-call object as if it was your one

hope it helps?


Floris Briolas

Basically, the replacement for DCOM and RPC-based communication is .NET Remoting. You can still do RPC-type calls from unmanaged code, but the .NET Remoting framework takes care of marshaling, by-reference and by-value.  Ingo Rammer, has, what I consider the best book on .NET Remoting - his website is http://www.thinktecture.com/Resources/RemotingFAQ/default.html - there is also a newsgroup microsoft.public.dotnet.framework.remoting

What specifically are you trying to achieve with RPC?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now