|
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?
|
|
|
|
|
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.
|
|
|
|
|
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)
|
|
|
|
|
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.
|
|
|
|