SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2006
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Timeout with FileUpload control

    Hi,

    I'm currently working on a fileupload in ASP.NET.
    Everything works fine here in sweden but as soon as they try uploading files in Austria they get unexpected timeouts.

    Here is what I use and what I've done:

    - The builtin FileUpload control.
    - ASP.NET 2.0
    - An Excel sheet that's 3.8MB

    - <httpRuntime maxRequestLength="16384" executionTimeout="600"/> in web.config

    I can't see any problems? Would changing the timeout in IIS do any difference in this scenario?



    Cheers,
    Sogeking

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2005
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    tried uploading a small file?
    Web Application Development & Maintenance

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2006
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, we have tried smaller files. The smallest ones tried was around 260KB.
    Default size for upload should be 4MB so it feels like a really funny problem.

  4. #4
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,876
    Mentioned
    46 Post(s)
    Tagged
    0 Thread(s)
    Try increasing the executionTimeout. Make it very long, just to test if its maybe this causing it to timeout.

    I do no sometimes other people have slow/problematic internet sometimes and this times out b4 there internet comes to the party so to speak. lol

  5. #5
    SitePoint Enthusiast
    Join Date
    Apr 2006
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I've used a program to monitor my client during the failure. It takes around two minutes and the failure is there.

    The execution is, as mentioned above, set to 600 which should be ten minutes. So that should not be the cause.

    Firewall, proxy or something like that should be able to cause problems right? Maybe access rights?

  6. #6
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,629
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    There are some IIS settings that can effect this--how much control do you have of this server?

  7. #7
    SitePoint Enthusiast
    Join Date
    Apr 2006
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Full control. Can change everything but I totally thought IIS settings were overriden by ASP.NET?

    Which settings should I take a closer look at?

  8. #8
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,629
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    First thing to do is look at the event viewer to see if these timeouts are being registered by ASP.NET as exceptions. I'd take a hard look at the application pool's settings for this app--that could be forcing the timeouts in some cases. Also, make sure your browser isn't set to timeout the connection after 120 seconds. Make sure HTTP keep alives are on as well. All that said, making uploads bulletproof is a pain. Much better to use one of those fancy flash-based streaming components these days.

  9. #9
    SitePoint Enthusiast
    Join Date
    Apr 2006
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem is now solved. The problem was that the AppPool was set to recycle after 50MB of used space. Which is a really really small limit. After this was changed it started working for them.
    Their internet connection was very slow too.
    So for anyone else with this problem. Don't forget to check the AppPool...


    Cheers,
    Sogeking


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •