Click here to Skip to main content
14,922,824 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have a problem when I have uploaded my web application to webserver & the error is like this:
The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration

& When I visit that pages it shows "500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed." this error...

<?xml version="1.0"?>
  For more information on how to configure your ASP.NET application, please visit
        <jsonSerialization maxJsonLength="500000000"/>

    <trust level="Full"/>
      <trustLevel name="Full" policyFile="internal"/>
    <compilation debug="true" targetFramework="4.0">
        <add assembly="System.Design, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="mscorlib, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add src="~/UserControls/Chart.ascx" tagName="Chart" tagPrefix="MAS"/>

Please help me to resolve this error......
Updated 7-Feb-14 19:29pm

check this sys.web.extension[^]
HardikPatel.SE 8-Feb-14 1:20am
Thanks For the solution but sorry bro it is not working in my application.... :(
Karthik_Mahalingam 8-Feb-14 1:24am
which framework are you using ?
HardikPatel.SE 8-Feb-14 1:30am
4.0 bro.....
Karthik_Mahalingam 8-Feb-14 1:35am
did u check tadit solution.
Karthik_Mahalingam 8-Feb-14 1:39am
try removing form config
use like this
new JavaScriptSerializer().MaxJsonLength = 500000000; in c# code
HardikPatel.SE 8-Feb-14 2:55am
Okay bro.... I'll try it.... Thanq....

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