Solved

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

Posted on 2011-03-12
3
845 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

760 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

18 Experts available now in Live!

Get 1:1 Help Now