[Mono-dev] ask for backport on mono 1.2.5 branch
In the actual release, a simple ASP.NET with a ListBox Control don't work, viewstate deserialization problem... This problem as been fixed in the trunk by : 2007-08-30 Igor Zelmanovich <[EMAIL PROTECTED]> * ListControl.cs: fixed selected items state management. Could this be backported to the mono 1.2.5 branch? Here's a test case for this problem : Default.aspx: <%@ Page Language="C#" Inherits="TestViewState.Default" %> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> Default Default.aspx.cs : // Default.aspx.cs created with MonoDevelop // User: hubert at 15:02 31/08/2007 // // To change standard headers go to Edit->Preferences->Coding->Standard Headers // using System; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; namespace TestViewState { public class Default : Page { protected ListBox drpSociete; protected override void OnLoad(EventArgs e) { if (!IsPostBack){ drpSociete.Items.Add("bouh"); drpSociete.Items.Add("bah"); } } } } Click two times on the button and you'll obtain : Server Error in '/' Application Index is less than 0 or more than or equal to the list count. Parameter name: index 0 Description: Error processing request. Error Message: HTTP 500. System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count. Parameter name: index 0 Stack Trace: 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) [0x0] at System.Web.UI.WebControls.ListItemCollection.get_Item (Int32 index) [0x0] at System.Web.UI.WebControls.ListControl.LoadViewState (System.Object savedState) [0x0] at System.Web.UI.Control.LoadViewStateRecursive (System.Object savedState) [0x0] at System.Web.UI.Control.LoadViewStateRecursive (System.Object savedState) [0x0] at System.Web.UI.Control.LoadViewStateRecursive (System.Object savedState) [0x0] at System.Web.UI.Page.LoadPageViewState () [0x0] at System.Web.UI.Page.InternalProcessRequest () [0x0] at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x0] Thanks in advance! ___ Ce message et les éventuels documents joints peuvent contenir des informations confidentielles. Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou publication, totale ou partielle et quel qu'en soit le moyen est formellement interdite. Les communications sur internet n'étant pas sécurisées, l'intégrité de ce message n'est pas assurée et la société émettrice ne peut être tenue pour responsable de son contenu. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] ask for backport on mono 1.2.5 branch
Hi, Hubert FONGARNAND wrote: > In the actual release, a simple ASP.NET with a ListBox Control don't > work, viewstate deserialization problem... > > This problem as been fixed in the trunk by : > > 2007-08-30 Igor Zelmanovich <[EMAIL PROTECTED]> > > * ListControl.cs: fixed selected items state management. It's r85048: http://lists.ximian.com/pipermail/mono-patches/2007-August/099919.html Robert > > Could this be backported to the mono 1.2.5 branch? > > > Here's a test case for this problem : > > Default.aspx: > <%@ Page Language="C#" Inherits="TestViewState.Default" %> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > Default > > > > >CssClass="TextBox200" > Width="200px" Visible="True" > Rows="1"> > > > > > > Default.aspx.cs : > // Default.aspx.cs created with MonoDevelop > // User: hubert at 15:02 31/08/2007 > // > // To change standard headers go to Edit->Preferences->Coding->Standard > Headers > // > > using System; > using System.Web; > using System.Web.UI; > using System.Web.UI.WebControls; > using System.Data; > > namespace TestViewState > { > > > public class Default : Page > { > protected ListBox drpSociete; > > > protected override void OnLoad(EventArgs e) > { > if (!IsPostBack){ > drpSociete.Items.Add("bouh"); > drpSociete.Items.Add("bah"); > } > } > > > } > } > > > Click two times on the button and you'll obtain : > Server Error in '/' Application > > > > Index is less than 0 or more than or equal to the list count. Parameter > name: index 0 > > Description: Error processing request. > > Error Message: HTTP 500. System.ArgumentOutOfRangeException: Index is > less than 0 or more than or equal to the list count. Parameter name: > index 0 > > Stack Trace: > > 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) [0x0] > at System.Web.UI.WebControls.ListItemCollection.get_Item (Int32 index) > [0x0] > at System.Web.UI.WebControls.ListControl.LoadViewState (System.Object > savedState) [0x0] > at System.Web.UI.Control.LoadViewStateRecursive (System.Object savedState) > [0x0] > at System.Web.UI.Control.LoadViewStateRecursive (System.Object savedState) > [0x0] > at System.Web.UI.Control.LoadViewStateRecursive (System.Object savedState) > [0x0] > at System.Web.UI.Page.LoadPageViewState () [0x0] > at System.Web.UI.Page.InternalProcessRequest () [0x0] > at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) > [0x0] > > > Thanks in advance! > > ___ > Ce message et les éventuels documents joints peuvent contenir des > informations confidentielles. > Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir > le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce > message non conforme à sa destination, toute diffusion ou publication, totale > ou partielle et quel qu'en soit le moyen est formellement interdite. > Les communications sur internet n'étant pas sécurisées, l'intégrité de ce > message n'est pas assurée et la société émettrice ne peut être tenue pour > responsable de son contenu. > > > > > > ___ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] ask for backport on mono 1.2.5 branch
Hello, > In the actual release, a simple ASP.NET with a ListBox Control don't > work, viewstate deserialization problem... sigh.We made tons of preview releases to get people a chance to check stuff against 1.2.5. We have been doing them for more than a month now. Our largest release cycle. Miguel. > This problem as been fixed in the trunk by : > > 2007-08-30 Igor Zelmanovich <[EMAIL PROTECTED]> > > * ListControl.cs: fixed selected items state management. > > Could this be backported to the mono 1.2.5 branch? > > > Here's a test case for this problem : > > Default.aspx: > <%@ Page Language="C#" Inherits="TestViewState.Default" %> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > Default > > > > > Width="200px" Visible="True" > Rows="1"> > > > > > > Default.aspx.cs : > // Default.aspx.cs created with MonoDevelop > // User: hubert at 15:02 31/08/2007 > // > // To change standard headers go to > Edit->Preferences->Coding->Standard Headers > // > > using System; > using System.Web; > using System.Web.UI; > using System.Web.UI.WebControls; > using System.Data; > > namespace TestViewState > { > > > public class Default : Page > { > protected ListBox drpSociete; > > > protected override void OnLoad(EventArgs e) > { > if (!IsPostBack){ > drpSociete.Items.Add("bouh"); > drpSociete.Items.Add("bah"); > } > } > > > } > } > > > Click two times on the button and you'll obtain : > Server Error in '/' Application > > __ > Index is less than 0 or more than or equal to the list count. > Parameter name: index 0 > Description: Error processing request. > > Error Message: HTTP 500. System.ArgumentOutOfRangeException: Index is > less than 0 or more than or equal to the list count. Parameter name: > index 0 > > Stack Trace: > > 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) [0x0] > at System.Web.UI.WebControls.ListItemCollection.get_Item (Int32 index) > [0x0] > at System.Web.UI.WebControls.ListControl.LoadViewState (System.Object > savedState) [0x0] > at System.Web.UI.Control.LoadViewStateRecursive (System.Object savedState) > [0x0] > at System.Web.UI.Control.LoadViewStateRecursive (System.Object savedState) > [0x0] > at System.Web.UI.Control.LoadViewStateRecursive (System.Object savedState) > [0x0] > at System.Web.UI.Page.LoadPageViewState () [0x0] > at System.Web.UI.Page.InternalProcessRequest () [0x0] > at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) > [0x0] > > > Thanks in advance! > > ___ > Ce message et les ventuels documents joints peuvent contenir des > informations confidentielles. > Au cas o il ne vous serait pas destin, nous vous remercions de bien > vouloir le supprimer et en aviser immdiatement l'expditeur. Toute > utilisation de ce message non conforme sa destination, toute diffusion > ou publication, totale ou partielle et quel qu'en soit le moyen est > formellement interdite. > Les communications sur internet n'tant pas scurises, l'intgrit de ce > message n'est pas assure et la socit mettrice ne peut tre tenue pour > responsable de son contenu. > ___ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] ask for backport on mono 1.2.5 branch
Le vendredi 31 août 2007 à 17:00 +0200, Miguel de Icaza a écrit : > Hello, > > > In the actual release, a simple ASP.NET with a ListBox Control > don't > > work, viewstate deserialization problem... > > sigh.We made tons of preview releases to get people a chance to > check stuff against 1.2.5. > > We have been doing them for more than a month now. Our largest > release > cycle. > > Miguel. Hello I understand, but most of our team was on holydays during this period... (i think you should not choose holydays period for testing period...) Thanks for the backport, i promise that i'll check preview release next time! Hubert > > > This problem as been fixed in the trunk by : > > > > 2007-08-30 Igor Zelmanovich <[EMAIL PROTECTED]> > > > > * ListControl.cs: fixed selected items state management. > > > > Could this be backported to the mono 1.2.5 branch? > > > > > > Here's a test case for this problem : > > > > Default.aspx: > > <%@ Page Language="C#" Inherits="TestViewState.Default" %> > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > > > > Default > > > > > > > > > > > Width="200px" Visible="True" > > Rows="1"> > > > > > > > > > > > > Default.aspx.cs : > > // Default.aspx.cs created with MonoDevelop > > // User: hubert at 15:02 31/08/2007 > > // > > // To change standard headers go to > > Edit->Preferences->Coding->Standard Headers > > // > > > > using System; > > using System.Web; > > using System.Web.UI; > > using System.Web.UI.WebControls; > > using System.Data; > > > > namespace TestViewState > > { > > > > > > public class Default : Page > > { > > protected ListBox drpSociete; > > > > > > protected override void OnLoad(EventArgs e) > > { > > if (!IsPostBack){ > > drpSociete.Items.Add("bouh"); > > drpSociete.Items.Add("bah"); > > } > > } > > > > > > } > > } > > > > > > Click two times on the button and you'll obtain : > > Server Error in '/' Application > > > > > __ > > Index is less than 0 or more than or equal to the list count. > > Parameter name: index 0 > > Description: Error processing request. > > > > Error Message: HTTP 500. System.ArgumentOutOfRangeException: Index > is > > less than 0 or more than or equal to the list count. Parameter > name: > > index 0 > > > > Stack Trace: > > > > 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) [0x0] > > at System.Web.UI.WebControls.ListItemCollection.get_Item (Int32 > index) [0x0] > > at System.Web.UI.WebControls.ListControl.LoadViewState > (System.Object savedState) [0x0] > > at System.Web.UI.Control.LoadViewStateRecursive (System.Object > savedState) [0x0] > > at System.Web.UI.Control.LoadViewStateRecursive (System.Object > savedState) [0x0] > > at System.Web.UI.Control.LoadViewStateRecursive (System.Object > savedState) [0x0] > > at System.Web.UI.Page.LoadPageViewState () [0x0] > > at System.Web.UI.Page.InternalProcessRequest () [0x0] > > at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext > context) [0x0] > > > > > > Thanks in advance! > > > > ___ > > Ce message et les ventuels documents joints peuvent contenir des > > informations confidentielles. > > Au cas o il ne vous serait pas destin, nous vous remercions de bien > > vouloir le supprimer et en aviser immdiatement l'expditeur. Toute > > utilisation de ce message non conforme sa destination, toute > diffusion > > ou publication, totale ou partielle et quel qu'en soit le moyen est > > formellement interdite. > > Les communications sur internet n'tant pas scurises, l'intgrit de > ce > > message n'est pas assure et la socit mettrice ne peut tre tenue > pour > > responsable de son contenu. > > ___ > > Mono-devel-list mailing list > > Mono-devel-list@lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-devel-list > ___ Ce message et les �ventuels documents joints peuvent contenir des informations confidentielles. Au cas o� il ne vous serait pas destin�, nous vous remercions de bien vouloir le supprimer et en aviser imm�diatement l'exp�diteur. Toute utilisation de ce message non conforme � sa destination, toute diffusion ou publication, totale ou partielle et quel qu'en soit le moyen est formellement interdite. Les communications sur internet n'�tant pas s�curis�es, l'int�grit� de ce message n'est pas assur�e et la soci�t� �mettrice ne peut �tre tenue pour responsable de son contenu. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/
Re: [Mono-dev] ask for backport on mono 1.2.5 branch
Hi, Ooops after further investigation, it seems that this fix is not enough to fix this problem... I'm investigating to find out the revision number needed Le vendredi 31 août 2007 à 15:51 +0200, Robert Jordan a écrit : > Hi, > > Hubert FONGARNAND wrote: > > In the actual release, a simple ASP.NET with a ListBox Control > don't > > work, viewstate deserialization problem... > > > > This problem as been fixed in the trunk by : > > > > 2007-08-30 Igor Zelmanovich <[EMAIL PROTECTED]> > > > > * ListControl.cs: fixed selected items state management. > > It's r85048: > > http://lists.ximian.com/pipermail/mono-patches/2007-August/099919.html > > Robert > > > > > Could this be backported to the mono 1.2.5 branch? > > > > > > Here's a test case for this problem : > > > > Default.aspx: > > <%@ Page Language="C#" Inherits="TestViewState.Default" %> > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > > > > Default > > > > > > > > > >CssClass="TextBox200" > > Width="200px" Visible="True" > > Rows="1"> > > > > > > > > > > > > Default.aspx.cs : > > // Default.aspx.cs created with MonoDevelop > > // User: hubert at 15:02 31/08/2007 > > // > > // To change standard headers go to > Edit->Preferences->Coding->Standard > > Headers > > // > > > > using System; > > using System.Web; > > using System.Web.UI; > > using System.Web.UI.WebControls; > > using System.Data; > > > > namespace TestViewState > > { > > > > > > public class Default : Page > > { > > protected ListBox drpSociete; > > > > > > protected override void OnLoad(EventArgs e) > > { > > if (!IsPostBack){ > > drpSociete.Items.Add("bouh"); > > drpSociete.Items.Add("bah"); > > } > > } > > > > > > } > > } > > > > > > Click two times on the button and you'll obtain : > > Server Error in '/' Application > > > > > > > > > Index is less than 0 or more than or equal to the list count. > Parameter > > name: index 0 > > > > Description: Error processing request. > > > > Error Message: HTTP 500. System.ArgumentOutOfRangeException: Index > is > > less than 0 or more than or equal to the list count. Parameter > name: > > index 0 > > > > Stack Trace: > > > > 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) [0x0] > > at System.Web.UI.WebControls.ListItemCollection.get_Item (Int32 > index) [0x0] > > at System.Web.UI.WebControls.ListControl.LoadViewState > (System.Object savedState) [0x0] > > at System.Web.UI.Control.LoadViewStateRecursive (System.Object > savedState) [0x0] > > at System.Web.UI.Control.LoadViewStateRecursive (System.Object > savedState) [0x0] > > at System.Web.UI.Control.LoadViewStateRecursive (System.Object > savedState) [0x0] > > at System.Web.UI.Page.LoadPageViewState () [0x0] > > at System.Web.UI.Page.InternalProcessRequest () [0x0] > > at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext > context) [0x0] > > > > > > Thanks in advance! > > > > ___ > > Ce message et les éventuels documents joints peuvent contenir des > informations confidentielles. > > Au cas où il ne vous serait pas destiné, nous vous remercions de > bien vouloir le supprimer et en aviser immédiatement l'expéditeur. > Toute utilisation de ce message non conforme à sa destination, toute > diffusion ou publication, totale ou partielle et quel qu'en soit le > moyen est formellement interdite. > > > Les communications sur internet n'étant pas sécurisées, l'intégrité > de ce message n'est pas assurée et la société émettrice ne peut être > tenue pour responsable de son contenu. > > > > > > > > > > > > > > ___ > > Mono-devel-list mailing list > > Mono-devel-list@lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > ___ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > ___ Ce message et les �ventuels documents joints peuvent contenir des informations confidentielles. Au cas o� il ne vous serait pas destin�, nous vous remercions de bien vouloir le supprimer et en aviser imm�diatement l'exp�diteur. Toute utilisation de ce message n
Re: [Mono-dev] ask for backport on mono 1.2.5 branch
Ok, now i'm sure that the patch that correct the DropDownList viewstate problem is this one : http://lists.ximian.com/pipermail/mono-patches/2007-July/097650.html +2007-07-26 Vladimir Krasnov + + * ListItemCollection.cs: fixed LoadViewState, items restored from + viewstate were not saved, fixes bug #82192 + it's r82779 Thanks in advance Le lundi 03 septembre 2007 à 10:07 +0200, informatique internet a écrit : > Hi, > > Ooops after further investigation, it seems that this fix is not > enough to fix this problem... I'm investigating to find out the > revision number needed > > Le vendredi 31 août 2007 à 15:51 +0200, Robert Jordan a écrit : > > > Hi, > > > > Hubert FONGARNAND wrote: > > > In the actual release, a simple ASP.NET with a ListBox Control > > don't > > > work, viewstate deserialization problem... > > > > > > This problem as been fixed in the trunk by : > > > > > > 2007-08-30 Igor Zelmanovich <[EMAIL PROTECTED]> > > > > > > * ListControl.cs: fixed selected items state management. > > > > It's r85048: > > > > http://lists.ximian.com/pipermail/mono-patches/2007-August/099919.html > > > > Robert > > > > > > > > Could this be backported to the mono 1.2.5 branch? > > > > > > > > > Here's a test case for this problem : > > > > > > Default.aspx: > > > <%@ Page Language="C#" Inherits="TestViewState.Default" %> > > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > > > > > > > Default > > > > > > > > > > > > > > >> CssClass="TextBox200" > > > Width="200px" Visible="True" > > > Rows="1"> > > > > > > > > > > > > > > > > > > Default.aspx.cs : > > > // Default.aspx.cs created with MonoDevelop > > > // User: hubert at 15:02 31/08/2007 > > > // > > > // To change standard headers go to > > Edit->Preferences->Coding->Standard > > > Headers > > > // > > > > > > using System; > > > using System.Web; > > > using System.Web.UI; > > > using System.Web.UI.WebControls; > > > using System.Data; > > > > > > namespace TestViewState > > > { > > > > > > > > > public class Default : Page > > > { > > > protected ListBox drpSociete; > > > > > > > > > protected override void OnLoad(EventArgs e) > > > { > > > if (!IsPostBack){ > > > drpSociete.Items.Add("bouh"); > > > drpSociete.Items.Add("bah"); > > > } > > > } > > > > > > > > > } > > > } > > > > > > > > > Click two times on the button and you'll obtain : > > > Server Error in '/' Application > > > > > > > > > > > > > > Index is less than 0 or more than or equal to the list count. > > Parameter > > > name: index 0 > > > > > > Description: Error processing request. > > > > > > Error Message: HTTP 500. System.ArgumentOutOfRangeException: Index > > is > > > less than 0 or more than or equal to the list count. Parameter > > name: > > > index 0 > > > > > > Stack Trace: > > > > > > 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) > > [0x0] > > > at System.Web.UI.WebControls.ListItemCollection.get_Item (Int32 > > index) [0x0] > > > at System.Web.UI.WebControls.ListControl.LoadViewState > > (System.Object savedState) [0x0] > > > at System.Web.UI.Control.LoadViewStateRecursive (System.Object > > savedState) [0x0] > > > at System.Web.UI.Control.LoadViewStateRecursive (System.Object > > savedState) [0x0] > > > at System.Web.UI.Control.LoadViewStateRecursive (System.Object > > savedState) [0x0] > > > at System.Web.UI.Page.LoadPageViewState () [0x0] > > > at System.Web.UI.Page.InternalProcessRequest () [0x0] > > > at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext > > context) [0x0] > > > > > > > > > Thanks in advance! > > > > > > ___ > > > Ce message et les éventuels documents joints peuvent contenir des > > informations confidentielles. > > > Au cas où il ne vous serait pas destiné, nous vous remercions de > > bien vouloir le supprimer et en aviser immédiatement l'expéditeur. > > Toute utilisation de ce message non conforme à sa destination, toute > > diffusion ou publication, totale ou partielle et quel qu'en soit le > > moyen est formellement interdite. > > > > > Les communications sur internet n'étant pas sécurisées, > > l'intégrité de ce message n'est pas assurée et la société émettrice > > ne peut être tenue pour responsable de son contenu. > > > > > > > > > > > > > > > > ---
Re: [Mono-dev] ask for backport on mono 1.2.5 branch
I've seen some backport this morning on the 1.2.5 branch... I don't understand why this can't be backported too? Hubert Le lundi 03 septembre 2007 à 10:23 +0200, informatique internet a écrit : > Ok, now i'm sure that the patch that correct the DropDownList > viewstate problem is this one : > > http://lists.ximian.com/pipermail/mono-patches/2007-July/097650.html > > +2007-07-26 Vladimir Krasnov > > + > + * ListItemCollection.cs: fixed LoadViewState, items restored from > + viewstate were not saved, fixes bug #82192 > + > > it's r82779 > > Thanks in advance > > > > Le lundi 03 septembre 2007 à 10:07 +0200, informatique internet a > écrit : > > > Hi, > > > > Ooops after further investigation, it seems that this fix is not > > enough to fix this problem... I'm investigating to find out the > > revision number needed > > > > Le vendredi 31 août 2007 à 15:51 +0200, Robert Jordan a écrit : > > > > > Hi, > > > > > > Hubert FONGARNAND wrote: > > > > In the actual release, a simple ASP.NET with a ListBox Control > > > don't > > > > work, viewstate deserialization problem... > > > > > > > > This problem as been fixed in the trunk by : > > > > > > > > 2007-08-30 Igor Zelmanovich <[EMAIL PROTECTED]> > > > > > > > > * ListControl.cs: fixed selected items state management. > > > > > > It's r85048: > > > > > > http://lists.ximian.com/pipermail/mono-patches/2007-August/099919.html > > > > > > Robert > > > > > > > > > > > Could this be backported to the mono 1.2.5 branch? > > > > > > > > > > > > Here's a test case for this problem : > > > > > > > > Default.aspx: > > > > <%@ Page Language="C#" Inherits="TestViewState.Default" %> > > > > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > > > > > > > > > > Default > > > > > > > > > > > > > > > > > > > >> > CssClass="TextBox200" > > > > Width="200px" Visible="True" > > > > Rows="1"> > > > > > > > > > > > > > > > > > > > > > > > > Default.aspx.cs : > > > > // Default.aspx.cs created with MonoDevelop > > > > // User: hubert at 15:02 31/08/2007 > > > > // > > > > // To change standard headers go to > > > Edit->Preferences->Coding->Standard > > > > Headers > > > > // > > > > > > > > using System; > > > > using System.Web; > > > > using System.Web.UI; > > > > using System.Web.UI.WebControls; > > > > using System.Data; > > > > > > > > namespace TestViewState > > > > { > > > > > > > > > > > > public class Default : Page > > > > { > > > > protected ListBox drpSociete; > > > > > > > > > > > > protected override void OnLoad(EventArgs e) > > > > { > > > > if (!IsPostBack){ > > > > drpSociete.Items.Add("bouh"); > > > > drpSociete.Items.Add("bah"); > > > > } > > > > } > > > > > > > > > > > > } > > > > } > > > > > > > > > > > > Click two times on the button and you'll obtain : > > > > Server Error in '/' Application > > > > > > > > > > > > > > > > > > > Index is less than 0 or more than or equal to the list count. > > > Parameter > > > > name: index 0 > > > > > > > > Description: Error processing request. > > > > > > > > Error Message: HTTP 500. System.ArgumentOutOfRangeException: > > > Index is > > > > less than 0 or more than or equal to the list count. Parameter > > > name: > > > > index 0 > > > > > > > > Stack Trace: > > > > > > > > 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) > > > [0x0] > > > > at System.Web.UI.WebControls.ListItemCollection.get_Item > > > (Int32 index) [0x0] > > > > at System.Web.UI.WebControls.ListControl.LoadViewState > > > (System.Object savedState) [0x0] > > > > at System.Web.UI.Control.LoadViewStateRecursive (System.Object > > > savedState) [0x0] > > > > at System.Web.UI.Control.LoadViewStateRecursive (System.Object > > > savedState) [0x0] > > > > at System.Web.UI.Control.LoadViewStateRecursive (System.Object > > > savedState) [0x0] > > > > at System.Web.UI.Page.LoadPageViewState () [0x0] > > > > at System.Web.UI.Page.InternalProcessRequest () [0x0] > > > > at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext > > > context) [0x0] > > > > > > > > > > > > Thanks in advance! > > > > > > > > ___ > > > > Ce message et les éventuels documents joints peuvent contenir > > > des informations confidentielles. > > > > Au cas où il ne vous serait pas destiné, nous vous remerc