I am writing chat application and I have form for file transfer. I can upload file to server but when ı tried download file ı am getting error "Access denied to D:\dd folder". I also gave the folder full control for all users and my windows account is administrator authorized. I also tried running Visual Studio as an administrator. Download click;
           {
        string inputfilepath = txtSavePath.Text;
        string ftphost = "185.86.4.200:21";
        string ftpfilepath = "/" + txtFileN.Text;
        string ftpfullpath = "ftp://" + ftphost + ftpfilepath;
        using (WebClient istek = new WebClient())
        {
            istek.Credentials = new NetworkCredential(txtUser.Text, txtPass.Text);
            byte[] fileData = istek.DownloadData(ftpfullpath);
            using (FileStream file = File.Create(inputfilepath))
            {
                file.Write(fileData, 0, fileData.Length);
                file.Close();
            }
            MessageBox.Show("İndirme Tamamlandı!");
        }