Is there anyone who can maybe explain the error I am getting on this? The error I receive
The process cannot access the file 'C:\Users\Roelf\Documents\test555.wav' because it is being used by another process.
Everything is closed. I even restarted everything. Downloading works like a charm though. I used this post as a reference. Any help is greatly appreciated (Note: I know the error is telling me that the file is being used by something else. The problem is I can't figure out what as VS is the only programme currently using it.)
public void UploadAudioFile(string filename)
{
string path0 = Path.Combine("ftp://vps573557.ovh.net/TranscriptionData/AudioFiles/", filename);
string path1 = Path.Combine(@"C://Users/Roelf/Documents/Transcriptions/", filename);
WebClient client = new WebClient();
client.Credentials = new NetworkCredential("user", "pass");
client.UploadFile(path0, path1);
}