Solved

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

Posted on 2011-03-12
3
864 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web page design problem 3 42
PowerShell: Adding ToGB to a script 4 76
EF5 How do I stop pre-compiled views? 8 54
Intermittent OleDbConnection Error 20 53
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

751 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