Hello All,
I am trying to upload files of size > 100MB using WSE 2.0 (SP1/SP2). My
client is a .Net C# client which communicates with .Net ASP WebService
running on IIS 5.0. I have configured web.config and app.config to allow
maxRequestLength=1000000, which should equal 1GB. And I have set
executionTimeout=1800. I am attaching DimeAttachment in my HttpRequest
using:
DimeAttachment dimeAttach = new DimeAttachment("application/zip",
TypeFormat.Unchanged, @"D:\downloads\140MB.zip");
proxy.RequestSoapContext.Attachments.Add(dimeAttach)
But this request fails after approx 1800 seconds, with error message:
"Underlying Connection was closed. There was a error on send".
I have set keepAlive to false on the Client using:
protected override WebRequest GetWebRequest(Uri uri)
{
Microsoft.Web.Services2.SoapWebRequest webRequest =
(Microsoft.Web.Services2.SoapWebRequest)base.GetWebRequest(uri);
HttpWebRequest httpRequest = (HttpWebRequest)webRequest.Request;
httpRequest.KeepAlive = false;
return webRequest;
}
I have also tried setting httpRequest.SendChunked = true; But that setting
fails with "400 Bad Request" reply from server.
Has anyone tried uploading large files using WSE?
I need to resolve this problem urgently. Any help or any pointers would be
greatly appreciated.
If there is any other approach to achieve large file uploads please let me
know.
Best Regards,
Ritu Kedia
SA - 10 Feb 2005 00:49 GMT
It's probably your IIS configuration. There are two timeouts in IIS that may
play a role here.
The first one is the connection timeout, which is found in the main
properties page of your site or virtual directory.
The other is the script timeout, which is found in the Homepage tab,
Configuration...
1800 secs is the default for one of them, I believe.
HTH

Signature
Sven.
> Hello All,
>
[quoted text clipped - 31 lines]
> Best Regards,
> Ritu Kedia