Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to communicate between two Dot Net application

How to communicate between two Dot Net application

Scheduled Pinned Locked Moved C#
sysadmintutorialquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    devesh_code
    wrote on last edited by
    #1

    Hello I want to know that how to communicate between two same dot net application running on two different systems. This application is not a client - server application. And also tell me, how would i know that application is running on another system or not ??? Thanks

    Devesh Mishra

    K I H 3 Replies Last reply
    0
    • D devesh_code

      Hello I want to know that how to communicate between two same dot net application running on two different systems. This application is not a client - server application. And also tell me, how would i know that application is running on another system or not ??? Thanks

      Devesh Mishra

      K Offline
      K Offline
      KKrista
      wrote on last edited by
      #2

      Hi Devesh, One of the easiest way is to use a common file between the applications. The other way would be to use the config file and have some keys specific to each process. To know if ur application is running, u can search for ur application name in the Processes list of the machine where u have to search at.

      Regards, Murali

      D 1 Reply Last reply
      0
      • K KKrista

        Hi Devesh, One of the easiest way is to use a common file between the applications. The other way would be to use the config file and have some keys specific to each process. To know if ur application is running, u can search for ur application name in the Processes list of the machine where u have to search at.

        Regards, Murali

        D Offline
        D Offline
        devesh_code
        wrote on last edited by
        #3

        Hi Murali Thanks for ur reply. Would you tell me please, how to use config file between the applications and keys specific to each proces. Thanks

        Devesh Mishra

        K 1 Reply Last reply
        0
        • D devesh_code

          Hi Murali Thanks for ur reply. Would you tell me please, how to use config file between the applications and keys specific to each proces. Thanks

          Devesh Mishra

          K Offline
          K Offline
          KKrista
          wrote on last edited by
          #4

          While developing ur application, in the app.config file, create a key (say 'instancenumber'). Then at runtime, set the key to a value (say '1','2',etc.) based on the instance of the application running. This will enable you to associate information specific to each instance.

          Regards, Murali

          1 Reply Last reply
          0
          • D devesh_code

            Hello I want to know that how to communicate between two same dot net application running on two different systems. This application is not a client - server application. And also tell me, how would i know that application is running on another system or not ??? Thanks

            Devesh Mishra

            I Offline
            I Offline
            Ilya Verbitskiy
            wrote on last edited by
            #5

            Hello, Why don’t you want to use .Net Remoting. I think that this solution will be easy. Or you can use Global Shared Memory, but if you choose this solution, you’ll work with P/Invoke (DllImport).

            1 Reply Last reply
            0
            • D devesh_code

              Hello I want to know that how to communicate between two same dot net application running on two different systems. This application is not a client - server application. And also tell me, how would i know that application is running on another system or not ??? Thanks

              Devesh Mishra

              H Offline
              H Offline
              Hesham Yassin
              wrote on last edited by
              #6

              you need to use a kind of connection to send or get protocols or packages. i give u some tips to learn about that: Search for the classes of the library System.NetWork

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups