G
Guest
Hi peeps,
I'm suddenly getting a very strange error on one of my websites. It seems to
be crashing within SaveViewState (?) but I can't tell if that the case, or if
there is something else going on.
The error occurs when I load a certain page with 2 lists, one shows a
collection of contacts, and the other looks at which of those contacts are
tied to a project. On load, I load the contacts list, and then loop through
the project contacts and copy the data from the other list. All contacts in
the project are still in the contacts list, so thats ok, but why am I getting
a viewstate crash?!
Here's the error...
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.SaveViewState() +102
System.Web.UI.WebControls.ListItemCollection.System.Web.UI.IStateManager.SaveViewState() +4
System.Web.UI.HtmlControls.HtmlSelect.SaveViewState() +39
System.Web.UI.Control.SaveViewStateRecursive() +59
System.Web.UI.Control.SaveViewStateRecursive() +160
System.Web.UI.Control.SaveViewStateRecursive() +160
System.Web.UI.Page.SaveAllState() +466
System
What's going on!?
Thanks,
Dan
I'm suddenly getting a very strange error on one of my websites. It seems to
be crashing within SaveViewState (?) but I can't tell if that the case, or if
there is something else going on.
The error occurs when I load a certain page with 2 lists, one shows a
collection of contacts, and the other looks at which of those contacts are
tied to a project. On load, I load the contacts list, and then loop through
the project contacts and copy the data from the other list. All contacts in
the project are still in the contacts list, so thats ok, but why am I getting
a viewstate crash?!
Here's the error...
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.SaveViewState() +102
System.Web.UI.WebControls.ListItemCollection.System.Web.UI.IStateManager.SaveViewState() +4
System.Web.UI.HtmlControls.HtmlSelect.SaveViewState() +39
System.Web.UI.Control.SaveViewStateRecursive() +59
System.Web.UI.Control.SaveViewStateRecursive() +160
System.Web.UI.Control.SaveViewStateRecursive() +160
System.Web.UI.Page.SaveAllState() +466
System
What's going on!?
Thanks,
Dan