How to communicate between two Dot Net application
-
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
-
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
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
-
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
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
-
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
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
-
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
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).
-
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
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