System.Net.WebClient and UploadFile() Problem  
Author Message
Amos Soma





PostPosted: ASMX Web Services and XML Serialization, System.Net.WebClient and UploadFile() Problem Top

I am using WebClient to upload a file to a remote server. The call I'm making looks as follows:

webClient.UploadFile(" http://www.hide-link.com/ ; );

'Federation' is a virtual directory on the server I'm attempting to upload the file to. The URL is valid and the file I'm attempting to transfer exists. I keep getting 404 errors (not found). It's not clear to me exactly what cannot be found. If I attempt to download this exact file from the same exact URL using webClient.DownloadFile, it works fine!

Thanks for the help - Amos.



.NET Development4