Error when enabling

Apr 6, 2010 at 7:25 PM

I am getting the following error when enabling enhanced calendar.  It installed, deployed and activated with no problems.  Any ideas appreciated. 

Server Error in '/' Application.

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() +91
   System.Web.Handlers.ScriptResourceHandler.IsCompressionEnabled(HttpContext context) +13
   System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(List`1 assemblyResourceLists, Boolean zip, Boolean notifyScriptLoaded) +139
   System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +193
   System.Web.UI.ScriptManager.GetScriptResourceUrl(String resourceName, Assembly assembly) +128
   System.Web.UI.ScriptRegistrationManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +154
   System.Web.UI.ScriptManager.System.Web.UI.IScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +27
   System.Web.UI.ClientScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +92
   System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e, Boolean registerScript) +206
   Microsoft.SharePoint.WebControls.AspMenu.OnPreRender(EventArgs e) +166
   System.Web.UI.Control.PreRenderRecursiveInternal() +108
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394



Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3601

Developer
Apr 7, 2010 at 10:06 AM

Reason of that issue is conflict version of System.Web.Extensions assembly.

Please do the following next steps:

1. Backup your web.config

2. Add following code in assemblyBinding section of runtime of your web.config file:

<dependentAssembly>
    <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31BF3856AD364E35" culture="neutral" />
    <bindingRedirect oldVersion="1.0.61025.0" newVersion="3.5.0.0"/>
</dependentAssembly>

3. Restart IIS service.

Let me know if it helps you.

Apr 8, 2010 at 12:26 AM

Yes, works now.  Thanks.