PDA

View Full Version : Unhandeled Exception Error


spire
03-06-2003, 02:10 AM
I am new to vb.net. I have programmed in c++ for years but I am stuck on an issue. when I a page I recieve the error: Object reference not set to an instance of an object. To see the error www.espiredreams.net/login.aspx.
I cannot figure out where the exception is becaue I cannot debug. I have reviewed the code several times but saw no incosistancies to my origanol compiled on my system. Any suggestions as to where to start.

bruce
03-06-2003, 10:40 AM
This error usually means something is referencing a invalid item. For example, if you try to access an array item that doesn't exist.

I don't know if you notice, but the error screen actually tell you the line number that caused the error.

C:\Documents and Settings\Administrator\VSWebCache\www.espiredreams .net\login.aspx.vb:37

And does the same application run fine on your local computer?

[b]quote:Originally posted by spire

I am new to vb.net. I have programmed in c++ for years but I am stuck on an issue. when I a page I recieve the error: Object reference not set to an instance of an object. To see the error www.espiredreams.net/login.aspx.
I cannot figure out where the exception is becaue I cannot debug. I have reviewed the code several times but saw no incosistancies to my origanol compiled on my system. Any suggestions as to where to start.
</blockquote id="quote"></font id="quote">

spire
03-06-2003, 11:01 AM
I checked out the line number and the statement on that line number is:
txtUserName.Visible = False
txtUserName is a textbox

bruce
03-06-2003, 11:15 AM
Check your .aspx page and make sure that your have that textbox.

i think you may have mis named it.


[b]quote:Originally posted by spire

I checked out the line number and the statement on that line number is:
txtUserName.Visible = False
txtUserName is a textbox

</blockquote id="quote"></font id="quote">