Re: Problem with psftp in .NET.
- From: "Christopher Reed" <carttu@xxxxxxxxxxxxx>
- Date: Tue, 14 Feb 2006 00:38:31 -0600
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."
<Incorrectfilenamesindownloadlink@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:53FF79DF-E413-4640-B468-A5B0F2EAB94F@xxxxxxxxxxxxxxxx
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.
.
- References:
- Re: Problem with psftp in .NET.
- From: Christopher Reed
- Re: Problem with psftp in .NET.
- Prev by Date: RE: Installing .net 1.1 after installing 2.0
- Next by Date: RE: TreeNode in bold clips the label also if Treeview Fond is bold
- Previous by thread: Re: Problem with psftp in .NET.
- Next by thread: Re: plz explain this error message
- Index(es):
Relevant Pages
|