473,396 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Does viewstate works correctly on VS 2005 web server?

GS
Hello,

I'm receiving The state information is invalid for this page and might be corrupted error message when running code below. This happens on second post back. Why is it happening?
My webpage contains 2 dropdowns controls and I save information entered by user in ViewState variable containing array


ArrayList MyCoordinates = (ArrayList) ViewState ["Coordinates"];
if (MyCoordinates == null)
{
MyCoordinates = new ArrayList ();
}
int[,] myArray = { { int.Parse ( DropX.SelectedValue.ToString ()), int.Parse (DropY.SelectedValue.ToString()) } };
MyCoordinates.Add(myArray);
ViewState.Remove("Coordinates");
ViewState.Add("Coordinates", MyCoordinates);

Feb 3 '06 #1
7 2106
Did you try Googling for the error message ?

http://www.google.com/search?hl=en&l...22&btnG=Search

These are good candidates for an answer :

http://forums.asp.net/1181187/ShowPost.aspx

http://www.issociate.de/board/post/2...de_to_2.0.html

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:eM**************@TK2MSFTNGP09.phx.gbl...
Hello,

I'm receiving The state information is invalid for this page and might be corrupted error message
when running code below. This happens on second post back. Why is it happening?
My webpage contains 2 dropdowns controls and I save information entered by user in ViewState
variable containing array
ArrayList MyCoordinates = (ArrayList) ViewState ["Coordinates"];
if (MyCoordinates == null)
{
MyCoordinates = new ArrayList ();
}
int[,] myArray = { { int.Parse ( DropX.SelectedValue.ToString ()), int.Parse
(DropY.SelectedValue.ToString()) } };
MyCoordinates.Add(myArray);
ViewState.Remove("Coordinates");
ViewState.Add("Coordinates", MyCoordinates);
Feb 3 '06 #2
GS
Thanks. Did not found those only once relevant to MAC address issue.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
Did you try Googling for the error message ?

http://www.google.com/search?hl=en&l...22&btnG=Search

These are good candidates for an answer :

http://forums.asp.net/1181187/ShowPost.aspx

http://www.issociate.de/board/post/2...de_to_2.0.html

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
Hello,

I'm receiving The state information is invalid for this page and might be
corrupted error message when running code below. This happens on second
post back. Why is it happening?
My webpage contains 2 dropdowns controls and I save information entered by
user in ViewState variable containing array
ArrayList MyCoordinates = (ArrayList) ViewState ["Coordinates"];
if (MyCoordinates == null)
{
MyCoordinates = new ArrayList ();
}
int[,] myArray = { { int.Parse ( DropX.SelectedValue.ToString ()),
int.Parse (DropY.SelectedValue.ToString()) } };
MyCoordinates.Add(myArray);
ViewState.Remove("Coordinates");
ViewState.Add("Coordinates", MyCoordinates);

Feb 3 '06 #3
Cool. I hope those messages have the answer for you.

In general, Googling for an *verbatim* error message is a great way to find out
what others have done when they received the same error message.

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
Thanks. Did not found those only once relevant to MAC address issue.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
Did you try Googling for the error message ?

http://www.google.com/search?hl=en&l...22&btnG=Search

These are good candidates for an answer :

http://forums.asp.net/1181187/ShowPost.aspx

http://www.issociate.de/board/post/2...de_to_2.0.html

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:eM**************@TK2MSFTNGP09.phx.gbl...
Hello,

I'm receiving The state information is invalid for this page and might be corrupted error
message when running code below. This happens on second post back. Why is it happening?
My webpage contains 2 dropdowns controls and I save information entered by user in ViewState
variable containing array
ArrayList MyCoordinates = (ArrayList) ViewState ["Coordinates"];
if (MyCoordinates == null)
{
MyCoordinates = new ArrayList ();
}
int[,] myArray = { { int.Parse ( DropX.SelectedValue.ToString ()), int.Parse
(DropY.SelectedValue.ToString()) } };
MyCoordinates.Add(myArray);
ViewState.Remove("Coordinates");
ViewState.Add("Coordinates", MyCoordinates);


