0

I have got an HTTP Error 500.19 since the related configuration data for the page is invalid.

Module: IIS Web Core
Notification: Unknown
Handler: Not yet determined
Error Code: 0x80070032
Config Error: The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration: 

<system.web.extensions>
  <scripting>
    <webServices>
      <jsonSerialization maxJsonLength="2147483644" />
    </webServices>
  </scripting>
</system.web.extensions>

Sorry please could you explain me what is missing in my web.config file? Thank you!

Alex Pilugin
  • 683
  • 2
  • 10
  • 38
  • 1
    https://stackoverflow.com/a/20066794/2864740 (although it could also be a very incorrect App Pool selection, eg.) – user2864740 Mar 20 '20 at 17:25
  • 1
    Does this answer your question? [The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration](https://stackoverflow.com/questions/20063861/the-configuration-section-system-web-extensions-cannot-be-read-because-it-is-m) – user2864740 Mar 20 '20 at 17:25
  • 1
    Sorry please before I found several questions but with a bit another issue. Thank you for links - I try to test them – Alex Pilugin Mar 20 '20 at 17:28

1 Answers1

1

the reason behind the issue is you’ve deployed your application on to an IIS Server where the application’s AppPool is set to run under the DefaultAppPool. DefaultAppPool is automatically configured to run under .NET 2.0 rather than .NET 4.0. This means that the System.Web.Extensions stuff is unavailable to that version of the .NET Framework.

you could try to follow the below steps to change the Application Pool (AppPool) settings for your site or application:

1)open iis select your site/application.

2)Under Actions, click Basic Settings…

enter image description here

3)Your application pool is probably set to DefaultAppPool.

4)Change the Application Pool to ASP.NET v4.0 (or another .NET 4.0 app pool) by clicking on the Select… button.

enter image description here

5) Click OK

recycle the app pool and restart the site.

Jalpa Panchal
  • 8,251
  • 1
  • 11
  • 26