juststeve
asked on
System.NullReferenceException: Object reference not set to an instance of an object.
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.
I have an app that usually works but sometimes tosses this error. I _think i have it narrowed down to the first page hit after an IIS restart...since this is on a production server I can't try again until tonight.
Can anyone read / interprete the error output to shed any light on what's going wrong.
Exception Details: System.NullReferenceExcept ion: 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.]
compliance4.loginGW.Page_L oad(Object sender, EventArgs e)
System.Web.UI.Control.OnLo ad(EventAr gs e) +67
System.Web.UI.Control.Load Recursive( ) +35
System.Web.UI.Page.Process RequestMai n() +750
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.
I have an app that usually works but sometimes tosses this error. I _think i have it narrowed down to the first page hit after an IIS restart...since this is on a production server I can't try again until tonight.
Can anyone read / interprete the error output to shed any light on what's going wrong.
Exception Details: System.NullReferenceExcept
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.]
compliance4.loginGW.Page_L
System.Web.UI.Control.OnLo
System.Web.UI.Control.Load
System.Web.UI.Page.Process
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
may be some where in code you didnt initialize any variables.....
this error commes
check your code...
this error commes
check your code...
Could be a few things. I would start with the your controls. Are you referencing a control in you behind code that isn't on your page, Check the spelling of the controls ID field corresponds with your behind code controls as well.
have fun.
apb2