I am trying to upload zip files to a asp.net server. Its working fine on my local box when I run the server from VS but not for larger zips remotely. Remotely I am running IIS6.
It works great both remotely and locally on zips smaller than about 10mb and has been for months. Only recently have I needed anything larger.
Here is my code for uploading:
WebClient client = new WebClient();
client.UploadProgressChanged += onProgress;
client.UploadFileCompleted += onComplete;
client.UploadFileAsync(new Uri(url), filePath);
return client;
My code for receiving is:
Request.Files[0].SaveAs(pathToSave);
My web.config looks like:
<httpRuntime maxRequestLength="102400" useFullyQualifiedRedirectUrl="true" executionTimeout="5400"/>
The error I am getting remotely is that Request.Files is length 0.
Any idea on this or the best way to debug?