Click here to Skip to main content
Sign Up to vote bad
good
See more: IIS6ASP.NET
When tried to upload 100 mb file local machine it was successfully uploaded.
On Local machine below are the settings in web.config
 


 
same application hosted in another server like above settings all are included at that web.config also but when upload file from application hosted on that server it was through error The connection to the server was reset while the page was loading.what are possible changes in iis6?
Posted 3 Aug '12 - 18:48

Comments
Kenneth Haugland - 5 Aug '12 - 7:20
What does the error say, and what error code did you get? Did you search for this error code on google?
Santhosh Kumar J - 6 Aug '12 - 10:23
where is the web.config code?

3 solutions

in web config file add
 
system.web tag
httpruntime tag
set attribute value
enable=true
maxRequestLength=size(u want)

set the value of maxRequestLength(KB)
  Permalink  
do you have this code in your web.config hosted in iis server.?
 
I have written for 200MB file
 
<configuration>
    <system.web>
      <httpRuntime executionTimeout="999999" maxRequestLength="200000"/>
    </system.web>
</configuration>
 
Also dont forget to increase execution timout.
  Permalink  
<system.web>
		<compilation debug="true" targetframework="4.0">
			<assemblies>
				<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
			</assemblies>
		</compilation>
		<httpruntime enable="true" maxrequestlength="102400" />
	</system.web>
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 216
1 Richard MacCutchan 145
2 Sergey Alexandrovich Kryukov 129
3 Tadit Dash 129
4 Santhosh G_ 115
0 Sergey Alexandrovich Kryukov 10,338
1 OriginalGriff 7,965
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,159


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 6 Aug 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid