List Filter Plus Error: Old version of AJAX registered in web.config


After adding the List Filter Plus Webpart to a page I’m getting the following error at this page:

Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidCastException: Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidCastException: Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.]

System.Web.Configuration.ApplicationSettings.EnsureSectionLoaded() +72

System.Web.Handlers.ScriptResourceHandler.IsCompressionEnabled(HttpContext context) +10

System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(List`1 assemblyResourceLists, Boolean zip, Boolean notifyScriptLoaded) +53

System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +152

System.Web.Handlers.ScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +37

System.Web.UI.ScriptManager.GetScriptResourceUrl(String resourceName, Assembly assembly) +105

System.Web.UI.ScriptRegistrationManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +113

System.Web.UI.ScriptManager.System.Web.UI.IScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +14

System.Web.UI.ClientScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +53

System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e, Boolean registerScript) +113

System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e) +25

Microsoft.SharePoint.WebControls.AspMenu.OnPreRender(EventArgs e) +142

System.Web.UI.Control.PreRenderRecursiveInternal() +80

System.Web.UI.Control.PreRenderRecursiveInternal() +171

System.Web.UI.Control.PreRenderRecursiveInternal() +171

System.Web.UI.Control.PreRenderRecursiveInternal() +171

System.Web.UI.Control.PreRenderRecursiveInternal() +171

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842



Add the List Filter Plus web part to a web part page.  The page will display the error and stack trace in the summary section.


 List Filter Plus uses AJAX  You should check that it is installed and referenced properly in the web.config or your web application.  If it is not referenced properly or is refercing an older version, here is the steps to referece it manually:

1.    In  the web.config, check which version of AJAX you have in line:

<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

If it is not, they need to change the old version number to new one in all the web.config.  Afterwards save your file.


2.       If the AJAX version is reference to, you should install the latest List Filter Plus version on our website and check in your web.config if you have the double tags which started with <add name="ScriptModule".

If you have it, you should remove the line below:

<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />.  Afterwards save your file.


More Information