My system: I have installed Windows 7, VS2010 and .NET40 and ASPAJAXExtSetup.msi
I used to work with vs2008 and .NET3.5, after installing VS2010 I upgraded to .NET40. I dont think that is the issue here, but it might be something you need to know :)
My problem seems to arise from something within IIS, but I have no idea.
I'm getting the error below.
<div> Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
</div> <div> Detailed Error Information <div id="details-left">
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
And now Im trying this: %windir%\system32\inetsrv\Appcmd
migrate config
"c:\inetpub\tickets"
But I get the error: ERROR (
message:Cannot find APP object with identifier "c:\inetpub\tickets"". ) I also tried: %windir%\system32\inetsrv\Appcmd
migrate config
"tickets"
This issue not caused by the web.config migration. If you update you application to .Net Framework4.0, but assign this application to an application pool running under .Net Framework3.5 or previous version, you will encounter this error.
You can assign this application to an .Net Framework4.0 application pool in IIS to fix issue. If you have any problem, please update here.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
This issue not caused by the web.config migration. If you update you application to .Net Framework4.0, but assign this application to an application pool running under .Net Framework3.5 or previous version, you will encounter this error.
You can assign this application to an .Net Framework4.0 application pool in IIS to fix issue. If you have any problem, please update here.
I'm getting this error too, but my app is already running on a 4.0 application pool.
Please check the machine.config file located in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config directory. Does the following configuration section declaration exists?
I am seeing the same problem with one of our IIS 7.0 machine. I am posting a little bit of extra information we found out
1) I am getting the same error when I tried to open any section, eg. asp.net Machine Key, IIS default document.
2) I did a filemon trace and found that IIS manager and the worker process was somehow reading the version 2.0 machine.config even though the worker process is set to 4.0. I did the same filemon trace on another machine and it is reading the 4.0 machine.config.
I think there's something in the registry that tells IIS which config to read.. but I couldn't figure it out.
petervdkerk
31 Posts
The configuration section 'system.web.extensions' cannot be read because it is missing a section ...
Apr 15, 2010 09:13 PM|LINK
My system: I have installed Windows 7, VS2010 and .NET40 and ASPAJAXExtSetup.msi
<div> Error SummaryI used to work with vs2008 and .NET3.5, after installing VS2010 I upgraded to .NET40. I dont think that is the issue here, but it might be something you need to know :)
My problem seems to arise from something within IIS, but I have no idea.
I'm getting the error below.
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
</div> <div> Detailed Error Information <div id="details-left">My web.config:
<?xml version="1.0"?>
<configuration>
<connectionStrings>
</connectionStrings>
<system.web.extensions>
<scripting>
<webServices>
<!--http://weblogs.asp.net/andrewfrederick/archive/2008/02/18/a-client-side-ajax-login-for-asp-net.aspx-->
<authenticationService enabled="true" requireSSL="false"/>
</webServices>
</scripting>
</system.web.extensions>
<system.web>
<httpHandlers>
<add path="ChartImg.axd" verb="GET,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<compilation debug="true" strict="false" explicit="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="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<sessionState mode="InProc" timeout="60"/>
<authentication mode="Forms">
<forms name=".MyCookie" slidingExpiration="true" timeout="60" cookieless="AutoDetect" loginUrl="/login/" protection="All" defaultUrl="/">
<credentials passwordFormat="SHA1"/>
</forms>
</authentication>
<customErrors mode="Off" defaultRedirect="/contact.aspx">
<error statusCode="404" redirect="/contact.aspx"/>
</customErrors>
<roleManager domain="192.168.0.103" enabled="true" cacheRolesInCookie="true" cookieName=".ASPXROLES" cookieTimeout="60" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All" defaultProvider="AccessRoleProvider" createPersistentCookie="false" maxCachedResults="25">
<providers>
<clear/>
<add name="AccessRoleProvider" connectionStringName="conn1" applicationName="/tickets" type="Samples.AccessProviders.AccessRoleProvider"/>
</providers>
</roleManager>
<membership defaultProvider="AccessMembershipProvider" userIsOnlineTimeWindow="30">
<providers>
<clear/>
<add name="AccessMembershipProvider" type="Samples.AccessProviders.AccessMembershipProvider" connectionStringName="conn1" requiresQuestionAndAnswer="false" applicationName="/tickets" minRequiredPasswordLength="6" enablePasswordRetrieval="false" enablePasswordReset="true" requiresUniqueEmail="true" minRequiredNonalphanumericCharacters="0" passwordFormat="Hashed"/>
</providers>
</membership>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true">
</modules>
<handlers>
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
<rewrite>
<rules>
<rule name="ordermanagement">
<match url="^eventmanager/ordermanagement/([0-9]+)"/>
<action type="Rewrite" url="ordermanagement.aspx?eventid={R:1}"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
I then checked out this page: http://mvolo.com/blogs/serverside/archive/2007/12/08/IIS-7.0-Breaking-Changes-ASP.NET-2.0-applications-Integrated-mode.aspx
And now Im trying this:
%windir%\system32\inetsrv\Appcmd migrate config "c:\inetpub\tickets"
But I get the error:
ERROR ( message:Cannot find APP object with identifier "c:\inetpub\tickets"". )
I also tried:
%windir%\system32\inetsrv\Appcmd migrate config "tickets"
But still no luck..
What am I doing wrong?
petervdkerk
31 Posts
Re: The configuration section 'system.web.extensions' cannot be read because it is missing a sect...
Apr 16, 2010 10:48 AM|LINK
I have now done this:
"appcmd list sites"
I then see this:
SITE "Tickets" (id:1,bindings:http/*:80:www.tickets.com,state:Started)
Next I do:
appcmd migrate config "Tickets"
I then get:
ERROR ( message:Cannot find APP object with identifier "Tickets". )
What am I doing wrong?
Leo Tang - M...
4161 Posts
Microsoft
Re: The configuration section 'system.web.extensions' cannot be read because it is missing a sect...
Apr 22, 2010 02:30 AM|LINK
Hi,
This issue not caused by the web.config migration. If you update you application to .Net Framework4.0, but assign this application to an application pool running under .Net Framework3.5 or previous version, you will encounter this error.
You can assign this application to an .Net Framework4.0 application pool in IIS to fix issue. If you have any problem, please update here.
Feedback to us
Develop and promote your apps in Windows Store
mdrussell077...
9 Posts
Re: The configuration section 'system.web.extensions' cannot be read because it is missing a sect...
May 05, 2010 01:19 PM|LINK
I'm getting this error too, but my app is already running on a 4.0 application pool.
Help?
Leo Tang - M...
4161 Posts
Microsoft
Re: The configuration section 'system.web.extensions' cannot be read because it is missing a sect...
May 06, 2010 07:01 AM|LINK
Hi,
Could you please post your web.config here?
Thanks.
Feedback to us
Develop and promote your apps in Windows Store
mdrussell077...
9 Posts
Re: The configuration section 'system.web.extensions' cannot be read because it is missing a sect...
May 06, 2010 11:26 AM|LINK
It's erroring at:
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true"/>
</scripting>
</system.web.extensions>
Here's the web.config contents,
<?xml version="1.0"?><configuration>
<appSettings>
</appSettings>
<connectionStrings>
</connectionStrings>
<system.web>
<httpRuntime maxRequestLength="8192"/>
<globalization culture="en-US"/>
<pages styleSheetTheme="Professional" enableEventValidation="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<controls>
<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
<add tagPrefix="widget" src="~/_widgets/select_user.ascx" tagName="select_user"/>
<add tagPrefix="BDP" namespace="BasicFrame.WebControls" assembly="BasicFrame.WebControls.BasicDatePicker"/>
</controls>
</pages>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
</assemblies>
</compilation>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
</system.web>
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true"/>
</scripting>
</system.web.extensions>
</configuration>
Leo Tang - M...
4161 Posts
Microsoft
Re: The configuration section 'system.web.extensions' cannot be read because it is missing a sect...
May 07, 2010 07:52 AM|LINK
Hi,
Please check the machine.config file located in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config directory. Does the following configuration section declaration exists?
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configProtectedData>
</configuration>
Note: if you intend to manually edit the machine.config file, please remember to backup it firstly.
Feedback to us
Develop and promote your apps in Windows Store
mdrussell077...
9 Posts
Re: The configuration section 'system.web.extensions' cannot be read because it is missing a sect...
May 07, 2010 11:24 AM|LINK
mdrussell077...
9 Posts
Re: The configuration section 'system.web.extensions' cannot be read because it is missing a sect...
May 07, 2010 11:25 AM|LINK
Leo,
Yeah there's a section for that:
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
</sectionGroup>
</sectionGroup>
</sectionGroup>
Bruce L
3 Posts
Re: The configuration section 'system.web.extensions' cannot be read because it is missing a sect...
May 11, 2010 11:45 PM|LINK
I am seeing the same problem with one of our IIS 7.0 machine. I am posting a little bit of extra information we found out
1) I am getting the same error when I tried to open any section, eg. asp.net Machine Key, IIS default document.
2) I did a filemon trace and found that IIS manager and the worker process was somehow reading the version 2.0 machine.config even though the worker process is set to 4.0. I did the same filemon trace on another machine and it is reading the 4.0 machine.config.
I think there's something in the registry that tells IIS which config to read.. but I couldn't figure it out.
http://www.discountASP.NET