This is a migrated thread and some comments may be shown as answers.

Scriptmanager ScriptReference error in Sharepoint

1 Answer 56 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
umar okeeffe
Top achievements
Rank 1
umar okeeffe asked on 16 Dec 2010, 11:59 PM
hello,

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"
        >
        <Scripts>
            <%--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" />
             
        </Scripts>
    </asp:ScriptManager>
    

error
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)

1 Answer, 1 is accepted

Sort by
0
umar okeeffe
Top achievements
Rank 1
answered on 17 Dec 2010, 07:03 PM
The error is I wrote PublicTokenKey, it should be PublicKeyToken
Tags
ScriptManager and StyleSheetManager
Asked by
umar okeeffe
Top achievements
Rank 1
Answers by
umar okeeffe
Top achievements
Rank 1
Share this question
or