Solved

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

820 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