Error Messages

  • Thread starter Thread starter Aziz
  • Start date Start date
A

Aziz

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
 
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 said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top