Error Messages

Discussion in 'ASP .Net' started by Aziz, Dec 30, 2005.

  1. Aziz

    Aziz Guest

    Hi,

    A web applications error output is like this:

    [NullReferenceException: Object reference not set to an instance of an
    object.]
    Gor.Forms.Page.SecurityCheck(Object sender, EventArgs e) +40
    System.Web.UI.Control.OnInit(EventArgs e) +67
    Agromax.main.OnInit(EventArgs e) +50
    [...]


    Should I look for a Page object not set to an instance, or something
    else? I'm not used to .NET and VS error messages...

    Thanks
     
    Aziz, Dec 30, 2005
    #1
    1. Advertisements

  2. Aziz

    Marina Guest

    The page is fine. It is a variable or a function return value - something
    there is null but you always expect it to have a value. According to the
    stack it's in your OnInit implementation.

    "Aziz" <aziz@spam_mania.com> wrote in message
    news:...
    > Hi,
    >
    > A web applications error output is like this:
    >
    > [NullReferenceException: Object reference not set to an instance of an
    > object.]
    > Gor.Forms.Page.SecurityCheck(Object sender, EventArgs e) +40
    > System.Web.UI.Control.OnInit(EventArgs e) +67
    > Agromax.main.OnInit(EventArgs e) +50
    > [...]
    >
    >
    > Should I look for a Page object not set to an instance, or something
    > else? I'm not used to .NET and VS error messages...
    >
    > Thanks
     
    Marina, Dec 30, 2005
    #2
    1. Advertisements

  3. Aziz

    Jim Cheshire Guest

    Aziz wrote:
    > Hi,
    >
    > A web applications error output is like this:
    >
    > [NullReferenceException: Object reference not set to an instance of an
    > object.]
    > Gor.Forms.Page.SecurityCheck(Object sender, EventArgs e) +40
    > System.Web.UI.Control.OnInit(EventArgs e) +67
    > Agromax.main.OnInit(EventArgs e) +50
    > [...]
    >
    >
    > Should I look for a Page object not set to an instance, or something
    > else? I'm not used to .NET and VS error messages...
    >


    You would want to look here:

    Gor.Forms.Page.SecurityCheck(Object sender, EventArgs e) +40

    In other words, at an offset of 40 inside of the SecurityCheck function.

    Where did this error message appear?

    --
    Jim Cheshire
    ================================
    Blog: http://blogs.msdn.com/jamesche

    Latest entry: Digging into Objects
    Describes the details of digging into
    memory usage with the debugger.
     
    Jim Cheshire, Dec 30, 2005
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gary artim

    recordset error/perl messages

    gary artim, Feb 6, 2004, in forum: Perl
    Replies:
    0
    Views:
    606
    gary artim
    Feb 6, 2004
  2. Thomas Connolly

    Validation Summary not showing error messages

    Thomas Connolly, Jul 9, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    830
    Thomas Connolly
    Jul 9, 2003
  3. Gary

    Error messages

    Gary, Aug 13, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    666
    Kevin Spencer
    Aug 13, 2003
  4. Cowboy \(Gregory A. Beamer\)

    Re: Custom Error Messages...

    Cowboy \(Gregory A. Beamer\), Nov 24, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    703
    Cowboy \(Gregory A. Beamer\)
    Nov 25, 2003
  5. C Downey

    Random Error messages

    C Downey, Nov 24, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    423
    C Downey
    Nov 24, 2003
  6. Nick Wright

    Custom Error Messages...

    Nick Wright, Nov 24, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    460
    sirisha P
    Dec 5, 2003
  7. Vinod I

    Sequence of Validator Error Messages

    Vinod I, Jan 27, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    448
    Natty Gur
    Jan 28, 2004
  8. Timbit
    Replies:
    2
    Views:
    590
    Justnew
    Jan 30, 2004
Loading...