Object reference not set to an instance of an object. HHHEEELLLPPP.

D

Dave

Hello
I hope someone can give me some idea of what is causing this error. I can
run though my asp app locally no problem but when i put it on the server i
get this error, any help at all whould be greatly appreciated. thanks in
advance.





Server Error in '/ISOComplaints' Application.
----------------------------------------------------------------------------
----

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.]
ISOComplaints.CARSubmitForm.btnSubmit_Click(Object sender, EventArgs e)
in C:\comersus4295\ISOComplaints\CarSubmitForm.aspx.vb:257
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(String eventArgument) +58
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
 
S

Sam V.

Since I don't have an example of the code to review, it
would seem that you have forgotten to instantiate the
object or interface someplace before you are calling the
method or property of the object. This is a very common
occurrence in ASP.Net applications. Just make sure that
the object/class that you are utilizing has been
instantiated with the New Operator somewhere earlier in
your code. Of course, if the object you are working with
is an interface, you will not be able to use the New
operator and somehow access the interface through another
set of objects.
-----Original Message-----
Hello
I hope someone can give me some idea of what is causing this error. I can
run though my asp app locally no problem but when i put it on the server i
get this error, any help at all whould be greatly appreciated. thanks in
advance.





Server Error in '/ISOComplaints' Application.
---------------------------------------------------------- ------------------
----

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.]
ISOComplaints.CARSubmitForm.btnSubmit_Click(Object sender, EventArgs e)
in C:\comersus4295\ISOComplaints\CarSubmitForm.aspx.vb:257
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEv
entHandler.RaisePo
stBackEvent(String eventArgument) +58
System.Web.UI.Page.RaisePostBackEvent (IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent
(NameValueCollection postData) +33
 

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