Running EXE's on ASP 2.0 server

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?
 
H

Hans Kesting

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top