Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am using framework 3.5, is 6.0 and Excel 2003 for my application. I am getting an error message 'Maximum request length exceeded' while I am trying to export data to excel from a data table. I have already given <add key="aspnet:MaxHttpCollectionKeys" value="100000"> in web.config and I increased the value to 1000000.Still I am getting same message.

Thanks
Posted

Hi...

Add this line in your web.config

<httpruntime maxrequestlength="2097151"> in between <system.web> tag.

I will surely solve your problem.
 
Share this answer
 
Comments
Devang Vaja 5-Mar-13 6:56am    
where are the lines?
Oh...Sorry due to my typing mistake i missed the lines
line is
C#
<httpruntime maxrequestlength="2097151" />

add this in web.config,b/w the
C#
<system.web> </system.web>
tag.
 
Share this answer
 
Comments
Devang Vaja 5-Mar-13 7:52am    
now i can see the lines :)
Juhi Paunikar

Thank you Very Much Its Working for me
 
Share this answer
 

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