NullReferenceException after upgrade

6 posts, 0 answers
  1. Kevin Warnke
    Kevin Warnke avatar
    35 posts
    Member since:
    Feb 2010

    Posted 03 Sep 2012 Link to this post

    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)

  2. Kevin Warnke
    Kevin Warnke avatar
    35 posts
    Member since:
    Feb 2010

    Posted 05 Sep 2012 Link to this post

    Anyone have any ideas here?

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

    Thanks,
    Kevin
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 06 Sep 2012 Link to this post

    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.
  5. Raphael
    Raphael avatar
    4 posts
    Member since:
    Nov 2010

    Posted 12 Nov 2012 Link to this post

    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
  6. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 14 Nov 2012 Link to this post

    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.
  7. Raphael
    Raphael avatar
    4 posts
    Member since:
    Nov 2010

    Posted 16 Nov 2012 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017