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

NullReferenceException after upgrade

5 Answers 193 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kevin Warnke
Top achievements
Rank 1
Kevin Warnke asked on 03 Sep 2012, 09:56 PM
I recently upgraded to the latest version (RadControls for ASP.NET AJAX Q2 2012 SP1) and once I did that I started getting the error below when trying to launch the image manager outside of an editor (this was working fine before).

Anyone have any ideas on how to debug this?

ASPX:
<telerik:dialogopener runat="server" id="DialogOpener1"  AdditionalQueryString="" HandlerUrl="~/Telerik.Web.UI.DialogHandler.aspx" style="display: none;" />

Javascript that launched the editor:
var dialogOpener = $find('<%= DialogOpener1.ClientID %>');
dialogOpener.open('ImageManager', { CssClasses: [] });

There is some manipulation done to the manager control in the code behind in terms of setting parameters, etc.

Thanks,
Kevin

1) Exception Information

*********************************************

Exception Type: System.NullReferenceException

Message: Object reference not set to an instance of an object.

Data: System.Collections.ListDictionaryInternal

TargetSite: Void OnLoad(System.EventArgs)

HelpLink: NULL

Source: Telerik.Web.UI

StackTrace Information

*********************************************

   at Telerik.Web.UI.Editor.DialogControls.ImageManagerDialog.OnLoad(EventArgs e)

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

5 Answers, 1 is accepted

Sort by
0
Kevin Warnke
Top achievements
Rank 1
answered on 05 Sep 2012, 09:03 PM
Anyone have any ideas here?

I'm not even sure where to start tracking this down...

Thanks,
Kevin
0
Rumen
Telerik team
answered on 06 Sep 2012, 06:03 AM
Hi Kevin,

To fix the error, please, upgrade to the latest internal build of RadControls for ASP.NET AJAX, which is Telerik.Web.UI_2012_2_904.

The problem will not exist in the upcoming service pack release of RadControls for ASP.NET AJAX.

Regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Raphael
Top achievements
Rank 1
answered on 12 Nov 2012, 04:43 PM
We're using DotNetNuke, and we have the same problem in our custom module. Because DotNetNuke uses the Telerik Assembly (and we share our module), we can't update to a newer RadControls build. (DotNetNuke 6.2.4, the current version, uses Telerik.Web.UI_2012_2_724)

Do you know a work-around for this bug without upgrading?

__________
Edit:
I could find the work-around here, thank you very much Rumen: http://www.telerik.com/community/forums/aspnet-ajax/editor/stand-alone-dialogs-fail-2012-2-724-40.aspx
0
Rumen
Telerik team
answered on 14 Nov 2012, 04:02 PM
Hello,

I am afraid that this bug is in the server code of the control and the only way to fix it is to upgrade or downgrade to a newer or earlier version. If you upgrade to the latest Q3 2012 build of RadEditor in 6.2.4 you should add bindingRedirect for the Telerik.Web.UI.dll in the web.config file.

You can see the FAQ section for more information:

  • How to use previous versions of RadControls for ASP.NET AJAX (prior to Q3 2009) or newer versions than those coming with the DotNetNuke distribution?

    Download the version of RadControls for ASP.NET AJAX you have under your Telerik account and add a reference to it inside your DNN project (either in the /bin folder or Global Assembly Cache). In case you have <bindingRedirect> element inside DNN’s web config file, modify it to match the assembly version number of Telerik.Web.UI.dll and Telerik.Web.Design.dll, for example:

    NET 3.5:
    <dependentAssembly>
      <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4"/>
          <bindingRedirect oldVersion="2008.0.0.0-2020.0.0.0" newVersion="2009.2.701.35"/>
    </dependentAssembly>
    <dependentAssembly>
      <assemblyIdentity name="Telerik.Web.Design " publicKeyToken="121fae78165ba3d4"/>
          <bindingRedirect oldVersion="2008.0.0.0-2020.0.0.0" newVersion="2009.2.701.35"/>
    </dependentAssembly>

    NET 2:
    <dependentAssembly>
      <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4"/>
          <bindingRedirect oldVersion="2008.0.0.0-2020.0.0.0" newVersion="2009.2.701.20"/>
    </dependentAssembly>
    <dependentAssembly>
      <assemblyIdentity name="Telerik.Web.Design " publicKeyToken="121fae78165ba3d4"/>
          <bindingRedirect oldVersion="2008.0.0.0-2020.0.0.0" newVersion="2009.2.701.20"/>
    </dependentAssembly>



All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Raphael
Top achievements
Rank 1
answered on 16 Nov 2012, 04:44 PM
Using a newer or earlier version of RadEditor is not an option because we share our DotNetNuke module, so it will still fail on every DotNetNuke 6.2.4 installation not managed by us.

I found a workaround that you provided here http://www.telerik.com/community/forums/aspnet-ajax/editor/stand-alone-dialogs-fail-2012-2-724-40.aspx, which solved the problem.

Thank you

Regards,
Raphael
Tags
General Discussions
Asked by
Kevin Warnke
Top achievements
Rank 1
Answers by
Kevin Warnke
Top achievements
Rank 1
Rumen
Telerik team
Raphael
Top achievements
Rank 1
Share this question
or