Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to increase execution time

How to increase execution time

Scheduled Pinned Locked Moved ASP.NET
questiontutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    silentspeaker
    wrote on last edited by
    #1

    I am uploading 500 MB File on the webserver but it gives message that your file submitted but it does not actually does not upload. How can I increase the time to execute a statement?

    K S 2 Replies Last reply
    0
    • S silentspeaker

      I am uploading 500 MB File on the webserver but it gives message that your file submitted but it does not actually does not upload. How can I increase the time to execute a statement?

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #2

      Hi, Firstly it's not the execution time that is going wrong. ASP.NET websites deliberately restrict the size of file that can be uploaded, and the amount of time the upload takes (really the execution time). You can see how to set these here http://aspnetupload.com/HowTo.aspx#HandleLargerUploadsAndAvoidTimeouts[^] Secondly these limits are there for a reason: allowing uploads of large files isn't normally a good idea, especially on a public website. You need to have think about whether this is really necessary: its slow for the user, has the potential to fill your disk-space quickly and can be used as part of a DoS attack. You should sanity check what is happening, for example can the file be put onto the server by other means than the web-interface. Thirdly (assuming you still have the need) you might want to consider a richer upload control. There is one here[^] reference as part of a discussion on large file uploads elsewhere. I haven't used it, and so can't vouch for it, but I've found others helpful in the past.

      Sort of a cross between Lawrence of Arabia and Dilbert.[^]
      -Or-
      A Dead ringer for Kate Winslett[^]

      1 Reply Last reply
      0
      • S silentspeaker

        I am uploading 500 MB File on the webserver but it gives message that your file submitted but it does not actually does not upload. How can I increase the time to execute a statement?

        S Offline
        S Offline
        Sentenryu
        wrote on last edited by
        #3

        The time is not the problem, theres a config setting you need to change in web.config: http://msdn.microsoft.com/en-us/library/e1f13641(v=vs.100).aspx[^] the setting is called <httpRuntime>, you need to change the maxRequestLength to the maximum size you will allow for your request.

        I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

        S 1 Reply Last reply
        0
        • S Sentenryu

          The time is not the problem, theres a config setting you need to change in web.config: http://msdn.microsoft.com/en-us/library/e1f13641(v=vs.100).aspx[^] the setting is called <httpRuntime>, you need to change the maxRequestLength to the maximum size you will allow for your request.

          I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

          S Offline
          S Offline
          silentspeaker
          wrote on last edited by
          #4

          Network Error (tcp_error)

          A communication error occurred: ""
          The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups