asp:ScriptReference problem

6 posts, 1 answers
  1. Bob
    Bob avatar
    72 posts
    Member since:
    May 2008

    Posted 21 Jul 2008 Link to this post

    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="" Name="" Path="~/js/AjaxExceptionHandling.js" />
            </Scripts>
        </telerik:RadScriptManager>

    Error:

    Error    15    System.Web.UI.ScriptReferenceCollection must have items of type 'System.Web.UI.ScriptReference'. 'asp:ScriptReference' is of type 'System.Web.UI.ScriptReference'.    C:\Development\Website\Main.aspx    82   

    Why would I receive this error?  The last thing I did was upgrade from v415 to v619.

  2. Answer
    Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 21 Jul 2008 Link to this post

    Bob-

    Sorry to see you're having trouble. Your code snippet looks correct. You can obviously remove the unused "Assembly" and "Name" properties from your ScriptReference, but otherwise things look okay.

    Have you tried debugging this problem yet? If not, I'd suggest trying a couple of things:

    1. Try using a "regular" ScriptManager to see if that solves the problem. If it does, then...
    2. Try re-adding the Telerik ScriptManager. If that re-breaks the page, then...
    3. Try re-adding the older version of the Telerik ScriptManager. If that works then we've found a problem with the version you're using.
    Give those things a try and let me know what you find.

    -Todd
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bob
    Bob avatar
    72 posts
    Member since:
    May 2008

    Posted 21 Jul 2008 Link to this post

    The standard ScriptManager worked, and both errors were resolved when I re-added the RadScriptManager (via Design view) to one of the pages.

    Thanks!
  5. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 21 Jul 2008 Link to this post

    Bob-

    Good to hear. Sounds like there must have just been a problem with the register directive on the page, or even more likely with the temporary ASP.NET files on your PC. Good luck on the rest of your project!

    -Todd
  6. Joseph Alves
    Joseph Alves avatar
    6 posts
    Member since:
    Feb 2008

    Posted 18 Aug 2008 Link to this post

    Had the same here and I've just found out why :  the system.web.extension was not referenced in my project. Once I referenced it, everything came back to normal.
  7. Hector
    Hector avatar
    92 posts
    Member since:
    May 2009

    Posted 20 May 2010 Link to this post

    Had exact same problem and fixed it by:
    1.  adding a regular asp scriptmanager,
    2. building the project,
    3. deleting asp:scriptmanager
    4. adding RadScriptManager and referencing the scripts
    Thanks for the sugestion, Todd!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017