RadScriptManager generating NullReferenceException

2 posts, 1 answers
  1. Saira
    Saira avatar
    24 posts
    Member since:
    Feb 2013

    Posted 27 Feb 2013 Link to this post


    In my web application, I am loading scripts from assemblies with short names and the RadScriptManager is generating the following error NullReferenceException: Object not set to an instance of an object. Later I replaced the RadScriptManager with the ASP ScriptManager and things are working fine. Do I have to add any additional settings/properties when using RadScriptManager or am I missing any reference that causes the RadScriptManager to generate the given exception?

  2. Answer
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Feb 2013 Link to this post

    Hi Saira,

    This is a known issue with the RadScriptManager. The standard ScriptManager automatically resolves the short name whereas RadScriptManager requires a full name. Telerik is telling like this behavior will be optimized in the future, however until then please make use of the fully qualified name as below.
    <asp:ScriptReference Name="WebForms.js" Assembly=" System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <asp:ScriptReference Name="WebUIValidation.js" Assembly=" System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" />

Back to Top