1

I've got the Fileupload and I set this in my WebConfig:

 <system.web>
    <compilation debug="true" targetFramework="4.0" />
    <customErrors mode="Off"/>
    <httpRuntime
 executionTimeout="110"
 maxRequestLength="102400"
 requestLengthDiskThreshold="80"
 useFullyQualifiedRedirectUrl="false"
 minFreeThreads="8"
 minLocalRequestFreeThreads="4"
 appRequestQueueLimit="5000"
 enableKernelOutputCache="true"
 enableVersionHeader="true"
 requireRootedSaveAsPath="true"
 enable="true"
 shutdownTimeout="90"
 delayNotificationTimeout="5"
 waitChangeNotification="0"
 maxWaitChangeNotification="0"
 enableHeaderChecking="true"
 sendCacheControlHeader="true"
 apartmentThreading="false" />
  </system.web>

that allows me, to upload 100MB files.. maxRequestLength="102400"

Now the problem is, that the site crashes, when uploading b.E a 85MB File.. It stops working on about 70% and I get an Error.. How can I solve this Problem?

eMi
  • 5,540
  • 10
  • 60
  • 109
  • Well unfortunately, I don't get an error, sorry – musefan Nov 07 '11 at 09:30
  • An error yes, "The site stopped working, look if its a valid site, if u are online with proxy try this and this and and".. the usual error.. – eMi Nov 07 '11 at 09:30
  • Gone through scenario again, it takes about 2minutes, then Firefox shows this error: Error: Disconnected , The connection to the server was reset while the page is loaded... And @musefan: Thank you for your constructive responses >. – eMi Nov 07 '11 at 09:40
  • Check my answer, seems like the circa 2 minutes is related to the 110 seconds executionTimeout – ChristiaanV Nov 07 '11 at 09:43
  • Check for executiontimeout value. see the post http://stackoverflow.com/questions/7804622/how-to-upload-content-more-than-2-mbs-on-website-created-using-asp-net-4-0/7804670#7804670 – Prasanth Nov 07 '11 at 09:44
  • I updated executiontimeout to a higher value and its still not working :( – eMi Nov 09 '11 at 15:16

1 Answers1

3

Have you checked if the executionTimeout="110" is causing the issue? If you upload the file multiple times, will it fail at almost the same time? Try updating the executionTimeout to a higher value.

ChristiaanV
  • 5,401
  • 3
  • 32
  • 42
  • I don't really have a Progressbar, but it might be always at the same time.. I will try increase the value.. – eMi Nov 07 '11 at 09:43
  • @eMi: Do you have a watch, clock, the ability to count? that should help, also 110 seems a strange timeout number to me, did you choose that for a reason? – musefan Nov 07 '11 at 09:45
  • @musefan 110 seconds is the default executionTimeout. (http://msdn.microsoft.com/en-us/library/e1f13641.aspx) – ChristiaanV Nov 07 '11 at 09:46
  • @ChristiaanV: I had a feeling that might be the case, wasn't sure though, seem strange number to me - perhaps I will seek out a reason – musefan Nov 07 '11 at 09:48