Feb 3 '06 #4
GS
Well, suggestions did no really fix the problem. Even after disabling EventValidation still getting the same issue.


Server Error in '/ImageRoll' Application.
--------------------------------------------------------------------------------

The state information is invalid for this page and might be corrupted.
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.Web.HttpException: The state information is invalid for this page and might be corrupted.

Source Error:

[No relevant source lines]

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\imageroll\4129d9e3\c49c091d\App_Web_yoejhrso .2.cs Line: 0

Stack Trace:

[EndOfStreamException: Unable to read beyond the end of the stream.]
System.IO.__Error.EndOfFile() +54
System.IO.BinaryReader.ReadByte() +2761294
System.Web.UI.ObjectStateFormatter.DeserializeValu e(SerializerBinaryReader reader) +138
System.Web.UI.ObjectStateFormatter.DeserializeValu e(SerializerBinaryReader reader) +358
System.Web.UI.ObjectStateFormatter.Deserialize(Str eam inputStream) +223

[ArgumentException: The serialized data is invalid.]
System.Web.UI.ObjectStateFormatter.Deserialize(Str eam inputStream) +309
System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString) +394
System.Web.UI.ObjectStateFormatter.System.Web.UI.I StateFormatter.Deserialize(String serializedState) +30
System.Web.UI.Util.DeserializeWithAssert(IStateFor matter formatter, String serializedState) +52
System.Web.UI.HiddenFieldPageStatePersister.Load() +155

[ViewStateException: Invalid viewstate.
Client IP: 127.0.0.1
Port:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
ViewState: /wEPDwUKLTI2NDA4NzkwMg8WAh4LQ29vcmRpbmF0ZXMWARYCAgM PZBYCAgcPDxYCHghJbWFnZVVybAUhfmdldF9pbWFnZS5hc3B4P 2Nvb3JkPTEsMXwyLDR8My41ZGRkOZ8nJEKfRUq0FeQurBWLsEI nGlE=
Referer: http://localhost:3521/ImageRoll/Default.aspx
Path: /ImageRoll/Default.aspx]

[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError(Except ion inner, String persistedState, String errorPageMessage, Boolean macValidationError) +171
System.Web.UI.ViewStateException.ThrowViewStateErr or(Exception inner, String persistedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +269
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +137
System.Web.UI.Page.LoadAllState() +102
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5914
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +188
System.Web.UI.Page.ProcessRequest() +112
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +37
System.Web.UI.Page.ProcessRequest(HttpContext context) +135
ASP.default_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\imageroll\4129d9e3\c49c091d\App_Web_yoejhrso .2.cs:0
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +401
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +117

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
"Juan T. Llibre" <no***********@nowhere.com> wrote in message news:%2******************@TK2MSFTNGP12.phx.gbl...
Cool. I hope those messages have the answer for you.

In general, Googling for an *verbatim* error message is a great way to find out
what others have done when they received the same error message.



Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
Thanks. Did not found those only once relevant to MAC address issue.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
Did you try Googling for the error message ?

http://www.google.com/search?hl=en&l...22&btnG=Search

These are good candidates for an answer :

http://forums.asp.net/1181187/ShowPost.aspx

http://www.issociate.de/board/post/2...de_to_2.0.html

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:eM**************@TK2MSFTNGP09.phx.gbl...
Hello,

I'm receiving The state information is invalid for this page and might be corrupted error
message when running code below. This happens on second post back. Why is it happening?
My webpage contains 2 dropdowns controls and I save information entered by user in ViewState
variable containing array
ArrayList MyCoordinates = (ArrayList) ViewState ["Coordinates"];
if (MyCoordinates == null)
{
MyCoordinates = new ArrayList ();
}
int[,] myArray = { { int.Parse ( DropX.SelectedValue.ToString ()), int.Parse
(DropY.SelectedValue.ToString()) } };
MyCoordinates.Add(myArray);
ViewState.Remove("Coordinates");
ViewState.Add("Coordinates", MyCoordinates);




Feb 3 '06 #5
OK, let's go to plan "B"... ;-)

Are you trying to retrieve a value from ViewState ?

If so, is there an alternate method you could use to persist that value ?
( Instead of using ViewState...so you'd have a workaround. )

Can you post part of the offending code ?
(The part where you retrieve the Viewstate value...)


Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl...
Well, suggestions did no really fix the problem. Even after disabling EventValidation still getting
the same issue.

Server Error in '/ImageRoll' Application.
--------------------------------------------------------------------------------

The state information is invalid for this page and might be corrupted.
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.Web.HttpException: The state information is invalid for this page and
might be corrupted.

Source Error:
[No relevant source lines]

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files
\imageroll\4129d9e3\c49c091d\App_Web_yoejhrso.2.cs Line: 0
[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError(Except ion inner, String persistedState, String
errorPageMessage, Boolean macValidationError) +171
System.Web.UI.ViewStateException.ThrowViewStateErr or(Exception inner, String persistedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +269
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +137
System.Web.UI.Page.LoadAllState() +102
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +5914
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +188
System.Web.UI.Page.ProcessRequest() +112
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +37
System.Web.UI.Page.ProcessRequest(HttpContext context) +135
ASP.default_aspx.ProcessRequest(HttpContext context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\imageroll\4129d9e3\c49c091d\App_Web_yoejhrso .2.cs:0
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +401
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +117

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Cool. I hope those messages have the answer for you.

In general, Googling for an *verbatim* error message is a great way to find out
what others have done when they received the same error message.

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
Thanks. Did not found those only once relevant to MAC address issue.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
Did you try Googling for the error message ?

http://www.google.com/search?hl=en&l...22&btnG=Search

These are good candidates for an answer :

http://forums.asp.net/1181187/ShowPost.aspx

http://www.issociate.de/board/post/2...de_to_2.0.html

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:eM**************@TK2MSFTNGP09.phx.gbl...
Hello,

I'm receiving The state information is invalid for this page and might be corrupted error
message when running code below. This happens on second post back. Why is it happening?
My webpage contains 2 dropdowns controls and I save information entered by user in ViewState
variable containing array
ArrayList MyCoordinates = (ArrayList) ViewState ["Coordinates"];
if (MyCoordinates == null)
{
MyCoordinates = new ArrayList ();
}
int[,] myArray = { { int.Parse ( DropX.SelectedValue.ToString ()), int.Parse
(DropY.SelectedValue.ToString()) } };
MyCoordinates.Add(myArray);
ViewState.Remove("Coordinates");
ViewState.Add("Coordinates", MyCoordinates);



Feb 3 '06 #6
GS
Here is offending method. This is being run when button is pressed. It works first time but not second time. I can store data somewhere else but I'd rather troubleshoot and do it as designed.

ArrayList MyCoordinates = (ArrayList) ViewState ["Coordinates"];
if (MyCoordinates == null)
{
MyCoordinates = new ArrayList ();
}
int[,] myArray = { { int.Parse ( DropX.SelectedValue.ToString ()), int.Parse (DropY.SelectedValue.ToString()) } };
MyCoordinates.Add(myArray);
ViewState.Remove("Coordinates");
ViewState.Add("Coordinates", MyCoordinates);

"Juan T. Llibre" <no***********@nowhere.com> wrote in message news:ex**************@TK2MSFTNGP14.phx.gbl...
OK, let's go to plan "B"... ;-)

Are you trying to retrieve a value from ViewState ?

If so, is there an alternate method you could use to persist that value ?
( Instead of using ViewState...so you'd have a workaround. )

Can you post part of the offending code ?
(The part where you retrieve the Viewstate value...)




Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl...
Well, suggestions did no really fix the problem. Even after disabling EventValidation still getting
the same issue.

Server Error in '/ImageRoll' Application.
--------------------------------------------------------------------------------

The state information is invalid for this page and might be corrupted.
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.Web.HttpException: The state information is invalid for this page and
might be corrupted.

Source Error:
[No relevant source lines]

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files
\imageroll\4129d9e3\c49c091d\App_Web_yoejhrso.2.cs Line: 0


[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError(Except ion inner, String persistedState, String
errorPageMessage, Boolean macValidationError) +171
System.Web.UI.ViewStateException.ThrowViewStateErr or(Exception inner, String persistedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +269
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +137
System.Web.UI.Page.LoadAllState() +102
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +5914
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +188
System.Web.UI.Page.ProcessRequest() +112
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +37
System.Web.UI.Page.ProcessRequest(HttpContext context) +135
ASP.default_aspx.ProcessRequest(HttpContext context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\imageroll\4129d9e3\c49c091d\App_Web_yoejhrso .2.cs:0
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +401
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +117

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42


"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Cool. I hope those messages have the answer for you.

In general, Googling for an *verbatim* error message is a great way to find out
what others have done when they received the same error message.

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
Thanks. Did not found those only once relevant to MAC address issue.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
Did you try Googling for the error message ?

http://www.google.com/search?hl=en&l...22&btnG=Search

These are good candidates for an answer :

http://forums.asp.net/1181187/ShowPost.aspx

http://www.issociate.de/board/post/2...de_to_2.0.html

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:eM**************@TK2MSFTNGP09.phx.gbl...
Hello,

I'm receiving The state information is invalid for this page and might be corrupted error
message when running code below. This happens on second post back. Why is it happening?
My webpage contains 2 dropdowns controls and I save information entered by user in ViewState
variable containing array
ArrayList MyCoordinates = (ArrayList) ViewState ["Coordinates"];
if (MyCoordinates == null)
{
MyCoordinates = new ArrayList ();
}
int[,] myArray = { { int.Parse ( DropX.SelectedValue.ToString ()), int.Parse
(DropY.SelectedValue.ToString()) } };
MyCoordinates.Add(myArray);
ViewState.Remove("Coordinates");
ViewState.Add("Coordinates", MyCoordinates);




Feb 3 '06 #7
Do you have an "else" clause after that "if" clause ?

That would explain why it works the first time ( when MyCoordinates == null )
but doesn't work the second time ( when MyCoordinates !null ).

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:uu**************@TK2MSFTNGP11.phx.gbl...
Here is offending method. This is being run when button is pressed.
It works first time but not second time.

I can store data somewhere else but I'd rather troubleshoot and do it as designed.

ArrayList MyCoordinates = (ArrayList) ViewState ["Coordinates"];
if (MyCoordinates == null)
{
MyCoordinates = new ArrayList ();
}
int[,] myArray = { { int.Parse ( DropX.SelectedValue.ToString ()), int.Parse
(DropY.SelectedValue.ToString()) } };
MyCoordinates.Add(myArray);
ViewState.Remove("Coordinates");
ViewState.Add("Coordinates", MyCoordinates);

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ex**************@TK2MSFTNGP14.phx.gbl...
OK, let's go to plan "B"... ;-)

Are you trying to retrieve a value from ViewState ?

If so, is there an alternate method you could use to persist that value ?
( Instead of using ViewState...so you'd have a workaround. )

Can you post part of the offending code ?
(The part where you retrieve the Viewstate value...)


Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl...
Well, suggestions did no really fix the problem. Even after disabling EventValidation still
getting
the same issue.

Server Error in '/ImageRoll' Application.
--------------------------------------------------------------------------------

The state information is invalid for this page and might be corrupted.
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.Web.HttpException: The state information is invalid for this page and
might be corrupted.

Source Error:
[No relevant source lines]

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files
\imageroll\4129d9e3\c49c091d\App_Web_yoejhrso.2.cs Line: 0
[HttpException (0x80004005): The state information is invalid for this page and might be
corrupted.]
System.Web.UI.ViewStateException.ThrowError(Except ion inner, String persistedState, String
errorPageMessage, Boolean macValidationError) +171
System.Web.UI.ViewStateException.ThrowViewStateErr or(Exception inner, String persistedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +269
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +137
System.Web.UI.Page.LoadAllState() +102
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +5914
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +188
System.Web.UI.Page.ProcessRequest() +112
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +37
System.Web.UI.Page.ProcessRequest(HttpContext context) +135
ASP.default_aspx.ProcessRequest(HttpContext context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\imageroll\4129d9e3\c49c091d\App_Web_yoejhrso .2.cs:0
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +401
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)
+117

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Cool. I hope those messages have the answer for you.

In general, Googling for an *verbatim* error message is a great way to find out
what others have done when they received the same error message.

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
Thanks. Did not found those only once relevant to MAC address issue.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
Did you try Googling for the error message ?

http://www.google.com/search?hl=en&l...22&btnG=Search

These are good candidates for an answer :

http://forums.asp.net/1181187/ShowPost.aspx

http://www.issociate.de/board/post/2...de_to_2.0.html

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"GS" <no****@nowhere.com> wrote in message news:eM**************@TK2MSFTNGP09.phx.gbl...
Hello,

I'm receiving The state information is invalid for this page and might be corrupted error
message when running code below. This happens on second post back. Why is it happening?
My webpage contains 2 dropdowns controls and I save information entered by user in ViewState
variable containing array
ArrayList MyCoordinates = (ArrayList) ViewState ["Coordinates"];
if (MyCoordinates == null)
{
MyCoordinates = new ArrayList ();
}
int[,] myArray = { { int.Parse ( DropX.SelectedValue.ToString ()), int.Parse
(DropY.SelectedValue.ToString()) } };
MyCoordinates.Add(myArray);
ViewState.Remove("Coordinates");
ViewState.Add("Coordinates", MyCoordinates);



Feb 3 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Harry | last post by:
Hello, I have a Repeater control that contains a Label control inside its ItemTemplate. A dummy mockup of the HTML code looks as follows: <asp:repeater id="StyleRepeater" Runat="server">...
3
by: Naeem Sarfraz | last post by:
See below for example code. My problem is that when the drop down list posts back the event handler for the check box also executed. I have no idea why this happens? The only odd thing I can...
10
by: Mr Newbie | last post by:
DropDown lists and Listboxes do not appear in the list of controls and values passed back to the server on PostBack in Request.Form object. Can someone confirm this to be correct and possibly...
6
by: hlubocky | last post by:
I thought I had a good grasp of the problem related to dynamically creating controls, but it appears that as my application grew in complexity, the problem has resurfaced. As I understand it, in...
3
by: Adrian Parker | last post by:
v1.1 and v2.0 We have a problem with viewstate not being stored. What's happening is that we create controls in CreateChildControls and add them to a container on the page (whether it be a...
0
by: Zark3 | last post by:
Hi all, In a web form I use a for loop to dynamically add TextBox'es to a page (one for each item in an input file). I can get the input values and I can display them in Label's and TextBox'es....
1
by: RSH | last post by:
Hi, I am experimenting with the Viewstate and based on a few articles I have read, I put together a test. it is a simple test where I am dynamically creating a DropDownList that contains 25000...
1
by: Carly | last post by:
Hi, I guess is a simple question. I have a very simple page that has a text box and a button (server control) on a WEB page in VS 2005. When the button is clicked it needs to write (via...
9
by: =?Utf-8?B?TUNN?= | last post by:
I'm sure the answer to my question varies depending on the situation, but I am looking for a general "best practice". If I have an asp.net application and I load certain data from a database,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.