Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Tommy 5 posts 25 karma points
    Dec 19, 2009 @ 02:55

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

    With 4.0.3 I seem to get the following error after adding it to a document type. It only happens for documents that have this data-type to and has just started after I added this data-type.

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

    [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.ScriptReference.GetUrlFromName(ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) +172
    System.Web.UI.ScriptReference.GetUrl(ScriptManager scriptManager, Boolean zip) +196
    System.Web.UI.ScriptManager.RegisterUniqueScripts(List`1 uniqueScripts) +121
    System.Web.UI.ScriptManager.RegisterScripts() +386
    System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +113
    System.EventHandler.Invoke(Object sender, EventArgs e) +0
    System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8698462
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1029


    It is the standard "Repeatable Custom Content v2" data-type but with a Repeatable Custom Content Rich Text Editor - repeatable item.

    Any ideas why?

  • Rodske 74 posts 104 karma points
    Dec 19, 2009 @ 04:24

    I had this issue and it turned out to be web.config settings for the assemblies.

  • webangelo 107 posts 190 karma points
    Jan 04, 2010 @ 16:22

    specifically you might need to add the following binding redirect:

          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31BF3856AD364E35" culture="neutral" />
            <bindingRedirect oldVersion="1.0.61025.0" newVersion=""/>
  • karen 186 posts 461 karma points
    Jan 20, 2010 @ 22:17

    Thanks webangelo for the specifics!

Please Sign in or register to post replies

Write your reply to: