Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-03-12
3
Medium Priority
?
880 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Integration Management Part 2
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

783 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