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

RadScriptManager generating NullReferenceException

1 Answer 59 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Saira
Top achievements
Rank 1
Saira asked on 27 Feb 2013, 05:32 PM
Hi,

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?

Saira

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 28 Feb 2013, 04:37 AM
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.
 
ASPX:
<asp:ScriptReference Name="WebForms.js" Assembly=" System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly=" System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" />

Thanks,
Princy.
Tags
ScriptManager and StyleSheetManager
Asked by
Saira
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or