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.v b:257
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) +58
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
-----------------------
--
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573Since 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.v b:257
> System.Web.UI.WebControls.Button.OnClick(EventArgs e)
+108
>System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEv
entHandler.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
>
>------------------
------
>--
>Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET
>Version:1.1.4322.573
>
>.
0 comments:
Post a Comment