in

Chennai .Net User Group

A platform that enables you to Learn, Share & Grow (India's first .Net user group)
Latest post 12-17-2008 6:35 AM by dheerajk. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-16-2008 3:59 PM

    • karthika
    • Top 25 Contributor
    • Joined on 12-04-2008
    • Posts 3
    • Points 70

    While debugging the project the following errors comes...


    Line 28:             System.Collections.ObjectModel.Collection<ebuytoolcms.data.Menu> coll = null;
    Line 29: System.Text.StringBuilder sb = new System.Text.StringBuilder();
    Line 30: currentmenu = ParentMasterPage.QueryMenu.GetActiveMenu();
    Line 31: if (ParentMasterPage.QueryMenu.LevelOneMenu != null)
    Line 32: {


    Source File: C:\Documents and Settings\Subramaian\My Documents\Visual Studio 2005\Projects\chennaitaxi\chennaitaxi\ucontrols\secondlevelmenu.ascx.cs    Line: 30

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
    ebuytool.chennaitaxi.ucontrols.leveltwomenu.GetMenu() in C:\Documents and Settings\Subramaian\My Documents\Visual Studio 2005\Projects\chennaitaxi\chennaitaxi\ucontrols\secondlevelmenu.ascx.cs:30
    ebuytool.chennaitaxi.ucontrols.leveltwomenu.OnLoad(EventArgs e) in C:\Documents and Settings\Subramaian\My Documents\Visual Studio 2005\Projects\chennaitaxi\chennaitaxi\ucontrols\secondlevelmenu.ascx.cs:23
    System.Web.UI.Control.LoadRecursive() +74
    System.Web.UI.Control.LoadRecursive() +158
    System.Web.UI.Control.LoadRecursive() +158
    System.Web.UI.Control.LoadRecursive() +158
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3021

     

     

     

    Please help me....

     

  • 12-17-2008 6:35 AM In reply to

    • dheerajk
    • Top 50 Contributor
    • Joined on 12-17-2008
    • Posts 2
    • Points 25

    Music [8] Re: While debugging the project the following errors comes...

    hi,

    [NullReferenceException] occurs if new operator is expected and not supplied so check the objects that needed to be instantiated and instantiate with new operator

     

    thnks,

    hope it will help u a bit

    Filed under:
Page 1 of 1 (2 items)
Copyright © 2002-2008 Chennai .Net User Group. All Rights Reserved. Microsoft and Microsoft logo's are trademarks of Microsoft Corporation