Try Now
More in this section

Forums / Developing with Sitefinity / Custom FormsControl JavaScript error

Custom FormsControl JavaScript error

3 posts, 0 answered
  1. Stephen
    Stephen avatar
    25 posts
    07 Feb 2013
    14 Jan 2015
    Link to this post

    High Level Problem:

    Bug in SF 7.1 prevented FormControls extension

    Solution: This article was great! And (mostly) solved the issue.


     New Problem:

     However, on pages where the master page includes an <asp:ScriptManager ID="xxxxx" runat="sever" /> tag, control will not load.

    Question: What is the proper way to load the script when the ScriptManager is in the .master file?

    Thank you in advance, for your time.

    Error Received:

    Assembly 'SitefinityWebApp, Version=7.1.5200.0,
    Culture=neutral, PublicKeyToken=null' does not contain a Web resource
    with name

    [InvalidOperationException: Assembly 'SitefinityWebApp, Version=7.1.5200.0, Culture=neutral, PublicKeyToken=null' does not contain a Web resource with name 'SitefinityWebApp.Custom.FormsEnhancements.FormsNotification.js'.]
    System.Web.UI.WebResourceUtil.VerifyAssemblyContainsReleaseWebResource(Assembly assembly, String releaseResourceName, Assembly currentAjaxAssembly) +429434
    System.Web.UI.ScriptReference.ShouldUseDebugScript(String releaseName, Assembly assembly, Boolean isDebuggingEnabled, Assembly currentAjaxAssembly) +86
    System.Web.UI.ScriptReference.DetermineResourceNameAndAssembly(ScriptManager scriptManager, Boolean isDebuggingEnabled, String& resourceName, Assembly& assembly) +95
    System.Web.UI.ScriptReference.GetUrlFromName(ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip, Boolean useCdnPath) +103
    System.Web.UI.ScriptReference.GetUrlInternal(ScriptManager scriptManager, Boolean zip, Boolean useCdnPath) +601
    System.Web.UI.ScriptReference.GetUrl(ScriptManager scriptManager, Boolean zip) +195
    System.Web.UI.ScriptManager.RegisterUniqueScripts(List`1 uniqueScripts) +194
    System.Web.UI.ScriptManager.RegisterScripts() +467
    System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +122
    System.EventHandler.Invoke(Object sender, EventArgs e) +0
    System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +121
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1155

  2. Pavel Benov
    Pavel Benov avatar
    341 posts
    14 Mar 2016
    19 Jan 2015
    Link to this post
    Hello Stephen,

    Please make sure that the .js file's Build action is set to embedded resource. Additionally have you tried to to register it in the AssemblyInfo.cs? 


    Pavel Benov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
  3. Stephen
    Stephen avatar
    25 posts
    07 Feb 2013
    19 Jan 2015
    Link to this post

    Pavel -


    Thank you. The AssembyInfo solution was in fact what I needed.  (I had already ensured it was an embedded resource).


3 posts, 0 answered