« Previous Next »

Answered Thread: DNN/ASP/IIS6 Large File Upload Problems

Last post 11-01-2009 5:22 PM by crnlblawson. 10 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (11 items)

Sort Posts:

  • 10-30-2009, 10:47 AM

    DNN/ASP/IIS6 Large File Upload Problems

    a have a 2003R2 server running IIS 6 with a DNN 5.1.4 install... I am having great difficulty uploading large files through HTTP with the DNN apps.  All the forums and info point to settings in either web.config, or machine.config.  I have set the web.config set to the following for the app in question.

    <!-- allow large file uploads -->
        <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="102400" requestLengthDiskThreshold="102400" executionTimeout="100000" />
        <httpCookies httpOnlyCookies="true" requireSSL="false" domain="" />

    which should allow me to upload 100M files to the site.

    When I start the upload it runs for approx. 300 seconds (5 min) give or take 20 seconds before it bombs and gives a 404 page cannot be found internet connection or dns blah blah blah...

    I have tried increasing every connection timeout I can find in IIS... I have made sure that my apppool did not recycle, even made sure that it did not write the file to disk by increasing the  requestLengthDiskThreshold to the max file size as well...

    I'm struggling as to wheter this is a IIS problem, ASP.net problem or what...

    Any help would be greatly appreciated! Many Thanks!

  • 10-30-2009, 1:40 PM In reply to

    Re: DNN/ASP/IIS6 Large File Upload Problems

    DNN has its own forums for these questions, at www.dotnetnuke.com.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 10-30-2009, 1:46 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,238
    • IIS MVPs

    Re: DNN/ASP/IIS6 Large File Upload Problems

    File upload in ASP.NET is fairly straight forward, along with issues regarding file size.
    http://www.bing.com/search?q=asp.net+upload+file+size&mkt=*&FORM=IE8SRC&adlt=strict

    Why not create a simple non-DNN ASP.NET form to test file upload and get that going first?

  • 10-30-2009, 1:51 PM In reply to

    Re: DNN/ASP/IIS6 Large File Upload Problems

    Thanks Jeff... Been there done that!  DNN is just the code that uses ASP.net and IIS to do the uploading.  Anyone have anything constructive about the IIS settings for uploading large files through asp.net  Thought this was a forum for asp.net on IIS... was I mistaken?

  • 10-30-2009, 1:54 PM In reply to

    Re: DNN/ASP/IIS6 Large File Upload Problems

    thanks tomkmvp...  I see some code on one of your links that I will try outside off DNN just to make sure that it is not the problem.

  • 10-30-2009, 2:03 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,238
    • IIS MVPs

    Re: DNN/ASP/IIS6 Large File Upload Problems

    crnlblawson:
    Thought this was a forum for asp.net on IIS... was I mistaken?

    Yes!  : )

    This is a forum for general IIS questions.

    Questions concerning "administering, configuring, and limited usage on ASP.NET 1.x, 2.x" are at http://forums.iis.net/1038.aspx, while specific questions regarding ASP.NET can be directed to http://forums.asp.net/ ...

  • 10-30-2009, 2:30 PM In reply to

    Re: DNN/ASP/IIS6 Large File Upload Problems

    ooops... I thought when i made the post I was in the asp.net section... sorry, do I ned to start another thread there? Can I move this post?

  • 10-30-2009, 2:51 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,238
    • IIS MVPs

    Re: DNN/ASP/IIS6 Large File Upload Problems

  • 10-30-2009, 3:03 PM In reply to

    Re: DNN/ASP/IIS6 Large File Upload Problems

    Havent tried the custom code yet... but I did try changing my values in the web.config to

    <!-- allow large file uploads -->
        <httpRuntime maxRequestLength="1024000" requestLengthDiskThreshold="1024000" executionTimeout="120" />
        <httpCookies httpOnlyCookies="true" requireSSL="false" domain="" />

    which (i guess) is suppose to allow a 1G file but timeout in 120 seconds or 2 min... with a 70M file it continued to try to upload for 5 minutes before getting the 404 error. i would have assumed that the web.config should have had a executionTimeout at 2 min... I will try the uploading code tonight without DNN involved.

  • 10-31-2009, 10:40 AM In reply to

    Re: DNN/ASP/IIS6 Large File Upload Problems

    still have not written code but I dont think that is the problem... DNN's ASP code works fine to upload smaller files no problem...  I have tried multiple times to change the configuration under web.config to try to test for problems... nothing I do to it seems to effect the problem I have tried setting connection timouts in IIS to 120 seconds and in the web.config, to try to get a diffrent error... on large files it continues to go for the 5 minutes on large files before giving the 404 error... each time I make changes, I have been running iisreset to restart services... still struggling... any help appreciated

  • 11-01-2009, 5:22 PM In reply to

    Answered Re: DNN/ASP/IIS6 Large File Upload Problems

    Well... Dont know what to tell everyone, but after commenting out all connection timeout info in web.config, and reseting IIS to all its default values, and taking 1 day off to rest my mind... I came back and started changing one value at a time (in web.config) and everthing started working... Dont know what all the problems were except one...  One test machine was behind an endian firewall/proxy that was confusing a lot of the tests... other than that? Dont know. Many thanks!

Page 1 of 1 (11 items)
Microsoft Communities