Interprocess Communication

Posted on 2006-06-06
Last Modified: 2010-04-16
I have two applications on the same computer. A windows service that monitors a directory for newly generated text files, and a console application that should output the contents of that file.
Now i want these two applications to communicate in real time. But i don't know how can i achieve this. Microsoft provides serveral mechanisms for interprocess communication like
Data Copy
File Mapping
and  Windows Sockets
Please tell me which one is suitable in my case and if possible provide an example as well.
Many thanks in advance.
Question by:technocrap
    LVL 6

    Expert Comment

    Hello Dear

    there soap protocol is used to communicate with websevice. U can communicate with websevices with proxy class (WSDL).

    Best Regards

    Author Comment

    I am not talking about webservice, but "Windows Service".
    LVL 9

    Accepted Solution

    LVL 7

    Expert Comment

    Use Noulouk's comment,.. this is a method for in the box interprocess communication..

    basicly it all comes down writing you own class with stuff like "AddNewCustomer(...) ProcessBill(..)" etc,..

    All communication stuff is handled for you,.. so this is the way to go in my opinion! (and noulouk's )


    LVL 13

    Expert Comment

    .NET remoting is by far the best and most efficient way for applications in different app domains to communicate.


    XML/SOAP web services are for more contractual xsd typed messaging.  Even though they are often abused in an RPC style way they are not a good fit for interproc com.
    LVL 13

    Expert Comment

    Let me clarify, its by far the best when both applications are .NET based and do not need multilanguage capability.

    .NET remoting offers several transport mechanisms, binary, http, soap, ect.  I would avoid SOAP and only use http if you need to traverse firewalls, ect.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
    Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now