I have noticed that one of the Web applications I work with on a daily basis was having issues running earlier today. The code compiles fine and when the app starts running I receive the HTTP Response 500.19 - Internal Server Error.
Detailed Error Information:
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
Config File \\?\C:\TFS\Source Control\ManagementSystem\Prod\MS\App\web.config
Requested URL http://localhost:40095/Ship/AddEditOrder.aspx
Physical Path
Logon Method Not yet determined
Logon User Not yet determined
Request Tracing Directory C:\Users\{User}\Documents\IISExpress\TraceLogFiles\
Down below this I see the following:
More Information:
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
If you see the text "There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined", this error is because you are running a .NET Framework 3.5-based application in .NET Framework 4. If you are running WebMatrix, to resolve this problem, go to the Settings node to set the .NET Framework version to ".NET 2". You can also remove the extra sections from the web.config file.
This sounds like an issue with IIS and I've checked suggested solutions for this issue as follows:
- The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration
- https://www.codeproject.com/Questions/723045/How-can-I-solve-this-problem-The-configuration-sec
- https://gyorgybalassy.wordpress.com/2013/12/02/cleaning-up-iis-express-configuration/
The last article looked the most promising but I was unable to find any trace of the application I was attempting to run.