The problem with trying to run an executable from an ASP.NET application is
that you are opening a potentially hazardous security issue with this
application, especially if this runs over the Internet. In general, it is
truly unadvisable to perform this type of function.
Now, if your goal is copy files from server to client's FTP site, then why
not use the functionality available in .NET. If you're using .NET 2.0,
there are FtpWebRequest and FtpWebResponse classes that can provide similar
functionality. In .NET 1.1, you can use the WebRequest and WebResponse
classes to create FTP functionality.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."
"Incorrect filenames in download link."
<In******************************@discussions.micr osoft.com> wrote in
message news:53**********************************@microsof t.com...
Thanks for your response.
"Christopher Reed" wrote:
If you're trying to launch a program from an ASP.NET application, keep in
mind that you are asking the server to run this application, not the
client.
Any commands that are executed in the server-side code is run on the
server.
Yes, I know its run on server side.
Additionally, why do you want to run an EXE from a web application. From
a
security perspective, this is very ill-advised.
What do you really want to do?
I am automating the transfering files from server to clients PSFTP site.
'psftp.exe' is a command line program for transferring files.
My doubts:
1) As i told before that command is running fine through command prompt
and
also working fine in .net console application. But it is not working in
web
application. May be some security settings are blocking the connection to
site.
2) Web application is accessing the system as a ASPNET user not the
administrator user. When we run the command through command prompt we are
administrator users so it is working fine. May be there is a problem with
this type of user access.
Please give your valuable information,
Thanks.