Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I would like to create a folder in the server but I get an error.

Is there anyone who knows how to create a folder in the server?

My codes:

C#
FtpWebRequest ftp = (FtpWebRequest)FtpWebRequest.Create("ftp://mekmarcell.mekmar.com/MatbuEvrak/" + "yeni" + @"/");
           ftp.UseBinary = true;
            ftp.Credentials = new NetworkCredential("mekmarcell.mekmar.com", "*******");

            ftp.Method = WebRequestMethods.Ftp.MakeDirectory;
               FtpWebResponse respons = (FtpWebResponse)ftp.GetResponse();
               Response.Write(respons.StatusDescription);


The error: The remote server returned an error: (550) File unavailable (e.g., file not found, no access).
Posted
Updated 7-Oct-12 23:57pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900