Click here to Skip to main content
11,642,855 members (76,319 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 ASP.NET
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 in web.config and I increased the value to 1000000.Still I am getting same message.

Thanks
Posted 4-Mar-13 21:53pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Hi...

Add this line in your web.config

in between tag.

I will surely solve your problem.
  Permalink  
Comments
Devang Vaja at 5-Mar-13 6:56am
   
where are the lines?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Oh...Sorry due to my typing mistake i missed the lines
line is
 <httpruntime maxrequestlength="2097151" />
add this in web.config,b/w the
<system.web> </system.web>
tag.
  Permalink  
Comments
Devang Vaja at 5-Mar-13 7:52am
   
now i can see the lines :)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

Juhi Paunikar

Thank you Very Much Its Working for me
  Permalink  

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

  Print Answers RSS
0 DamithSL 258
1 Sergey Alexandrovich Kryukov 230
2 jyo.net 180
3 OriginalGriff 170
4 Afzaal Ahmad Zeeshan 155
0 Mika Wendelius 485
1 DamithSL 457
2 OriginalGriff 365
3 Afzaal Ahmad Zeeshan 258
4 Sergey Alexandrovich Kryukov 254


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100