Link to home
Start Free TrialLog in
Avatar of juststeve
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.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.]
   compliance4.loginGW.Page_Load(Object sender, EventArgs e)
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +750
Avatar of apb2
apb2
Flag of United Kingdom of Great Britain and Northern Ireland image

Do this happen when you load the page, or after an event is fired.

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
ASKER CERTIFIED SOLUTION
Avatar of adathelad
adathelad
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of noshi316
noshi316

may be some where in code you didnt initialize any variables.....
this error commes
check your code...