Scriptmanager ScriptReference error in Sharepoint

2 posts, 0 answers
  1. umar okeeffe
    umar okeeffe avatar
    19 posts
    Member since:
    Dec 2009

    Posted 16 Dec 2010 Link to this post


    I have been trying to include the telerik jquery libraries.
    I realize by running on sharepoint I have to turn Assembly
    references into the full assembly name with version info and
    key number. so as a result I have changed my script references as in the code block below.
    Keep in mind that this code runs in a master page, and that the page works when
    I comment out the the script references. Otherwise I get the error which I posted below this
    code block. Perhaps I am writing the reference incorrectly? Thanks for any help
    <asp:ScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"
                <%--Needed for JavaScript IntelliSense in VS2010--%>
                <%--For VS2008 replace RadScriptManager with ScriptManager--%>
                <asp:ScriptReference Assembly="Telerik.Web.UI, version=2010.1.309.35, Culture=Neutral, PublicTokenKey=121fae78165ba3d4" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI, version=2010.1.309.35, Culture=Neutral, PublicTokenKey=121fae78165ba3d4" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI, version=2010.1.309.35, Culture=Neutral, PublicTokenKey=121fae78165ba3d4" Name="Telerik.Web.UI.Common.jQueryInclude.js" />

    File Not Found.   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
       at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(String assemblyString)
       at System.Web.UI.AssemblyCache.Load(String assemblyName)
       at System.Web.UI.ScriptManager.RemoveDuplicates(List`1 scripts)
       at System.Web.UI.ScriptManager.RegisterScripts()
       at System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  2. umar okeeffe
    umar okeeffe avatar
    19 posts
    Member since:
    Dec 2009

    Posted 17 Dec 2010 Link to this post

    The error is I wrote PublicTokenKey, it should be PublicKeyToken
Back to Top