Click here to Skip to main content
14,332,426 members
Rate this:
Please Sign up or sign in to 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
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="500000000"/>
      </webServices>
    </scripting>
  </system.web.extensions>

  <system.net>
    <mailSettings>
      
     
    </mailSettings>
  </system.net>
  
  <connectionStrings>
    
  </connectionStrings>
  <system.web>
    <trust level="Full"/>
    <securityPolicy>
      <trustLevel name="Full" policyFile="internal"/>
    </securityPolicy>
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>
    </compilation>
    <pages>
      <controls>
        <add src="~/UserControls/Chart.ascx" tagName="Chart" tagPrefix="MAS"/>
      </controls>
    </pages>
  </system.web>
  <system.serviceModel>
    <bindings/>
    <client/>
  </system.serviceModel>
</configuration>


Please help me to resolve this error......
Posted
Updated 7-Feb-14 19:29pm
v5
Rate this:
Please Sign up or sign in to vote.

Solution 1

check this sys.web.extension[^]
   
Comments
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100