Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
m using
XML
<httpruntime executiontimeout="110" maxrequestlength="22024">...
</httpruntime>

OR
<httpruntime executiontimeout="5" maxrequestlength="20480">


but its not working more than 4024 of size..
Posted
Updated 11-Jul-11 9:46am
v3

 
Share this answer
 
Comments
Espen Harlinn 9-Jul-11 6:23am    
Good links, my 5
GaganjyotK 9-Jul-11 6:46am    
its a good links..bt not work for me.
thatraja 9-Jul-11 12:45pm    
What's the error message? please always mention that in your reply.
In web.config use this line.
<system.web>
<httpruntime executiontimeout="5" maxrequestlength="20480" />
</system.web>
 
Share this answer
 
v2
Comments
GaganjyotK 9-Jul-11 6:00am    
its not working...m trying to upload audio aur any other file of more than 4.5 mb bt its not working with the above code..
SURBHI TYAGI 9-Jul-11 6:05am    
whats the error occur?
GaganjyotK 9-Jul-11 6:14am    
error is Maximum request length exceeded.
SURBHI TYAGI 9-Jul-11 6:17am    
put validateRequest=false in directive of page.
SURBHI TYAGI 9-Jul-11 6:28am    
on the page source at which u use the file upload control.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900