473,414 Members | 1,716 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,414 software developers and data experts.

WebRequestMethods.Ftp cd command help

hello,

I'm trying to send custom commands using the methods object and I am
too dense to figure it out;

FtpWebRequest request =
(FtpWebRequest)WebRequest.Create("ftp://server");
request.Credentials = new NetworkCredential("user", "pwd");
request.Method = "ls";

or CD or any other command I always get this error

System.ArgumentException was unhandled
Message="This method is not supported.\r\nParameter name: value"
Source="System"
ParamName="value"
StackTrace:
at System.Net.FtpWebRequest.set_Method(String value)
at ConsoleTest4.Program.Main(String[] args) in C:\Documents and
Settings\saul01\My Documents\Visual Studio
2005\Projects\ConsoleTests\FtpTest\FtpTest\Class1. cs:line 14
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile,
Evidence assemblySecurity, String[] args)
at
Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context( Object
state)
at System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Just a little bit of help would be appreciated!!!!!!!!!

L. Lee Saunders

Jan 9 '06 #1
0 2683

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

Similar topics

12
by: Rhino | last post by:
I am having an odd problem: the sqlj command on my system doesn't work. I am running DB2 (LUW) V8 (FP8) on WinXP. I haven't done an sqlj program since Version 6 of DB2 (LUW) so I checked the...
34
by: Roman Mashak | last post by:
Hello, All! I'm implementing simple CLI (flat model, no tree-style menu etc.). Command line looks like this: <command> <param1> <param2> ... <paramN> (where N=1..4) And idea is pretty simple: ...
16
by: John Salerno | last post by:
Here's my new project: I want to write a little script that I can type at the terminal like this: $ scriptname package1 where scriptname is my module name and any subsequent arguments are the...
3
by: Bob Phillips | last post by:
Hello All: I am building a small app that will download files from an FTP server (SCO Unix). I am told that the filenames may be reused, so I have to check the file size. However, the...
0
by: William LaMartin | last post by:
The results I get below are as expected except for the Date/Time information. This seems to be a bug in System.Net.WebRequestMethods.Ftp.ListDirectoryDetails. It is not allowing enough space for...
0
by: ajzele | last post by:
Is there a way for me to send a raw ftp command to a ftp server? Sample code: FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://192.168.140.81/ftproot/proba.txt"); ...
51
by: Ojas | last post by:
Hi!, I just out of curiosity want to know how top detect the client side application under which the script is getting run. I mean to ask the how to know whether the script is running under...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
5
by: rinoesc | last post by:
Hello, I'm trying to create a ftp application for Windows Mobile. I'm using VisualStudio 2008 with OpenNETCF Framework for Windows Mobile. I have a problem with the following code... string...
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
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
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...
0
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...
0
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,...
0
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...

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.