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

RadScriptManager Error

6 Answers 254 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 12 May 2009, 05:30 PM
I placed a RadScriptManager control in the Masterpage of my Sharepoint site. Here is the relevant code:

<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

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 13 May 2009, 07:54 AM
Hello Robert,

I suggest the following:
  1. 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.
  2. Make sure the following line is present in your web.config:
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

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.




0
Atanas Korchev
Telerik team
answered on 13 May 2009, 02:46 PM
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.
0
Robert
Top achievements
Rank 1
answered on 13 May 2009, 02:55 PM
Let me know if you need more.


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
Atanas Korchev
Telerik team
answered on 13 May 2009, 03:08 PM
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.
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!

Tags
Sharepoint Integration
Asked by
Robert
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Robert
Top achievements
Rank 1
Share this question
or