Re: Remoting or windows service

From: kiln (kiln_at_brick-like.com)
Date: 07/21/04


Date: Wed, 21 Jul 2004 08:27:41 -0700

Thanks, all of that is very a helpful window into this realm. All I
meant by noting that it seemed that two (or more as it turns out)
separate programs needed to be built was that the client end and the
server end are competely separate applications; they just know how to
talk to each other.

Thanks for writing up such a decent overview of the remoting dev process
for a newbie.

In article <u1m2bnxbEHA.3420@TK2MSFTNGP12.phx.gbl>,
rockfamily@REMOVEME.hotmail.com says...
> kiln wrote:
> > I'm also completely new to remoting...one thing I was wondering, with
> > remoting it would seem that there are two almost separate programs
> > involved, the client and the server.
>
> Well, the whole point of .NET Remoting is to make 2 or more applications
> communicate with each other. I guess that you can use remoting to make an
> application communicate with itself but i don't really the point of doing
> that. So yes, there are usually at least 2 seperate programs involved when
> you play with .NET Remoting.
>
> > app? I have vs.net but I'm just wondering about the mechanics of how
> > they are developed. Does vs.net provide a way to work with the client
> > end and the server end at the same time, or does one build out the
> > server end first and then the client interface?
>
> Building a .NET application is done in 3 steps. Imagine that you have a
> class BookingManager that contains a method MakeBooking() and that you want
> to host this class on a server application to allow any client application
> on the web or on your LAN to call the MakeBooking method. Here are the 3
> steps to be taken to do that:
>
> 1) Define the interface that describe your BokkingManager class so that both
> the client and server apps now what you are talking about
> 2) Implement this class in the server app and say that it can be accessed
> via .NET Remoting
> 3) Create a client app that connects to the server and call the MakeBooking
> method
>
> That's it. This means that you'll have to create 3 projects: one for the
> interface of your remote object (here the BookingManager class), one for the
> client application and one for the server application. How you manage those
> 3 projects is up to you. You can put them in 3 seperate solutions (in this
> case you'll have to have 3 instances of visual studio open at the same time
> if you want to work on the 3 projects at the same time) or you can put them
> all in the same solution in which case they will all appear in the same
> window of Visual Studio. You can implement the server app before the client
> app or the client app before the server app but in any case you'll need to
> first design the interface of your remote object.
>
> I'm not going to give you any sample code or detailled explanation because:
> 1) i'm not a very good teacher
> 2) there are already plenty of tutorials for beginners in .NET Remoting on
> the web (look at the code project web site for example)
>
> > I was wondering, is are there are any demo apps up on the web, that
> > allow guest users get the client app, log in, and enter junk data? I'd
> > be a kick to see it in action.
>
> This would be something trivial to do but i've never heard of anything like



Relevant Pages

  • Re: Events in .Net Remoting
    ... I am writing with respect to the Events in .Net Remoting that I had ... another channel for the callbacks..both on client side. ... Then I force a method on the server end (through a GUI control on the ... >> the regular client side requests still work fine. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: passing structs (setializable) object in web service
    ... The philosophy of webservices is different than that of remoting. ... follow Seely's advice as Christoph pointed out earlier - you have to modify ... > having total control over both client and server types. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Using kerberosSecurity Throws Security Exception
    ... I am experiencing this error while trying to use a Windows XP client ... application to access a web service located on a W2k3 server. ... client app on the server, ... > Account with a Custom Principal Name using SetSPN.exe utility. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Questions about Remoting, objects, threading. lease lifetime and object cleanup, and a couple of
    ... so long as the Client app is ... always refering to the same server object. ... it sets its ClassOne object to nothing and goes away. ... >>The client app at some point is going to become an ASP.Net app also. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Delegate Failure after Migration to .NET 2.0 - Vista
    ... remoting to work in .NET 2.0 for you? ... ActivatedClientTypeEntry entry = new ... I make the single below call in order to register my server type. ... the client. ...
    (microsoft.public.dotnet.languages.csharp)