Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2005

Tip: Looking for answers? Try searching our database.

Very large file upload > 100 MB fails with WSE 2.0 SP1 as well as

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ritu Kedia - 01 Feb 2005 13:49 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.