473,408 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Re: How to change directories using FtpWebRequest?

Hi,
I have the similar question?
I can upload the file on root but i can't under the folder(FTP_TEST).
For example;
It works
string uri = "ftp://" + ftpServerIP + "//" + "TQ.bmp";

But it throws the error when i wanted to upload file in sub
directory(FTP_TEST).

string uri = "ftp://" + ftpServerIP + "//" + "FTP_TEST" + "//" +
"TQ.bmp";

Thanks,

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #1
3 3475
On May 20, 1:40 am, kooka koo <kooka...@hotmail.comwrote:
Hi,
I have the similar question?
I can upload the file on root but i can't under the folder(FTP_TEST).
For example;
It works
string uri = "ftp://" + ftpServerIP + "//" + "TQ.bmp";

But it throws the error when i wanted to upload file in sub
directory(FTP_TEST).

string uri = "ftp://" + ftpServerIP + "//" + "FTP_TEST" + "//" +
"TQ.bmp";

Thanks,

*** Sent via Developersdexhttp://www.developersdex.com***
Make sure directory exists.(FTP_TEST) and what exception you get is
somehow more important.

Thanks,

Onur Güzel
Jun 27 '08 #2
FTP_TEMP exists and the error message is
"{"The remote server returned an error: (550) File unavailable (e.g.,
file not found, no access)."}"

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #3
On May 20, 5:18 pm, kooka koo <kooka...@hotmail.comwrote:
FTP_TEMP exists and the error message is
"{"The remote server returned an error: (550) File unavailable (e.g.,
file not found, no access)."}"

Thanks

*** Sent via Developersdexhttp://www.developersdex.com***
In your example you use FTP_TEST folder to upload file but in your
previous reply you stated FTP_TEMP? A typo?

Thanks,

Onur Güzel
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: SevDer | last post by:
Hi, I am trying to write a simple application which copies the predefined files (hardcoded in the code) to my ftp server. I couldn't make it working. I don't want to use any 3rd party...
6
by: William LaMartin | last post by:
Could someone show me how to use the FtpWebRequest and change to a different directory? Changing directories is not listed as one of the methods, but I believe it can be done--just can't figure...
2
by: deciacco | last post by:
is there way to use the ftpwebrequest class to send the list -r command? thanks
5
by: Sendil kumar | last post by:
Hi All, The FtpWebRequest.GetResponse( ) method is not giving "550 File not found exception " when I do a directory list operation on a invalid(not present) directory in HP Unix and Sun Solaris...
1
by: rupan | last post by:
Getting ERROR: The remote name could not be resolved? why? ************************************************************************************** Try Dim reqUri As String ...
1
by: =?Utf-8?B?ZGF2ZWg0Mg==?= | last post by:
Hi, We want to upload a file to a business partner using FTP with SSL from our intranet. Our proof of concept solution in VB uses FtpWebRequest based on an example at...
10
by: rahulvachhani | last post by:
Hello, I am trying to upload a file to a ftp site. I have my code pasted below. FtpWebRequest reqFTP; reqFTP = (FtpWebRequest)FtpWebRequest.CreateDefault(new...
5
by: TC | last post by:
Hey All, I'm trying to upload files via FTP and I'm using FtpWebRequest and WebClient. Unfortunately, I'm receiving a "Not Logged In" error. I know that others have seen this as I've seen...
9
by: Waldy | last post by:
Hi there, I have written a service in VS2005 that downloads files from an FTP site processes them and then deletes the files if successfully processed. It all works fine when run in our test lab...
6
by: Patrick.Simons | last post by:
I try to connect a FTPWebRequest through Proxy and VPN to a remote FTP- server. Sometimes it works sometimes not. When my VB.Net-App (2005) returns the error on the GetResponse-Method, I'll try to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.