471,610 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

WebRequestMethods.Ftp cd command help


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

FtpWebRequest request =
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"
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[]
at System.AppDomain.ExecuteAssembly(String assemblyFile,
Evidence assemblySecurity, String[] args)
Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context( Object
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 2622

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Rhino | last post: by
34 posts views Thread by Roman Mashak | last post: by
16 posts views Thread by John Salerno | last post: by
3 posts views Thread by Bob Phillips | last post: by
reply views Thread by leo001 | last post: by

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.