Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3844
  • Last Modified:

Unrecognized configuration section - error

I am getting an error when I try to view my page in a browser.

Unrecognized configuration section system.web.extensions/scripting/scriptResourceHandler.
<scriptResourceHandler enableCompression="true" enableCaching="true" />


Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634


web config code:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
      <configSections>
            <section name="LoggingConfiguration" type="AureusGroup.XmlConfigurator, AureusGroup" />
            <section name="UrlRewriting" type="AureusGroup.Web.Public.Components.UrlRewriting.Configuration.UrlRewriteSection" />
            <section name="WebServiceSettings" type="System.Configuration.NameValueSectionHandler, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
            <sectionGroup name="ErrorHandling">
                  <section name="errorMail" type="System.Configuration.SingleTagSectionHandler" />
            </sectionGroup>
            <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                  <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

                  </sectionGroup>
            </sectionGroup>
      </configSections>
      <appSettings>
            <add key="SiteDivisionID" value="1" />
            <add key="GoogleAnalytics" value="UA-502774-7" />
            <add key="disableLuceneLocks" value="true" />
            <add key="xxPortalUrl" value="https://secure01.ca-industries.com" />
            <add key="PortalUrl" value="http://netfix-portal.ca-industries.com/" />
            <add key="HireRequestRecipients" value="bcolan@focusonesolutions.com" />
            <add key="CandidateInquiryRecipients" value="bcolan@focusonesolutions.com" />
            <add key="MSAForJobSearchEnabled" value="false" />
            <add key="ReferralRecipients" value="bcolan@focusonesolutions.com" />
      </appSettings>
      <connectionStrings>
            <add name="AUExplorer" connectionString="Persist Security Info=false;Integrated Security=false;Server=CASQL02\NETFIX;Database=AUExplorer;User Id=AUExplorer;Password=.netrocks;" providerName="System.Data.SqlClient" />
            <add name="AUFox" connectionString="Persist Security Info=false;Integrated Security=false;Server=CASQL02\NETFIX;Database=CASHARED;User Id=AUExplorer;Password=.netrocks;" providerName="System.Data.SqlClient" />
            <add name="AUShared" connectionString="Persist Security Info=false;Integrated Security=false;Server=CASQL02\NETFIX;Database=CASHARED;User Id=AUExplorer;Password=.netrocks;" providerName="System.Data.SqlClient" />
            <add name="PSFN" connectionString="Persist Security Info=false;Integrated Security=false;Server=CAPSDEV;Database=FNFIX;User Id=AUExplorer;Password=.netrocks;" providerName="System.Data.SqlClient" />
            <add name="PSHR" connectionString="Persist Security Info=false;Integrated Security=false;Server=CAPSDEV;Database=HRFIX;User Id=AUExplorer;Password=.netrocks;" providerName="System.Data.SqlClient" />
      </connectionStrings>
      <system.web>
            <xhtmlConformance mode="Strict" />
            <trace enabled="false" pageOutput="true" />
            <compilation debug="true">
                  <assemblies>
                        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                        <add assembly="System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                        <add assembly="System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                        <add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                        <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
                        <add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                        <add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                        <add assembly="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                        <add assembly="System.Runtime.Serialization.Formatters.Soap, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                        <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                  </assemblies>
            </compilation>
            <authentication mode="Forms" />
            <httpHandlers>
                  <add verb="*" path="GoogleSitemap.ashx" type="AureusGroup.Web.Public.Components.SiteMap.SiteMapHandler,AureusGroup.Web.Public" />
                  <add verb="*" path="Login.aspx" type="AureusGroup.Web.Public.Components.LoginRedirectHandler,AureusGroup.Web.Public" />
                  <add verb="*" path="Apply-Online.aspx" type="AureusGroup.Web.Public.Components.ApplyOnlineRedirectHandler,AureusGroup.Web.Public" />
                  <remove verb="*" path="*.asmx" />
                  <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
                  <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
                  <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
            </httpHandlers>
            <httpModules>
                  <add name="UrlRewriteModule" type="AureusGroup.Web.Public.Components.UrlRewriting.UrlRewriteModule,AureusGroup.Web.Public" />
                  <add name="SourceTrackerModule" type="AureusGroup.Web.Public.Components.SourceTrackerModule,AureusGroup.Web.Public" />
                  <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
            </httpModules>
            <pages>
                  <controls>
                        <add tagPrefix="Aureus" assembly="AureusGroup.Web.Public" namespace="AureusGroup.Web.Public.Controls" />
                        <add tagPrefix="Aureus" assembly="AureusGroup.Web" namespace="AureusGroup.Web.Controls" />
                        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
                  </controls>
            </pages>
            <siteMap defaultProvider="Menu" enabled="true">
                  <providers>
                        <clear />
                        <add name="Menu" type="AureusGroup.Web.Public.Controls.MenuSiteMapProvider" siteMapFile="Menu.sitemap" />
                  </providers>
            </siteMap>
            <customErrors mode="Off" />
      </system.web>
      <LoggingConfiguration type="AureusGroup.LoggingConfiguration, AureusGroup">
            <Switches>
                  <Switch Name="Errors" EventLog="true" Database="true" />
                  <Switch Name="DAL" File="" EventLog="false" Database="false" />
            </Switches>
      </LoggingConfiguration>
      <WebServiceSettings>
            <add key="EmailService" value="http://canetapp01/AureuswebService/EmailService.asmx" />
      </WebServiceSettings>
      <UrlRewriting configSource="Urls.config" />
      <ErrorHandling>
            <errorMail from="akumar@ca-industries.com" server="CANETBUILD" to="akumar@ca-industries.com" subject="There has been an error - FOCUSONESOLUTIONS" async="false" />
      </ErrorHandling>
      <system.web.extensions>
            <scripting>
                  <scriptResourceHandler enableCompression="true" enableCaching="true" />
            </scripting>
      </system.web.extensions>
    <system.webServer>
        <defaultDocument>
            <files>
                <clear />
                <add value="default.aspx" />
                <add value="Default.htm" />
                <add value="Default.asp" />
                <add value="index.htm" />
                <add value="index.html" />
                <add value="iisstart.htm" />
            </files>
        </defaultDocument>
    </system.webServer>
</configuration>
0
Pamela4
Asked:
Pamela4
1 Solution
 
Rainer JeschorCommented:
Hi,

please replace the configSections with this:
<configSections>
            <section name="LoggingConfiguration" type="AureusGroup.XmlConfigurator, AureusGroup" />
            <section name="UrlRewriting" type="AureusGroup.Web.Public.Components.UrlRewriting.Configuration.UrlRewriteSection" />
            <section name="WebServiceSettings" type="System.Configuration.NameValueSectionHandler, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
            <sectionGroup name="ErrorHandling">
                  <section name="errorMail" type="System.Configuration.SingleTagSectionHandler" />
            </sectionGroup>
            <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                  <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
					<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                  </sectionGroup>
            </sectionGroup>
      </configSections>

Open in new window


You simply missed
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

HTH
Rainer

Remark: Just to mention: whenever you post configs (which is sometime absolutely necessary, please go over it before you post and rename User Ids, passwords and server names / database names etc.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now