473,383 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to run / invoke an application on server.

Hi ,
I am having server and client. Client is a test machine.
I want to invoke the application binary which resides on
server from client machine. The binary is created using
C#. Please note that I know the administrative password
for the server. Can some one help?

TIA,
Vinay
Nov 15 '05 #1
2 1744
Couple ways. Here is three:
1) get pexec from winternals.com that can start exes on remote boxes.
2) Create a Remoting Host or web service that has a "int StartApp(string
appPath)" method that uses process.start and can return an exit code, etc.
3) Schedule it.

--
William Stacey, DNS MVP

"Vinay" <vi***********@hotmail.com> wrote in message
news:18****************************@phx.gbl...
Hi ,
I am having server and client. Client is a test machine.
I want to invoke the application binary which resides on
server from client machine. The binary is created using
C#. Please note that I know the administrative password
for the server. Can some one help?

TIA,
Vinay

Nov 15 '05 #2
Vinay,

You can not use the Process class to invoke a process on another machine.
But you do have several options:

1) Make the server app a .NET remoting server (turn it into a Windows
Service, or make it a console app that you leave running at all times, or
host it in IIS). Make remoting calls from the clients to the server
application.

2) Make the server app a web service and write your clients to consume the
web service.

3) Write a separate .NET remoting server that can launch applications on
that machine based on client requests.

4) No doubt, other possibilities I haven't thought of ;-)

In my view, (1) using a binary formatter and TCP protocol is the best and
most efficient choice if server and clients all run under the .NET CLR
especially if all clients are on the same network and inside the same
firewall as the server. (3) is a reasonable alternative if the server app
is not a CLR managed app. Your remoting server can use the Process /
ProcessInfo classes to launch the unmanged app, pass arguments to it, talk
to it as an ActiveX server if appropriate, etc. (2) Is a possibility if
clients are oustide the server's firewall or out on the public Internet.

--Bob

"Vinay" <vi***********@hotmail.com> wrote in message
news:18****************************@phx.gbl...
Hi ,
I am having server and client. Client is a test machine.
I want to invoke the application binary which resides on
server from client machine. The binary is created using
C#. Please note that I know the administrative password
for the server. Can some one help?

TIA,
Vinay

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Richard | last post by:
Hello, I'm working on an application to allow our network team to use a small application to make DHCP reservations on our Microsoft DHCP Server. The problem is you have to use P/Invoke to do...
3
by: Ricardo Vazquez | last post by:
Hi! I have a new problem with this SCENARIO I already described in a previous post: - PBX (a private telephone exchange or switch) - A Telephony Server Application running on computer "A" (it...
2
by: Vighneswar | last post by:
Hi All I am doing with a standalone application in .NET, where I have to invoke the Outlook / Outlook Express by passing account info (username, password, pop3 server, ... etc) and SQL Server...
0
by: angelim | last post by:
Hi All, I'm new here at this forum. I'm trying to find solutions on our probably sql or network issue. Database error . General Network Error. It appears when we are using our ERP...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.