[Mono-bugs] [Bug 82816][Blo] New - DropDownList causes an exception when loading viewstate

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Sep 12 07:16:32 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by g.tardini at caleidoscopio.it.

http://bugzilla.ximian.com/show_bug.cgi?id=82816

--- shadow/82816	2007-09-12 07:16:32.000000000 -0400
+++ shadow/82816.tmp.20151	2007-09-12 07:16:32.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 82816
+Product: Mono: Class Libraries
+Version: unspecified
+OS: SUSE 9.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Blocker
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com                            
+ReportedBy: g.tardini at caleidoscopio.it               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DropDownList causes an exception when loading viewstate
+
+A DropDownList filled programmatically causes an exception at the second
+postback. 
+
+Steps to reproduce the problem:
+Run the attached example.
+In this simple page there is a DropDownList that is filled (with
+Items.Add()) on the first page load, and a button to do the postback.
+
+Press the button once and nothing should happen.
+Press the button another time and an exception should be fired
+
+Actual Results:
+System.ArgumentOutOfRangeException: Index is less than 0 or more than or
+equal to the list count.
+Parameter name: index
+0
+  at System.Collections.ArrayList.get_Item (Int32 index) [0x00000] 
+  at System.Web.UI.WebControls.ListItemCollection.get_Item (Int32 index)
+[0x00000] 
+  at System.Web.UI.WebControls.ListControl.LoadViewState (System.Object
+savedState) [0x00000] 
+  at System.Web.UI.Control.LoadViewStateRecursive (System.Object
+savedState) [0x00000] 
+  at System.Web.UI.Control.LoadViewStateRecursive (System.Object
+savedState) [0x00000] 
+  at System.Web.UI.Control.LoadViewStateRecursive (System.Object
+savedState) [0x00000] 
+  at System.Web.UI.Page.LoadPageViewState () [0x00000] 
+  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
+  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
+[0x00000] 
+
+Expected Results:
+No exceptions should be fired when pressing the button, and the
+DropDownList should remain unchanged
+
+How often does this happen? 
+Always in version 1.2.5.
+Never in 1.2.4


More information about the mono-bugs mailing list