Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Object reference not set to an instance of an object. System.Web.UI.WebControls.ListItemCollection.SaveV iewState() System.Web.UI.WebControls.ListControl.SaveViewStat e()

Reply
Thread Tools

Object reference not set to an instance of an object. System.Web.UI.WebControls.ListItemCollection.SaveV iewState() System.Web.UI.WebControls.ListControl.SaveViewStat e()

 
 
Brano
Guest
Posts: n/a
 
      11-07-2005
HI all,

I have a problem i have a web application that was working fine and
this morning when i run it and click on a button that does
Reponse.Redirect to a page i get this error :

Server Error in '/IPFWEb_6' 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.]
System.Web.UI.WebControls.ListItemCollection.SaveV iewState()
System.Web.UI.WebControls.ListControl.SaveViewStat e()
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState)
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState)
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState)
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState)
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState)
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState)
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState)
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState)
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState)
System.Web.UI.Page.ProcessRequestMain()


I have tried to step thru the code but there is nothing wrong with it.
I have even tried to use older version of this application that was
definetly working and i still get the same error. I have reviewed some
posts and one of them said it is cased by the TRACE if it is on but my
trace is OFF. Does anyone have an idea what is this?

Please help,

Thanks BRANO

 
Reply With Quote
 
 
 
 
Alvin Bruney - ASP.NET MVP
Guest
Posts: n/a
 
      11-07-2005
set your debugger to break on all exceptions. that should get the debugger
to attach to the process on the line that caused the exception. You should
be able to follow on from there.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



"Brano" <> wrote in message
news: oups.com...
> HI all,
>
> I have a problem i have a web application that was working fine and
> this morning when i run it and click on a button that does
> Reponse.Redirect to a page i get this error :
>
> Server Error in '/IPFWEb_6' 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.]
> System.Web.UI.WebControls.ListItemCollection.SaveV iewState()
> System.Web.UI.WebControls.ListControl.SaveViewStat e()
> System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
> calcViewState)
> System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
> calcViewState)
> System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
> calcViewState)
> System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
> calcViewState)
> System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
> calcViewState)
> System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
> calcViewState)
> System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
> calcViewState)
> System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
> calcViewState)
> System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
> calcViewState)
> System.Web.UI.Page.ProcessRequestMain()
>
>
> I have tried to step thru the code but there is nothing wrong with it.
> I have even tried to use older version of this application that was
> definetly working and i still get the same error. I have reviewed some
> posts and one of them said it is cased by the TRACE if it is on but my
> trace is OFF. Does anyone have an idea what is this?
>
> Please help,
>
> Thanks BRANO
>



 
Reply With Quote
 
 
 
 
Brano
Guest
Posts: n/a
 
      11-08-2005
Hi Alvin,

That sounds great but i dont know how to set the debuger to break at
all exceptions can you help me? Thanks

 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      11-08-2005
In Visual Studio, look in the Debug menu, at "Exceptions..."

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Complex things are made up of
Lots of simple things.

"Brano" <> wrote in message
news: oups.com...
> Hi Alvin,
>
> That sounds great but i dont know how to set the debuger to break at
> all exceptions can you help me? Thanks
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Object reference not set to an instance of an object" Weird thing happens with reference a link nguyentrongkha@gmail.com ASP .Net 1 09-20-2007 09:46 PM
Error:Object reference not set to an instance of an object. Suresh Kojhani ASP .Net 1 07-29-2004 12:10 PM
Error !Object reference not set to an instance of an object. !!! Help Parthiv Joshi ASP .Net 2 07-02-2004 10:28 AM
Object reference not set to an instance of an object. yysiow ASP .Net 1 07-12-2003 03:30 PM
Object reference not set to an instance of an object. Chris Fink ASP .Net 2 07-03-2003 06:48 PM



Advertisments