The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration

After upgrading an ASP.NET application from .NET Framework 3.5 to .NET Framework 4.0 I ran into the following error message dialog when trying to view any of the modules in IIS on the server.

2011-11-08 11h01_09

What happened is during the upgrade, the web.config file was automatically converted for .NET Framework 4.0.  This left behind an empty system.web.extensions section:

image

It was an easy fix to resolve, just remove the unused system.web.extensions section.

 

ERROR DIALOG TEXT:
---------------------------
ASP
---------------------------
There was an error while performing this operation.
Details:
Filename: \\?\web.config
Line number: 171
Error: The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration
---------------------------
OK  
---------------------------

Published 11 November 2011 05:27 AM by Jeff Widmer
Filed under: , , ,

Comments

# Bora Engin said on 29 May, 2012 08:42 AM

Thanks for your post cause its just saved me today...

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Search

Go

This Blog

News

Syndication