Weird Error: Object Reference not set to instance of an object.

Last post 10-04-2007 4:00 PM by madestro. 2 replies.

Sort Posts:

  • Weird Error: Object Reference not set to instance of an object.

    12-29-2006, 3:52 PM
    • Member
      581 point Member
    • JimAmigo
    • Member since 01-28-2004, 1:40 PM
    • Posts 252

    I'm attempting to get the cascadingdropdown to work and get this weird error. I've followed the cascadingdropdown database walk-through thoroughly. It's extremely frustrating to see these great controls that are such a pain in the butt to use. I'm using and XP machine with Visual Studio 2005 and I'm only using the local ASP.net development server to test the page.

    Do I need to import the ExtenderControlBase.cs into my website? There is no mention of this in the walk through directions or environment setup.

    Here is the stack trace from the error.

    at AjaxControlToolkit.CascadingDropDown.CascadingDropDown_ClientStateValuesLoaded(Object sender, EventArgs e) in d:\TFS\AtlasControlToolkit\Release\AjaxControlToolkit\CascadingDropDown\CascadingDropDownExtender.cs:line 188
       at AjaxControlToolkit.ExtenderControlBase.LoadClientStateValues() in d:\TFS\AtlasControlToolkit\Release\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs:line 386
       at AjaxControlToolkit.ExtenderControlBase.Page_PreLoad(Object sender, EventArgs e) in d:\TFS\AtlasControlToolkit\Release\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs:line 350
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Web.UI.Page.OnPreLoad(EventArgs e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     Here is the dissembly: 

    --- d:\TFS\AtlasControlToolkit\Release\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs

    00000000 push esi

    00000001 push eax

    00000002 mov dword ptr [esp],edx

    00000005 mov esi,ecx

    00000007 cmp dword ptr ds:[05413ADCh],0

    0000000e je 00000015

    00000010 call 74056816

    00000015 mov ecx,esi

    00000017 call dword ptr ds:[0562B448h]

    0000001d nop

    0000001e pop ecx

    0000001f pop esi

    00000020 ret 4

    Jim
  • Re: Weird Error: Object Reference not set to instance of an object.

    01-18-2007, 5:19 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    • AspNetTeam
    Please try your scenario with the 61214 release of the Toolkit (and ASP.NET AJAX RC). If the problem persists, then please reply with a complete, simple, self-contained sample page that demonstrates the problem so that we can investigate the specific behavior you're seeing. Thank you!

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Weird Error: Object Reference not set to instance of an object.

    10-04-2007, 4:00 PM
    • Member
      11 point Member
    • madestro
    • Member since 04-09-2003, 11:28 AM
    • Elizabeth, NJ
    • Posts 29

    I just ran into the same problem and I figured I would answer in case someone else is having this issue.

     The name of this extender is missleading. It's called CascadingDropDown when it should be called something like CascadingDropDownExtender.

    The extender DOES NOT output a dropdownlist. It populates an existing one. If you are like me, you probably don't have a TargetControlID set for the extender, only a ParentControlID. Add a combo box and set the extender's TargetControlID property to the new combo ID and you should be good to go.

    "If you torture the data enough, it will confess." Ronald Coarse.
Page 1 of 1 (3 items)