4

I currently have two programs that need to comunicate one with another. It doesn't have to be something complicated, it's just passing data from one to another, all very simple. I was thinking of using .net remoting, but I've heard there's a new thing WCF. Should I go for the .net remoting or try WCF? Or is there something simpler to use?

edit: Both applications are simple, I don't want to have anything to do with IIS, services and such.

Thanks

devoured elysium
  • 101,373
  • 131
  • 340
  • 557

6 Answers6

5

use WCF with named pipes binding, here you can find useful examples

Arsen Mkrtchyan
  • 49,896
  • 32
  • 148
  • 184
2

WCF has a bit of a learning curve, but it's a very powerful communication framework. If you have some time to learn it, I'd recommend that over .NET remoting.

If you just need a super-simple mechanism, you could just write data to a file, then read it from the other program (assuming same machine). If it has to go over the network, using a plain Socket in .NET isn't too bad.

Andy White
  • 86,444
  • 48
  • 176
  • 211
2

The magic phrase is "inter-process communication". Then you'll be able to find answers like this.

Community
  • 1
  • 1
dso
  • 9,463
  • 10
  • 53
  • 59
1

I've used .Net remoting for this in the past, and its worked very well for me. Its very simple and straightforward for something like you describe.

jsight
  • 27,819
  • 25
  • 107
  • 140
1

If you look into WCF now, I really don't think you would regret later. WCF is great and useful for this purpose.

Ezombort
  • 1,892
  • 3
  • 16
  • 20
1

If you want something really simple, just put the data in a database or a file.

Lance Roberts
  • 22,383
  • 32
  • 112
  • 130