SlickUpload
Welcome Guest Search | Active Topics | Log In | Register

30MB Uploads not working after upgrade to ASP.NET 4 (with MVC) Options
yeahstu
#1 Posted : Sunday, May 02, 2010 4:20:18 PM
Rank: Member

Groups: Registered

Joined: 7/25/2009
Posts: 13
Location: Ohio, USA

Hello,

   Do you know if there is anything specific that I have to change to get my slick upload handler to work with files greater than 30MB on ASP.NET MVC 4.0.  It worked before I upgraded from .NET 3.5 to .NET 4.0.

   I am using SlickUpload version 5.5. My server hosts on IIS 7 in Integrated Mode.

   Here are some of the relevant pieces of my web.config:

  <system.web><httpRuntime maxRequestLength="1024000" executionTimeout="600" requestLengthDiskThreshold="256"/>
  </system.web>

  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="HttpUploadModule"/>
      <add name="HttpUploadModule" type="Krystalware.SlickUpload.HttpUploadModule, Krystalware.SlickUpload"/>
    </modules>
    <handlers>
      <remove name="SlickUploadHandler"/>
      <add name="SlickUploadHandler" verb="GET,POST" path="SlickUpload.axd" type="Krystalware.SlickUpload.SlickUploadHandler, Krystalware.SlickUpload"/>
    </handlers>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="219430400"/>
      </requestFiltering>
    </security>
  </system.webServer>

<slickUpload>
    <uploadParser maxUploadRequestLength="219430400"/>
    <uploadStreamProvider provider="File" location="~/Upload" existingAction="Rename" fileNameMethod="Custom" fileNameGenerator="Viternus.Service.UploadFileNameGenerator, Viternus.Service">
    </uploadStreamProvider>
  </slickUpload>

The way it behaves is it shows progress for the upload up until the point where it is uploading the 30MB. So, I am uploading a 36 MB file, it fails at about 82%. I am having trouble determining what kind of error is caused by the failure. In my IIS server logs, I see a 500 error code with substatus 64.

Any help with this would be greatly appreciated. I was using URL rewriting with an exclusion for SlickUpload (per a support suggestion on this forum), but I have taken that out for testing and am still seeing the error.

Nathan Stuller
www.viternus.com
Axosoft
#2 Posted : Monday, May 03, 2010 10:26:37 AM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

Can you send your whole web.config to chrish at krystalware dot com?

Since the < 30 mb files are working, I would guess that this is a configuration issue related to IIS7 in some fashion. Were you on IIS7 integrated mode before, or did you just switch with the upgrade? Also, do you have any other HttpModules or ISAPI modules installed? Sometimes things like UrlScan or DotDefender will interfere with large requests.

yeahstu
#3 Posted : Wednesday, May 05, 2010 10:21:32 AM
Rank: Member

Groups: Registered

Joined: 7/25/2009
Posts: 13
Location: Ohio, USA

I found the culprit.

 <httpRuntime maxRequestLength="208000" executionTimeout="600" requestLengthDiskThreshold="256" />

 

I never realized it but the issue was not related to my file being more than 30MB.  It was related to my 35MB file upload taking more than 10 minutes. I never thought to increase the executionTimeout, as I just assumed it was some arbitrarily large number. I guess the 25MB file that I tried took less than 10 minutes because it worked.  That would explain why my upload failed at different percentages every time, a detail which I didn't realize was important. It also explains why it starts to upload and then fails mid-way through.
 
Thanks for the help. In isolating my issue to exclude the SlickUpload control, I was finally able to figure it out.
Nathan Stuller
www.viternus.com
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.