473,698 Members | 2,339 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1760
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
7639
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 it, and from what I've found on the web and in this newsgroup is that it's not easy, however I believe it can/has been done. At the moment I'm just trying to find out information about an existing
3
1601
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 communicates with the PBX via IP) - An ASP.NET application (running on computer "A") for web clients of that telephony server (running on computer "B", "C", etc.)
2
2495
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 client by passing the connection details. I request anyone can suggest me the approach in meeting the requirement. Thanks in advance. Regards
0
1091
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 applications. We have maximum of 18 users accessing the server and it takes too slow when opening each application. Then while posting a transaction this error appears.
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9027
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.