Re: What is the best method for .NET App inter process communication?



There's a specific channel available with the FW specifically for this purpose - the IPC Channel. But it's gonna be available only with .NET 2.0. You should use the HTTP channel for avoiding firewall problems though it's a bit slower and has an heavier payload.
 
There's a sample using Named Pipes in case you are intrested:
 
http://www.gotdotnet.com/community/usersamples/details.aspx?sampleguid=43a1ef11-c57c-45c7-a67f-ed68978f3d6d
 
Have a look
 
HTH, Metallikanz!
 
 
"Thanga" <thangarasu@xxxxxxxxx> wrote in message news:1124291121.891189.38570@xxxxxxxxxxxxxxxxxxxxxxxxxxxx...
> Hi Experts,
> I have a standalone desktop application, a windows service and  couple
> of MS Office Add-ins. All these applications run in the same computer.
> The Desktop Application needs to talk to Windows service and Office
> Add-ins and Vice versa.
>
> Since all these three are running under the different process space and
> may be under different identity, what is the best method for these
> processes to talk to each other. My main requirement is that it should
> not trigger the firewall application. (.NET remoting does trigger)
>
> I have considering the following options.
> 1). File based mechanisms which we use currently.
> 2). .NET remoting with TCP channel
> 3). ..NET remoting with Named Pipes(To be developed as custom channel)
> 4). OLE Automation using DCOM.
>
> I am biased to use .NET remoting if I could get through without
> triggering firewall. This boils down to .Net Remoting with Named pipes.
>
>
> My Questions are:
> 1). Is there any way I can suppress the Firewall warning dialog in ..NET
> Remoting TCP. Note, it should not require to open the port explicitly
> at the desktop.
>
> 2). Is there any other mechanism I can effective use to communicate
> between .NET applications?
>
> 3). Is it possible to implment OLE Automation in .NET without using a
> un-managed code?
>
> 4). If I decided to go with .NET remoting and Named Pipes, Can I
> register the custom channel without using the app.config? Because,
> Office applications do not have app.config file. How I can register for
> these office add-ins?
>
> Thanks
> Thanga
>


Relevant Pages

  • RE: [fw-wiz] Apples iSight and Firewalls
    ... Some firewalls support monitoring the H.240 command channel for 'open data ... This is the Swiss-cheese problem. ... I've no idea what iSight would need through the firewall. ...
    (Firewall-Wizards)
  • Re: Is the Gaobot virus blocked with a firewall?
    ... It would depend, I think, upon the type of firewall used and how it is ... Lock down the open ports and nothing is getting in. ... To have an IRC channel, there is an open port through ... >> You're confusing how it infects with how attackers can use an IRC ...
    (microsoft.public.windowsxp.general)
  • Re: .net remoting over internet
    ... look inline your code: ... //put there the external IP of your firewall ... //this makes the channel to use the machine name we sppecified ... > serverProvider); ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Is the Gaobot virus blocked with a firewall?
    ... So the answer is, "yes, a firewall will block the Gaobot virus." ... > If you knew how a firewall works you'd have seen the answer in what I ... > Alan wrote: ... >> channel. ...
    (microsoft.public.windowsxp.general)
  • Re: How does one disable the CrossAppDomain channel?
    ... I did write my own custom channel in the past and I had no problem testing ... same-machine unit testing of custom channels impossible. ... Via remoting, any machine can instance a remote object (a client activated ...
    (microsoft.public.dotnet.framework)