I am getting the following error using the CompositeScript feature of the ScriptManager. I have ScriptManagerProxy in several different usercontrols that use CompositeScript to add whatever JS files they need. Sometimes there are duplicates which would get removed by the script manager, but that is not happening with the Composite Scripts. Looking at the stack trace, it calls RemoveDuplicates but for some reason it doesn't do so. Is this a bug? Is there a workaround or a hotfix?
A script reference cannot be included multiple times in composite script references.
Stack Trace: [InvalidOperationException: A script reference cannot be included multiple times in composite script references.] System.Web.UI.ScriptManager.RemoveDuplicates(List`1 scripts) +698 System.Web.UI.ScriptManager.RegisterScripts() +328 System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +113 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8695102 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1029
View Complete Post