Re: Best way to auto-start Remoting host that is a Windows Forms app?



Thanks for the info.

Currently I am just trying using Process.Start to launch the host app from
the client app and putting in a short delay with a splash screen and it
works well. Very simple and clean. Eventually I'll do what you do in
wrapping it up into a client-side DLL for reuse and encapsulation.


"Daniel Moth" <dmoth74@xxxxxxxxxxx> wrote in message
news:uCMYAeEZFHA.3620@xxxxxxxxxxxxxxxxxxxxxxx
> I have not encountered any clean solution to that and I too prefer the COM
> autolaunching of out-of-proc servers.
>
> You could have a client-side dll that does the launching of the host
process
> etc. The requirement now is that the client "touches" the dll before going
> anywhere near to the exe (or to be precise, the dll hosted by the exe).
>
> In fact, I have thin proxy objects in my client side dll that simply
forward
> the calls to the corresponding remoted object and hence the client apps
> don't even know/reference the remoted dll - they do everything through the
> local dll and the out-of-proc business is transparent. There are other
> benefits to that like translating chatty calls to chunky, validating
> arguments in-proc etc.
>
> Cheers
> Daniel
> --
> http://www.danielmoth.com/Blog/
>
>
> "None" <none@xxxxxxxxxxx> wrote in message
> news:%23W599fAZFHA.2884@xxxxxxxxxxxxxxxxxxxxxxx
> >I have a Windows Forms app. that acts as a Remoting host for my client
> >apps.
> > I don't really want to turn the host app into a Windows Service if I
don't
> > have to. What are my options for auto-launching the host app when a
> > client
> > needs it? (the host app already acts as a Singleton so only one
instance
> > will ever run)
> >
> > I see a couple of options, none very nice:
> >
> > 1) Have the client start the host application. The problem I see with
> > this is that I have to build in logic in the client to detect that the
> > host
> > is started and ready.
> >
> > 2) The host application also acts as an OPC server. The clients could
> > create an OPC connection to the server and Windows will launch the host.
> > The problem with this is some of my client apps don't really need the
OPC
> > functionality so this is kind of a hack.
> >
> > 3) Create a Windows Service that is nothing but a listener for Remoting
> > activation requests from the clients. The service will then launch the
> > host
> > app. Yuck.
> >
> > Please suggest other options! One nice thing about COM was that Windows
> > will launch out-of-process servers for you. I wish Microsoft had done
the
> > same thing for Remoting.
> >
> >
>


.



Relevant Pages

  • Re: Dumbass user or problem with regsvr32
    ... I decomissioned my last Win16 machine in 1999; I needed it to check out legacy code, ... I'm disinclined to ever develop another app to run on MS-DOS. ... that a client needs validation that the app can run on 4.0. ... >I once had similar errors because i was trying to register a dll on Win98 ...
    (microsoft.public.vc.mfc)
  • Re: Best way to auto-start Remoting host that is a Windows Forms app?
    ... Currently I am just trying using Process.Start to launch the host app from ... I have thin proxy objects in my client side dll that simply ... > I don't really want to turn the host app into a Windows Service if I ...
    (microsoft.public.dotnet.framework.remoting)
  • COM Question
    ... If you register a new dll, then it shows up in the ... list as an available device in the various host applications. ... The new app is C#. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Best way to auto-start Remoting host that is a Windows Forms app?
    ... I have a Windows Forms app. ... I don't really want to turn the host app into a Windows Service if I don't ... What are my options for auto-launching the host app when a client ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Best way to auto-start Remoting host that is a Windows Forms app?
    ... You don't say if the client will always need the Remoting host or not. ... Instead of the menu or desktop icon referencing the client app ... The logic for determining if a Windows application is running is not ...
    (microsoft.public.dotnet.framework.remoting)

Loading