ftp file transfer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have developed a vb web application to allow client copy files to an ftp
remote site.
The problem is ttha when i debug my application all seems to work fine, but
when i deploy it on the web server, after i have chosen the file i want to
copy, the application throws an execptio "unable to find the file..". its my
opinion it depends from the user of the browser.
Can someone help me
Thanks
Steve
 
I am going to guess that you have done a fairly common thing: you have
assumed that a user can send a file as easy as they send a filename to a web
site. This is a very common mistake.

If you have allowed the user to browse for a file name, or to type one in,
that's cool. However, you also have to allow them to upload it to your web
server from your client, and not try to have the ASP.Net app just "open" the
file. Of course this works just fine if you are running the app on your
machine, because the file is on your machine, but it won't work on a web
server.

I'm guessing at the nature of your problem from the description you gave.
If I guessed wrong, and you'd like further help, please post code to
illustrate the problem.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
I'm not sure You're right.
I mean that my web server allows general clients (for example explore) to
put files in its ftp directory. But the page I have developed works only on
my client (where .net is installed).
However, if this is what You intend, can You fix me some code to solve the
problem?
Thanks
 
I will help you if you will help me.

Please post a short but complete program that illustrates the problem. See:
http://www.yoda.arachsys.com/csharp/complete.html

You have provided me with no additional information with which to diagnose
your problem.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
I have had problems with FTP if the filename contained a # or
international characters like é ('e), ë ("e).
 
Back
Top