Running EXE's on ASP 2.0 server

  • Thread starter Thread starter joe
  • Start date Start date
J

joe

I have the following code in an aspx.cs file:

[snip]
string strLocation;
strLocation = Server.MapPath(".")+"\\test.exe";
System.Diagnostics.Process Proc = new System.Diagnostics.Process();
Proc.StartInfo.FileName = strLocation;
Proc.Start();
[snip]

That should launch TEST.EXE on the server (the server I have is a web hotel with
Windows asp 2.0).

Where does the exe "live"? In the server's memory space or the clients PC?
What if the client is running Linux and not Windows?

What limitations are there to running an EXE on the server?
 
I have the following code in an aspx.cs file:
[snip]
string strLocation;
strLocation = Server.MapPath(".")+"\\test.exe";
System.Diagnostics.Process Proc = new System.Diagnostics.Process();
Proc.StartInfo.FileName = strLocation;
Proc.Start();
[snip]

That should launch TEST.EXE on the server (the server I have is a web hotel
with Windows asp 2.0).

Where does the exe "live"? In the server's memory space or the clients PC?
What if the client is running Linux and not Windows?

What limitations are there to running an EXE on the server?

Your code-behind lives on the server, so that program is executed
on the server as well. It runs under the account that is used by the
web-application, usually a low-priviledge account and it can't interact
with a desktop.

Hans Kesting
 
Back
Top