[Mono-dev] Two new bugs in System.Web
I've updated my servers with the latest mono 1.2 stable release... Result : - A regression (our web application use viewstate compression, and it doesn't work now) See bugzilla : http://bugzilla.ximian.com/show_bug.cgi?id=79945 http://bugzilla.ximian.com/show_bug.cgi?id=79946 ___ 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] Unable to compile this morning
Hi, This was fixed in SVN by Konstantin Triger on 2006-11-15. Thanks Nagappan Nagappan A [EMAIL PROTECTED] Linux Desktop Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com Novell, Inc. SUSE® Linux Enterprise 10 Your Linux is ready™ http://www.novell.com/linux Hubert FONGARNAND [EMAIL PROTECTED] 11/15/06 3:01 PM After make clean, ./autogen.sh and make ... make[8]: Entering directory `/home/hubert/mono/mcs/class/System.Data' MONO_PATH=../../class/lib/default: $MONO_PATH /home/hubert/mono/mono/runtime/mono-wrapper ../../class/lib/default/mcs.exe /codepage:65001 -d:NET_1_1 -d:ONLY_1_1 -debug /noconfig -nowarn:649 -nowarn:169 -nowarn:219 -nowarn:168 -nowarn:1595 -unsafe -r:mscorlib.dll -r:../../class/lib/default/System.dll -r:System.Xml.dll -r:System.EnterpriseServices.dll -r:Mono.Data.Tds.dll -target:library -out:../../class/lib/default/System.Data.dll Mono.Data.SqlExpressions/Parser.cs @System.Data.dll.sources System.Data/DataRowCollection.cs(123,19): error CS0117: `System.Data.DataRowAction' does not contain a definition for `ChangeCurrentAndOriginal' I think DataRowAction.ChangeCurrentAndOriginal is only defined in the .NET 2.0 profile! ___ 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] Two new bugs in System.Web
On Thu, 16 Nov 2006 09:16:39 +0100, Hubert FONGARNAND [EMAIL PROTECTED] scribbled: I've updated my servers with the latest mono 1.2 stable release... Result : - A regression (our web application use viewstate compression, and it doesn't work now) See bugzilla : http://bugzilla.ximian.com/show_bug.cgi?id=79945 It looks that it was changed in r67514. Igor, can you say what was the rationale for the change? Tests show that Hubert is right in his assessment - MS.NET indeed doesn't call the routine the first time the page is loaded or when there is no viewstate. http://bugzilla.ximian.com/show_bug.cgi?id=79946 I have attached a diff for this one to the bug, Gonzalo please review and let me know if I can commit, best regards, marek signature.asc Description: PGP signature ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Two new bugs in System.Web
Hi there, The change I did is really needed for ControlState feature. I see that it causes the regression. I am working on fixing this issue. I will send the patch for review after weekend. Igor -Original Message- From: Marek Habersack [mailto:[EMAIL PROTECTED] Sent: Thursday, November 16, 2006 1:12 PM To: Hubert FONGARNAND Cc: mono-devel-list@lists.ximian.com; Igor Zalmanovich Subject: Re: [Mono-dev] Two new bugs in System.Web On Thu, 16 Nov 2006 09:16:39 +0100, Hubert FONGARNAND [EMAIL PROTECTED] scribbled: I've updated my servers with the latest mono 1.2 stable release... Result : - A regression (our web application use viewstate compression, and it doesn't work now) See bugzilla : http://bugzilla.ximian.com/show_bug.cgi?id=79945 It looks that it was changed in r67514. Igor, can you say what was the rationale for the change? Tests show that Hubert is right in his assessment - MS.NET indeed doesn't call the routine the first time the page is loaded or when there is no viewstate. http://bugzilla.ximian.com/show_bug.cgi?id=79946 I have attached a diff for this one to the bug, Gonzalo please review and let me know if I can commit, best regards, marek ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Serialization issue with anonymous methods?
Johan Hernandez wrote: Hi my name is Johan Hernandez(excuse me for my english). I was looking for a list of known issues for Mono 1.2 but I can't find it, so I will post my issue here. Please compile the attachments in this mail and run the sample. I got this Serialization error: SerializationException 'MyApp.MainClass+c__CompilerGenerated1 is nor marked as serializable Gmcs' anonymous delegates implementation is different from MS.NET. MS.NET seems to generate in this case a static method in an existing class, while Mono generates a new anonymous class with an instance member. Since anonymous classes are neither marked as serializable nor derived from MarshalByRefObject, their methods can't be passed as a delegate to events like AppDomain.UnhandledException. I'm not sure whether this issue of gmcs' anonymous delegates implementation is actually a bug or rather an implementation detail. Feel free to file a bug. I'd rather not use anonymous delegates in this case, even on MS.NET, because the code could be cease to work when the implementation details of anonymous delegates are changed. Robert ps: Mono's ildasm is called 'monodis'. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Two new bugs in System.Web
On Thu, 2006-11-16 at 07:37 -0800, Igor Zalmanovich wrote: Hi there, The change I did is really needed for ControlState feature. I see that it causes the regression. I am working on fixing this issue. I will send the patch for review after weekend. I will revert the patch that caused the regression in the meantime, as we're tagging for a new release in the next days. Add it back after the weekend. Thanks. -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Question about macpack
I want to pack my Mono/C# application into a MacOSX '.app' bundle. Can macpack.exe be executed on Windows? Does it requires some additional libraries/utilities to run on Windows? Or maybe it required to be executed on MacOSX? I occured the following exception on Windows: Unhandled Exception: System.DllNotFoundException: libc.so.6 at (wrapper managed-to-native) Mac.Pack:chmod (string,uint) at Mac.Pack.Generate () [0x0] at Mac.Pack.Main (System.String[] args) [0x0] Simple test code for macpack: class X { static void Main () { System.Console.Write(OK);} } ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Question about macpack
Hello, I occured the following exception on Windows: Unhandled Exception: System.DllNotFoundException: libc.so.6 at (wrapper managed-to-native) Mac.Pack:chmod (string,uint) at Mac.Pack.Generate () [0x0] at Mac.Pack.Main (System.String[] args) [0x0] Simple test code for macpack: class X { static void Main () { System.Console.Write(OK);} } That is just trying to set the permissions for the files to be executable, am not sure how a file with those permissions would be transfered to MacOS. We could ignore the errror, but the app would not run. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] [PATCH] ASP.NET 2.0 event validation support
Hello, Attached is a patch that implements postback/callback event validation for ASP.NET 2.0. I tried to enable it for the controls that support it following the common-sense approach, tests show that the controls on MS.NET behave as ours - but I guess time will show if I was right. Anyhow, please review and let me know if I can commit :) best regards, marek Index: System.Web.UI.HtmlControls/HtmlInputText.cs === --- System.Web.UI.HtmlControls/HtmlInputText.cs (revision 67999) +++ System.Web.UI.HtmlControls/HtmlInputText.cs (working copy) @@ -111,6 +111,14 @@ #if NET_2_0 + protected internal override void Render (HtmlTextWriter writer) + { + Page.ClientScript.RegisterForEventValidation (this.UniqueID); + base.Render (writer); + } +#endif + +#if NET_2_0 protected internal #else protected Index: System.Web.UI.HtmlControls/HtmlInputRadioButton.cs === --- System.Web.UI.HtmlControls/HtmlInputRadioButton.cs (revision 67999) +++ System.Web.UI.HtmlControls/HtmlInputRadioButton.cs (working copy) @@ -96,7 +96,6 @@ } } - #if NET_2_0 protected internal #else @@ -120,6 +119,10 @@ protected override void RenderAttributes (HtmlTextWriter writer) { +#if NET_2_0 + if (Page != null) +Page.ClientScript.RegisterForEventValidation (this.UniqueID, Value); +#endif writer.WriteAttribute (value, Value); Attributes.Remove (value); base.RenderAttributes (writer); Index: System.Web.UI.HtmlControls/HtmlButton.cs === --- System.Web.UI.HtmlControls/HtmlButton.cs (revision 67999) +++ System.Web.UI.HtmlControls/HtmlButton.cs (working copy) @@ -97,7 +97,7 @@ #endif OnServerClick (EventArgs.Empty); } - + #if NET_2_0 protected internal #else @@ -121,6 +121,7 @@ #if NET_2_0 if (Page != null Events [ServerClickEvent] != null) { PostBackOptions options = GetPostBackOptions (); +Page.ClientScript.RegisterForEventValidation (options); Attributes [onclick] += Page.ClientScript.GetPostBackEventReference (options); writer.WriteAttribute (language, javascript); } Index: System.Web.UI.HtmlControls/HtmlTextArea.cs === --- System.Web.UI.HtmlControls/HtmlTextArea.cs (revision 67999) +++ System.Web.UI.HtmlControls/HtmlTextArea.cs (working copy) @@ -137,6 +137,10 @@ protected override void RenderAttributes (HtmlTextWriter writer) { +#if NET_2_0 + if (Page != null) +Page.ClientScript.RegisterForEventValidation (this.UniqueID); +#endif if (Attributes [name] == null) { writer.WriteAttribute (name, Name); } Index: System.Web.UI.HtmlControls/HtmlSelect.cs === --- System.Web.UI.HtmlControls/HtmlSelect.cs (revision 67999) +++ System.Web.UI.HtmlControls/HtmlSelect.cs (working copy) @@ -611,6 +611,10 @@ protected override void RenderAttributes (HtmlTextWriter w) { +#if NET_2_0 + if (Page != null) +Page.ClientScript.RegisterForEventValidation (this.UniqueID); +#endif /* If there is no name attribute, * LoadPostData doesn't work... */ @@ -645,7 +649,6 @@ int count = items.Count; for (int i = 0; i count; i++) { ListItem item = items[i]; - w.Indent++; /* Write the option elements this Index: System.Web.UI.HtmlControls/HtmlInputButton.cs === --- System.Web.UI.HtmlControls/HtmlInputButton.cs (revision 67999) +++ System.Web.UI.HtmlControls/HtmlInputButton.cs (working copy) @@ -177,6 +177,7 @@ } if (Page != null) { PostBackOptions options = GetPostBackOptions (); + Page.ClientScript.RegisterForEventValidation (options); onclick += Page.ClientScript.GetPostBackEventReference (options); } Index: System.Web.UI.HtmlControls/HtmlInputImage.cs === --- System.Web.UI.HtmlControls/HtmlInputImage.cs (revision 67999) +++ System.Web.UI.HtmlControls/HtmlInputImage.cs (working copy) @@ -246,6 +246,9 @@ protected override void RenderAttributes (HtmlTextWriter writer) { #if NET_2_0 + if (Page != null) +Page.ClientScript.RegisterForEventValidation (this.UniqueID); + if (CausesValidation Page != null Page.AreValidatorsUplevel (ValidationGroup)) { ClientScriptManager csm = Page.ClientScript; Attributes [onclick] += csm.GetClientValidationEvent (ValidationGroup); Index: System.Web.UI.HtmlControls/HtmlInputCheckBox.cs === --- System.Web.UI.HtmlControls/HtmlInputCheckBox.cs (revision 67999) +++ System.Web.UI.HtmlControls/HtmlInputCheckBox.cs (working copy) @@ -88,6 +88,15 @@ } #if NET_2_0 + protected override void