Unhandeled Exception Error

Discussion in 'ASP.NET / ASP.NET Core' started by spire, Mar 6, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    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?

    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">
     
  3. I checked out the line number and the statement on that line number is:
    txtUserName.Visible = False
    txtUserName is a textbox
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    Check your .aspx page and make sure that your have that textbox.

    i think you may have mis named it.


    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">
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page