I placed a RadScriptManager control in the Masterpage of my Sharepoint site. Here is the relevant code:
I am following examples set here and here.
However this generates the following error:
Literal content ('<asp:ScriptReference name=""Assembly=""Path="~/Scripts/jquery.getParams.js">
<asp:ScriptReference name=""Assembly=""Path="~/Scripts/jquery-ui-1.7.1.custom.min.js">') is not allowed within a 'System.Web.UI.ScriptReferenceCollection'.
I am not sure what this is.
<telerik:RadScriptManager Runat=server id="RadScriptManager1"> |
<Scripts> |
<asp:ScriptReference name=""Assembly=""Path="~/Scripts/jquery.getParams.js"> |
<asp:ScriptReference name=""Assembly=""Path="~/Scripts/jquery-ui-1.7.1.custom.min.js"> |
</Scripts> |
</telerik:RadScriptManager> |
I am following examples set here and here.
However this generates the following error:
Literal content ('<asp:ScriptReference name=""Assembly=""Path="~/Scripts/jquery.getParams.js">
<asp:ScriptReference name=""Assembly=""Path="~/Scripts/jquery-ui-1.7.1.custom.min.js">') is not allowed within a 'System.Web.UI.ScriptReferenceCollection'.
I am not sure what this is.
6 Answers, 1 is accepted
0
Accepted
Hello Robert,
I suggest the following:
I have updated your telerik points for spotting the problem in our documentation.
I hope this helps,
Albert
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I suggest the following:
- Remove the empty Name and Assembly attributes so the declaration looks like this:
<telerik:RadScriptManager Runat=server id="RadScriptManager1">
<Scripts>
<asp:ScriptReference Path="~/Scripts/jquery.getParams.js" />
<asp:ScriptReference Path="~/Scripts/jquery-ui-1.7.1.custom.min.js" />
</Scripts>
</telerik:RadScriptManager>
It seems that for some reason the ScriptReference tag is not closed in our documentation. I will make sure we fix this ASAP. - Make sure the following line is present in your web.config:
I have updated your telerik points for spotting the problem in our documentation.
I hope this helps,
Albert
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Robert
Top achievements
Rank 1
answered on 13 May 2009, 02:33 PM
I have made all the changes you suggested and am getting the following error:
System.NullReferenceException: Object reference not set to an instance of an object.
If I remove the RadScriptManager tag and replace it with a standard asp.net ajax ScriptManager my page loads fine. But I need the RadScriptManager in order to do what I need.
System.NullReferenceException: Object reference not set to an instance of an object.
If I remove the RadScriptManager tag and replace it with a standard asp.net ajax ScriptManager my page loads fine. But I need the RadScriptManager in order to do what I need.
0
Hi Robert,
Could you please provide the full stack trace?
Kind regards,
Albert
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Could you please provide the full stack trace?
Kind regards,
Albert
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Robert
Top achievements
Rank 1
answered on 13 May 2009, 02:55 PM
Let me know if you need more.
Stack Trace:
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] Telerik.Web.UI.WebResource.Exists(HttpContext context, String path, String applicationPath) +878 Telerik.Web.UI.RadScriptManager.OnPreRender(EventArgs e) +86 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842 |
0
Accepted
Hello Robert,
For some reason the HTTP handler detection code fails in your setup. You can try setting the EnableHandlerDetection property of RadScriptManager to false. Additionally please make sure that you have included the assembly version when registering the HTTP handler in MOSS as explained in this help topic.
Regards,
Albert
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
For some reason the HTTP handler detection code fails in your setup. You can try setting the EnableHandlerDetection property of RadScriptManager to false. Additionally please make sure that you have included the assembly version when registering the HTTP handler in MOSS as explained in this help topic.
Regards,
Albert
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Robert
Top achievements
Rank 1
answered on 13 May 2009, 03:54 PM
Hi Albert.
That was the problem. I followed the HTTP handler instructions in the original documentation page which is different from the one you just sent. That original page is pretty messed up.
It's all working now. Thanks for your help!
That was the problem. I followed the HTTP handler instructions in the original documentation page which is different from the one you just sent. That original page is pretty messed up.
It's all working now. Thanks for your help!