Unexplained Instance Error

  • Thread starter Thread starter Marty Cruise
  • Start date Start date
M

Marty Cruise

I am getting the following error: " Object reference not
set to an instance of an object."

The strange thing is that I AM creating a new instance of
the object in the PageLoad event Iin the code behind)
just prior to using it's properties, and in fact, the app
ran perfectly until only recently when I installed
Project Server on the web server, which should have had
no impact.

Is there a security setting or something else that might
compromise instantiating classes? I'm lost.
 
Without looking at your code, there is no way to tell.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Some things just happen.
Everything else occurs.
 
I'm not sure why you're not getting an error on the following line:
Public myOrder As New cOrder

It should read (assuming that the New constructor for cOrder takes no
arguments):

Public myOrder As New cOrder()

See if that doesn't fix it.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Some things just happen.
Everything else occurs.
 
try reading ALL posts to your answer and follow the
recommendations given...
 

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