473,813 Members | 3,307 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_T EST).

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

Thanks,

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #1
3 3491
On May 20, 1:40 am, kooka koo <kooka...@hotma il.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_T EST).

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

Thanks,

*** Sent via Developersdexht tp://www.developersd ex.com***
Make sure directory exists.(FTP_TES T) 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...@hotma il.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 Developersdexht tp://www.developersd ex.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
9472
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 components, because I want to learn. (I am using .NET Framework 2.0, but I don't think my problem is because of 2.0) ########################################
6
9463
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 out how.
2
1892
by: deciacco | last post by:
is there way to use the ftpwebrequest class to send the list -r command? thanks
5
7696
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 system, but the same is working fine in windows. For example, this is my uri to connect to the Sun Solaris server machine "ftp://ssriniva:ssriniva@apfsun/apfqa/users/ssriniva/apfhome/config" here the 'config' folder is not present in the...
1
1765
by: rupan | last post by:
Getting ERROR: The remote name could not be resolved? why? ************************************************************************************** Try Dim reqUri As String reqUri = "ftp://domeinname.com" Dim req As FtpWebRequest = CType(WebRequest.Create(reqUri), FtpWebRequest)
1
1898
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 http://www.123aspx.com/redir.aspx?res=34336: Dim reqObj As FtpWebRequest = WebRequest.Create("ftp://ftps.example.com:1742/123456789_12-31-2007") reqObj.EnableSsl = True
10
31082
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 Uri(@"ftp://<IPAddress>/<FolderName>/" + fileInf.Name)); reqFTP.Credentials = new NetworkCredential(@"username", "password");
5
7920
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 postings but I haven't seen any clear resolution.
9
3905
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 with an FTP site that I setup on IIS. However, I have an issue at the customer site. Their FTP server is on Linux, but I presume that is not an issue. What happened the first time I ran it was that it deleted every other file. It just so...
6
13696
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 use the Windows Explorer to go on the FTP-URI and this always works. So the problem should come from my app. my simplified code: Private m_oFTP As FtpWebRequest Private oResponseDir As FtpWebResponse = Nothing
0
10669
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10141
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9225
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7686
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5707
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3886
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.