Last post Sep 06, 2011 01:40 PM by vmillasp
Aug 31, 2011 02:34 PM|boff102|LINK
Every now and again I get this error from my web site. I've checked the page load event and there is not much to it. All the page load does is get an object out of the Application level
variables and iterate it. Of course before the iteration begins I check to make sure the object is not Nothing. When this happens every request to the web site returns this error. I'm not sure why the GetEnumerator call on the collection all the sudden fails.
Like I said before I iterate the collection I make sure that it is not Nothing.
Object reference not set to an instance of an object.
at Microsoft.VisualBasic.Collection.GetEnumerator() at Unauthenticated.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Sep 01, 2011 05:10 AM|ignatandrei|LINK
what's the code?
Sep 05, 2011 02:00 AM|Mamba Dai - MSFT|LINK
“Object reference not set to an instance of an object” means the code is trying to access a member of a reference type variable which is set to null To troubleshoot this issue, you need to get the error code snippet by debugging application and modify it.
Any question please revert back to me, I’ll try my best to help you!
Sep 06, 2011 01:40 PM|vmillasp|LINK
find the object that triger this error, and apply this code
IF myobject IsNOT NOTHING THEN
' put your code here
` do special code here