VB.net errors---Object reference not set to an instance of a

P

psvgreddy

I am new to vb.net. Can you help me with this error. This error occurs
when I click on a Button.

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not
set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an
object.]
AddLoginUser.MainForm.Button1_Click(Object sender, EventArgs e) in
\\ttgevweb01\wwwroot$\AddLoginUser\MainForm.aspx.vb:85
System.Web.UI.WebControls.Button.OnClick(EventArgs e)

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData)
System.Web.UI.Page.ProcessRequestMain()
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed)-spam.invalid (psvgreddy) scripsit:
I am new to vb.net. Can you help me with this error. This error occurs
when I click on a Button.

Please post the code you placed inside the event handler.
 
B

Brian Henry

sounds like you may be missing a new statement somewhere


psvgreddy said:
I am new to vb.net. Can you help me with this error. This error occurs
when I click on a Button.

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not
set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an
object.]
AddLoginUser.MainForm.Button1_Click(Object sender, EventArgs e) in
\\ttgevweb01\wwwroot$\AddLoginUser\MainForm.aspx.vb:85
System.Web.UI.WebControls.Button.OnClick(EventArgs e)

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData)
System.Web.UI.Page.ProcessRequestMain()



----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
 

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

Top