Solved

.net fileupload getting a "The connection was reset" error

Posted on 2011-03-12
3
850 Views
Last Modified: 2013-11-07
I am trying to use some file upload code, but it uploads for a while, then crashes and get's this error. "The connection was reset"

sometimes it works, but usually does not,

I put this in the web.config, but it did not help

  <httpRuntime executionTimeout="90" maxRequestLength="2097151" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" />

is there something I'm missing, or no?

any help is appreciated

0
Comment
Question by:TheWebGuy38
3 Comments
 

Author Comment

by:TheWebGuy38
ID: 35119290
put it online so you can try it yourselves

http://fileupload.kevinperelman.com/
0
 
LVL 8

Accepted Solution

by:
Anurag Agarwal earned 500 total points
ID: 35121041
TheWebGuy38 i tried your code and didn't found any problem although it doesn't show any type of success msgs, i tried it 2-3 times. The possible reasons for ur failure of code may be the executionTimeout="90" for your large size of files due to which 90 sec time limit is crossed and finally time out is done. Could u tell me that how much size did u tried to upload ?? and how long it took for uploading..?

  <httpRuntime
    maxRequestLength="2097151"
    executionTimeout="90"
  />


if other thing regarding thread etc are not really important with your code (since i have not complete information abt ur project ) try with only above code and if necessary increase the executionTimeout
take help from http://www.websupergoo.com/helpupload50/source/2-tech_notes/3-web.config.htm
0
 
LVL 3

Expert Comment

by:kumarnimavat
ID: 35169350
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A short film showing how OnPage and Connectwise integration works.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now