Re: [Mono-dev] [PATCH] System.Web.UI.LiteralControl
Yes, this change is needed. We have real user's application that fails without this patch. See tests included in this commit. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gonzalo Paniagua Javier Sent: Tuesday, November 14, 2006 7:47 PM To: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] [PATCH] System.Web.UI.LiteralControl On Sun, 2006-11-12 at 02:18 -0800, Igor Zalmanovich wrote: Attached are the patch fixes LiteralControl constructors and the corresponding Test Case Is this change needed in LiteralControl? I don't see any real difference. -Gonzalo ___ 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
[Mono-dev] [PATCH] System.Web.Compilation.TemplateControlCompiler
Attached is patch for System.Web.Compilation.TemplateControlCompiler that resolves the problem is described below. When %# Bind(...) %-expression is used more then once for same control The generated code looks like follow: Line 174: private System.Collections.Specialized.IOrderedDictionary @__ExtractValues__bctrl_98(System.Web.UI.Control @__container) { Line 175: System.Collections.Specialized.OrderedDictionary @__table = new System.Collections.Specialized.OrderedDictionary(); Line 176: System.Web.UI.WebControls.CheckBox CheckBox2; Line 177: CheckBox2 = ((System.Web.UI.WebControls.CheckBox) (@__container.FindControl(CheckBox2))); Line 178: if ((CheckBox2 != null)) { Line 179: @__table[Role] = CheckBox2.Text; Line 180: } Line 181: System.Web.UI.WebControls.CheckBox CheckBox2; Line 182: CheckBox2 = ((System.Web.UI.WebControls.CheckBox) (@__container.FindControl(CheckBox2))); Line 183: if ((CheckBox2 != null)) { Line 184: @__table[IsInRole] = CheckBox2.Checked; Line 185: } Line 186: return @__table; Line 187: } It causes compilation error, because the same variable is declared more then once. Please review. Regards, Igor Zelmanovich. [EMAIL PROTECTED] TemplateControlCompiler.patch Description: TemplateControlCompiler.patch ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] [PATCH] Refactoring in System.Configuration.SectionInfo
Hello, On the Java platform we don't yet support fully nullable types. I would like to commit the attached refactoring removing nullable type, which resolves our problem without splitting the code bases. (This is a refactoring because requirePermission is initialized to true by default and never is null). Please approve commit. Regards, Konstantin Triger si.patch Description: si.patch ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] JAVA is now GPL..
Hello, Great, now mono can improve its JIT, AOT compilers and their garbage collectors with cross pollination from Sun's JVM.. We have historically looked at other open source compilers, garbage collectors and virtual machines. Intel produced a number of high-quality ones, so did IBM and there is quite a lot of research in the virtual machine world and code generation world to grab ideas from. But it is easier said than done. The concepts are probably reusable, the code is much harder. Also, Mono is dual licensed, under commercial terms for environments where the GPL or the LGPL is not suitable, so we would not be able to use the code in any case. - adopting/adapting Java SE garbage collector for mono This is one of those easier said than done. Even the ORP GC that was designed to be reusable turned out to need too much work to make this feasible. Also, Java GCs do not have as many requirements as .NET GCs, so its not a matter of copy/pasting. Significant work would be required anyways. - adopting/adapting Java SE JIT and AOT compiler technology for mono As someone else pointed out, JITing Java is a subset of JITing .NET, so it would still require a significant amount of work. But if someone wants to do it, we could provide some advise. Consider generics: .NET has generics at the CIL level, Java does not. - adapting JAVA JVM to run CIL directly, transforming mono in a framework/wrapper + CIL2javabytecode translator.. Interesting research topic. - enhancing mono IKVM.. Yeah, Jeroen Fritjers already expressed his willingness to go thta route. There is a lot of technology/code that can be shared.. What do you guys think? Do you also see this has a good thing? Will there be any palpable benefits for mono now that sun JDK is GPL ? just for the record: JavaSE: https://openjdk.dev.java.net/source/browse/openjdk/ svn checkout https://openjdk.dev.java.net/svn/openjdk/trunk openjdk --username guest best regards, ps.: keep going strong -- Miguel Sousa Filipe ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] [PATCH] System.Transactions.Transaction
I'd prefer ReferenceEquals (x, null) instead. Also, please use the proper indentation. Like this? begin 666 trans.patch [EMAIL PROTECTED](%1R86YS86-T:6]N+F-SCT]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T* M+2TM(%1R86YS86-T:6]N+F-S2AR979IVEO;B [EMAIL PROTECTED](%1R86YS M86-T:6]N+F-S2AW;W)K:6YG(-O'DID! (TU-RPV(LU-RPW($! B ) M6EN=5R;F%L(%1R86YS86-T:6]N(A4F%NV%C=EO;B!O=AEBD*( D) MPH@0D);5V96P@/2!O=AEBYL979E;#L**PD)0H@0D):6YF;R ](]T M:5R+FEN9F\[B )0ED97!E;F1E;G1S(#T@;W1H97(N95P96YD96YTSL* M( D)?0I 0 M,3DX+#$U(LQ.3DL,C @0$ *( D)?0H@B )5M-;VYO5$]$ M3UT*+0D)'5B;EC('-T871I8R!B;V]L(]P7TEN97%U86QI='[EMAIL PROTECTED] M86-T:6]N('@L(%1R86YS86-T:6]N('DIBL)7!U8FQI8R!S=%T:6,@8F]O M;!O5R871OB A/2 H5')A;G-A8W1I;VX@[EMAIL PROTECTED]')A;G-A8W1I;VX@2D* M( D)PHM0D):[EMAIL PROTECTED]'@@/3T@;G5L; F)B!Y(#T](YU;PIBT)0D)F5T M=7)N(9A;'-E.PHM0D):[EMAIL PROTECTED]'@@/3T@;G5L;!\?!Y(#T](YU;PIBL) M0EI9B H3V)J96-T+E)E9F5R96YC945Q=6%LRAX+!N=6QL*2 F)B!/8FIE M8W0N4F5F97)E;F-E17%U86QS*'DL(YU;PI*0HK0D)( @(')E='5R;B!F M86QS93L**PD)6EF(A/8FIE8W0N4F5F97)E;F-E17%U86QS*'@L(YU;PI M('Q\($]B:F5C=Y2969EF5N8V5%75A;',H2P@;G5L;DIB )0D)F5T M=7)N('1R=64[B *( D)7)E='5R;B A('@N17%U86QS(AY*3L*( D)?0HK M0D**PD)'5B;EC('-T871I8R!B;V]L(]P97)A=]R(#T](A4F%NV%C M=EO;B!X+!4F%NV%C=EO;B!Y*0HK0E[BL)0ER971UFX@(2AX($] M('DI.PHK0E]B *( D)'5B;EC(]V97)R:61E(EN=!'971(87-H0V]D *92 H*0H@0E[@`` ` end ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] [Mono-list] mod_mono causes [mono] defunct zombie processes
Hi! I have the same on FC4 with mono 1.2-rc0. There was a bug about this (75678) bu it is marked as RESOLVED. Shoould I file another one? Cheers! Michał Ziemski Jurek Bartuszek napisał(a): Hi there, I have a problem with mod_mono. Every time I access an .aspx web page hosted by mono, a new zombie process is shown in the list of processes: apache 26531 0.1 0.0 0 0 ?Z18:26 0:00 [mono] defunct apache 26551 0.2 0.0 0 0 ?Z18:26 0:01 [mono] defunct apache 26554 0.2 0.0 0 0 ?Z18:26 0:01 [mono] defunct After some time, apache refuses to serve asp.net applications anymore and I'm forced to restart it. This behavior is independent of whether MonoRunXSP is set to True or False (mod-mono-server is started either manually or automatically). Any ideas? Best regards, Jurek Bartuszek ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] [PATCH] System.Web.Compilation.TemplateControlCompiler
On Wed, 2006-11-15 at 00:53 -0800, Igor Zalmanovich wrote: Attached is patch for System.Web.Compilation.TemplateControlCompiler that resolves the problem is described below. When %# Bind(...) %-expression is used more then once for same control Please, commit. Thanks. -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] [PATCH] System.Web.UI.LiteralControl
On Wed, 2006-11-15 at 00:37 -0800, Igor Zalmanovich wrote: Yes, this change is needed. We have real user's application that fails without this patch. See tests included in this commit. Ok, then go ahead and commit. -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] [PATCH] Refactoring in System.Configuration.SectionInfo
On Wed, 2006-11-15 at 00:58 -0800, Konstantin Triger wrote: Hello, On the Java platform we don't yet support fully nullable types. I would like to commit the attached refactoring removing nullable type, which resolves our problem without splitting the code bases. (This is a refactoring because requirePermission is initialized to true by default and never is null). Please approve commit. Please, commit. Thanks again. -Gonzalo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Unable to compile this morning
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
[Mono-dev] (no subject)
Hello, Does anybody know if Mono will implement ASP.NET AJAX soon? Or is there any alternative AJAX already supported by Mono? Thanks! Tony___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] (no subject)
I can't answer about the AJAX Extensions stuff though I don't see how it could come anytime soon.There are a lot of AJAX technologies you can use today. I use:MagicAJAX which is .NET specific I think might work pure _javascript_ ones like these certainly can be used:SarissaPrototypeOpenRicoDojoHope it helps,JoeOn 11/15/06, Tony Gu [EMAIL PROTECTED] wrote: Hello, Does anybody know if Mono will implement ASP.NET AJAX soon? Or is there any alternative AJAX already supported by Mono? Thanks! Tony ___Mono-devel-list mailing listMono-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] (no subject)
http://www.mono-project.com/FAQ:_ASP.NET#Does_Mono_support_Atlas.3F Tony Gu wrote: Hello, Does anybody know if Mono will implement ASP.NET AJAX soon? Or is there any alternative AJAX already supported by Mono? Thanks! Tony -- Ben Timby Senior Software Architect Helios, LLC (p) 317-554-3619 (f) 317-554-8997 www.gohelios.com smime.p7s Description: S/MIME Cryptographic Signature ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] (no subject)
On Wed, 15 Nov 2006 14:50:53 -0500, Joe Audette [EMAIL PROTECTED] scribbled: I can't answer about the AJAX Extensions stuff though I don't see how it could come anytime soon. There are a lot of AJAX technologies you can use today. I use: MagicAJAX which is .NET specific I think might work I use Anthem (http://anthemdotnet.com/, http://anthem-dot-net.sourceforge.net/) in my projects. Its integration is practically a no-brainer. Really good for quick AJAX solutions. best, 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] Unable to compile this morning
Title: RE: [Mono-dev] Unable to compile this morning Hi, This is fixed in r67895. Thanks, Kosta -Original Message- From: [EMAIL PROTECTED] on behalf of Hubert FONGARNAND Sent: Wed 15/11/2006 11:31 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] Unable to compile this morning 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 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
Re: [Mono-dev] (no subject)
Hello Tony, There is an open source AJAX implementation called Anthem.NET. It runs on Mono and .Net and has support for 1.1 and 2.0 .net frameworks. This framework provides you with a set of AJAX-enabled controls inherited from the standard ASP.NET WebControls. You dont need to write any _javascript_ code, everything is handled by the framework. Project URL: http://anthemdotnet.com/ Manuel De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Tony Gu Enviado el: Miércoles, 15 de Noviembre de 2006 01:34 p.m. Para: mono-devel-list@lists.ximian.com Asunto: [Mono-dev] (no subject) Hello, Does anybody know if Mono will implement ASP.NET AJAX soon? Or is there any alternative AJAX already supported by Mono? Thanks! Tony ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] (no subject)
Manuel, Thanks! Tony - Original Message From: Manuel Espinosa [EMAIL PROTECTED]To: mono-devel-list@lists.ximian.comSent: Wednesday, November 15, 2006 11:57:19 AMSubject: Re: [Mono-dev] (no subject) Hello Tony, There is an open source AJAX implementation called Anthem.NET. It runs on Mono and .Net and has support for 1.1 and 2.0 .net frameworks. This framework provides you with a set of AJAX-enabled controls inherited from the standard ASP.NET WebControls. You don’t need to write any _javascript_ code, everything is handled by the framework. Project URL: http://anthemdotnet.com/ Manuel De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Tony GuEnviado el: Miércoles, 15 de Noviembre de 2006 01:34 p.m.Para: mono-devel-list@lists.ximian.comAsunto: [Mono-dev] (no subject) Hello, Does anybody know if Mono will implement ASP.NET AJAX soon? Or is there any alternative AJAX already supported by Mono? Thanks! Tony ___Mono-devel-list mailing listMono-devel-list@lists.ximian.comhttp://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] (no subject)
Just downloaded Anthem and tried to run under mono-1.2. But got the NotImplementedException on the sample UpdatePanel.aspx (Do I need modify anything in mono? It runs on ASP.NET fine): System.NotImplementedException: The requested feature is not implemented. at System.Web.UI.ClientScriptManager.RegisterForEventValidation (System.String uniqueId, System.String argument) [0x0] at Anthem.Manager.AddEventHandler (System.Web.UI.Control parent, System.Web.UI.WebControls.WebControl control, System.String eventName, System.String commandName, System.String commandArgument, Boolean causesValidation, System.String validationGroup, System.String textDuringCallBack, Boolean enabledDuringCallBack, System.String preCallBackFunction, System.String postCallBackFunction, System.String callBackCancelledFunction) [0x0] at Anthem.Manager.AddCallBacks (System.Web.UI.Control control, Boolean enabledDuringCallBack, System.String textDuringCallBack, System.String preCallBackFunction, System.String postCallBackFunction, System.String callBackCancelledFunction) [0x0] at Anthem.Manager.AddCallBacks (System.Web.UI.Control control, Boolean enabledDuringCallBack, System.String textDuringCallBack, System.String preCallBackFunction, System.String postCallBackFunction, System.String callBackCancelledFunction) [0x0] at Anthem.Panel.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at Anthem.Panel.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.HtmlControls.HtmlForm.RenderChildren (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.HtmlControls.HtmlContainerControl.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.HtmlControls.HtmlForm.Render (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.HtmlControls.HtmlForm.RenderControl (System.Web.UI.HtmlTextWriter w) [0x0] at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Page.Render (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x0] at System.Web.UI.Page.InternalProcessRequest () [0x0] at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x0] --- Marek Habersack [EMAIL PROTECTED] wrote: On Wed, 15 Nov 2006 14:50:53 -0500, Joe Audette [EMAIL PROTECTED] scribbled: I can't answer about the AJAX Extensions stuff though I don't see how it could come anytime soon. There are a lot of AJAX technologies you can use today. I use: MagicAJAX which is .NET specific I think might work I use Anthem (http://anthemdotnet.com/, http://anthem-dot-net.sourceforge.net/) in my projects. Its integration is practically a no-brainer. Really good for quick AJAX solutions. best, marek ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list Sponsored Link $420k for $1,399/mo. Think You Pay Too Much For Your Mortgage? Find Out! www.LowerMyBills.com/lre ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] (no subject)
On Wed, 15 Nov 2006 14:15:41 -0800 (PST), Tony Gu [EMAIL PROTECTED] scribbled: Just downloaded Anthem and tried to run under mono-1.2. But got the NotImplementedException on the sample UpdatePanel.aspx (Do I need modify anything in mono? It runs on ASP.NET fine): You apparently compiled anthem with the V2 symbol defined - i.e. the vs2005 version. The offending code is in Manager.cs, the AddEventHandler method - you can comment it out and it will compile correctly. Note that to compile and use Anthem under mono/asp.net 2.0 you need to also comment all the references to WebParts (basically it's just the WebPartZone.cs file). I'm hoping to implement the Event Validation for ASP.NET 2.0 soon, then the modification to Manager.cs will not be required anymore. Anthem vs2003 should work without modification under mono, 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] (no subject)
Marek, That's it. I did compile on vs2005. It works after comment out the part you mentioned. The PanelsAndVisibility.aspx seems has the bug which not working after the cecond click. Well, I will try it in my project. Thanks! Tony - Original Message From: Marek Habersack [EMAIL PROTECTED] To: Tony Gu [EMAIL PROTECTED] Cc: mono-devel-list@lists.ximian.com Sent: Wednesday, November 15, 2006 2:27:56 PM Subject: Re: [Mono-dev] (no subject) On Wed, 15 Nov 2006 14:15:41 -0800 (PST), Tony Gu [EMAIL PROTECTED] scribbled: Just downloaded Anthem and tried to run under mono-1.2. But got the NotImplementedException on the sample UpdatePanel.aspx (Do I need modify anything in mono? It runs on ASP.NET fine): You apparently compiled anthem with the V2 symbol defined - i.e. the vs2005 version. The offending code is in Manager.cs, the AddEventHandler method - you can comment it out and it will compile correctly. Note that to compile and use Anthem under mono/asp.net 2.0 you need to also comment all the references to WebParts (basically it's just the WebPartZone.cs file). I'm hoping to implement the Event Validation for ASP.NET 2.0 soon, then the modification to Manager.cs will not be required anymore. Anthem vs2003 should work without modification under mono, regards, marek ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Serialization issue with anonymous methods?
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 My class 'MyApp.MainClass contains a method(the Application Main Method) with a anonymous method like this: /* d.UnhandledException+= delegate { Console.WriteLine(Log Exception inside the application domain); }; */ ... where d is a AppDomain instance running and raising exceptions. When the first exception is throwed the SerializationException occurs. The c__CompilerGenerated1 type is generated by the compiler but it is not marked as serializable by default. I am just thinkin that this is the cause but i'm not sure because I not able to run MS ILDASM on a Mono Assembly and Mono Package don't have this tool. This issue is not present in MS .NET 2.0. I hope this is helpful. Best regards, Johan Hernandez. CompileERROR.bat_ Description: Binary data CompileOK.bat_ Description: Binary data Dragon.cs_ Description: Binary data MainClass.cs_ Description: Binary data ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-list] Mono-list Digest, Vol 19, Issue 19
<[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]>Joe,Thanks for the tip. I agree that using %= is a simpler way to get that id into that file. However, the example below (1) _does_ work on windows. The example I sent before wasn't exactly what I'd used. I mixed some single qoutes with double quotes. I know its ugly, but it works. When I said (notice single quotes at beginning and end):var sControlName = 'lt;asp:Literal id="lit1" runat="server" /gt;';I really meant (single quotes replaced with double quotes). ** THIS WORKS **var sControlName = "lt;asp:Literal id="lit1" runat="server" /gt;";--Travis(1) - Example works on windows, not on linux mono. .aspx.cs-protected Literal lit1;...// in Page_Load()lit1.Text = "ControlName";.aspx-...lt;script language="_javascript_" type="text/_javascript_"gt;var sControlName = "lt;asp:Literal id="lit1" runat="server" /gt;";lt;/scriptgt; ...<[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]>That would never work on windows either. Its not a correct way to get aclient side reference to a server side control. Its not a Mono migrationissue at all.Best Regards,JoeOn 11/14/06, Travis Staloch <[EMAIL PROTECTED]> wrote: FYI, I was able to solve this problem myself. I realized that it had to do with the fact that I'd included some unnecessary mono assemblies in my web app's bin directory (assemblies which were already in the GAC or otherwise on the machine which I migrated to). This caused some confilcts as I'm guessing that mono found these private assemblies in my app's bin directory before finding the shared assemblies elsewhere. I think that what happened is some 1.18 or 1.16 assemblies ( Mono.Data.Tds.dll in the error below) were used by the 1.15 mono installation. Another problem, and possible bug, I noticed with my web app (a difference from windows .NET) was that I had problems using an to set a _javascript_ variable. Here is the code which gives me a NullReferenceException when I try to use it. THIS DOESN'T WORK: .aspx .cs protected Literal litProductDdlName; ... litProductDdlName.Text = ddlProducts.ClientID; THIS WORKS - using %= % escaping as a workaround: .aspx After making this change, I have been able to successfully run my migrated ASP.NET web app on apache2/mod_mono. Regards, --Travis *Travis Staloch <[EMAIL PROTECTED]>* wrote: Guys, I've recently moved a .NET 1.1 web application over from a working windows/IIS machine to a linux/apache2/mod_mono machine. I keep getting this message whenever I try to view any of the pages: System.MissingMethodException: Method not found: 'Mono.Data.Tds.Protocol.TdsConnectionParameters.Reset'. in 0x0 I was getting a System.TypeLoadException error from same assembly (Mono.Data.Tds) until I restarted apache2. Does anyone have any ideas what might be causing this? Is this related to the fact that the linux machine has mono 1.1.15 installed while the windows machine the app migrated from had a later version (1.1.18 I think)? Regards, --Travis -- Want to start your own business? Learn how on Yahoo! Small Business. -- Everyone is raving about the all-new Yahoo! Mail beta. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list-- next part --An HTML attachment was scrubbed...URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061114/22bced4f/attachment.html --___Mono-list mailing listMono-list@lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-listEnd of Mono-list Digest, Vol 19, Issue 19*<[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]> Sponsored LinkMortgage rates near 39yr lows. $510,000 Mortgage for $1,698/mo - Calculate new house payment___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Web app migrate from win32 to linux
**Sorry all for the repost. I messed up the subject last time. --Travis**Joe,Thanks for the tip. I agree that using %= is a simpler way to get that id into that file. However, the example below (1) _does_ work on windows. The example I sent before wasn't exactly what I'd used. I mixed some single qoutes with double quotes. I know its ugly, but it works. When I said (notice single quotes at beginning and end):var sControlName = 'lt;asp:Literal id="lit1" runat="server" /gt;';I really meant (single quotes replaced with double quotes). ** THIS WORKS **var sControlName = "lt;asp:Literal id="lit1" runat="server" /gt;";--Travis(1) - Example works on windows, not on linux mono. .aspx.cs-protected Literal lit1;...// in Page_Load()lit1.Text = "ControlName";.aspx-...lt;script language="_javascript_" type="text/_javascript_"gt;var sControlName = "lt;asp:Literal id="lit1" runat="server" /gt;";lt;/scriptgt; ...<[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]>That would never work on windows either. Its not a correct way to get aclient side reference to a server side control. Its not a Mono migrationissue at all.Best Regards,JoeOn 11/14/06, Travis Staloch <[EMAIL PROTECTED]> wrote: FYI, I was able to solve this problem myself. I realized that it had to do with the fact that I'd included some unnecessary mono assemblies in my web app's bin directory (assemblies which were already in the GAC or otherwise on the machine which I migrated to). This caused some confilcts as I'm guessing that mono found these private assemblies in my app's bin directory before finding the shared assemblies elsewhere. I think that what happened is some 1.18 or 1.16 assemblies ( Mono.Data.Tds.dll in the error below) were used by the 1.15 mono installation. Another problem, and possible bug, I noticed with my web app (a difference from windows .NET) was that I had problems using an to set a _javascript_ variable. Here is the code which gives me a NullReferenceException when I try to use it. THIS DOESN'T WORK: .aspx .cs protected Literal litProductDdlName; ... litProductDdlName.Text = ddlProducts.ClientID; THIS WORKS - using %= % escaping as a workaround: .aspx After making this change, I have been able to successfully run my migrated ASP.NET web app on apache2/mod_mono. Regards, --Travis *Travis Staloch <[EMAIL PROTECTED]>* wrote: Guys, I've recently moved a .NET 1.1 web application over from a working windows/IIS machine to a linux/apache2/mod_mono machine. I keep getting this message whenever I try to view any of the pages: System.MissingMethodException: Method not found: 'Mono.Data.Tds.Protocol.TdsConnectionParameters.Reset'. in 0x0 I was getting a System.TypeLoadException error from same assembly (Mono.Data.Tds) until I restarted apache2. Does anyone have any ideas what might be causing this? Is this related to the fact that the linux machine has mono 1.1.15 installed while the windows machine the app migrated from had a later version (1.1.18 I think)? Regards, --Travis -- Want to start your own business? Learn how on Yahoo! Small Business. -- Everyone is raving about the all-new Yahoo! Mail beta. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list-- next part --An HTML attachment was scrubbed...URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061114/22bced4f/attachment.html --___Mono-list mailing listMono-list@lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-listEnd of Mono-list Digest, Vol 19, Issue 19*<[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]> Everyone is raving about the all-new Yahoo! Mail beta.___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] sqlite3 on windows, encoding problem
Hi! I am in trouble porting my small sqlite3 application to windows. It works fine on linux but there are encoding problems on windows. When I try to open the connection, Open method calls sqlite3_open16 and an exception arises. Mono seems to use Unicode and Windows encoding seems to be different. I've tryed to set the environment variable: set MONO_EXTERNAL_ENCODINGS=default_locale but still crash. I've also tryed to build my app converting sources to unicode and also ascii although the connection string doesn't contain unicode chars. Versions: Mono 1.2, Mono.Data.SqliteClient, Version=1.0.5000.0 My dirty source: string path = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, translator.db); string connectionString = URI=file: + path + , version=3; Thanks -- Carlos Ble www.shidix.com/carlosble ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Web app migrate from win32 to linux
Hi Travis,I really meant (single quotes replaced with double quotes). ** THIS WORKS **var sControlName = lt;asp:Literal id=lit1 runat=server /gt;; This doesn't work on my planet. On my planet you would never put something like that in _javascript_. A literal declared server side in markup like asp:Literal id=lit1 Text=foo / would render in the browser only as foo. Putting runat=server in the string of a _javascript_ variable is just cuckoo here on my planet. No offense to other worlds of course ;-), each to his own. Cheers,JoeOn 11/15/06, Travis Staloch [EMAIL PROTECTED] wrote: **Sorry all for the repost. I messed up the subject last time. --Travis**Joe,Thanks for the tip. I agree that using %= is a simpler way to get that id into that file. However, the example below (1) _does_ work on windows. The example I sent before wasn't exactly what I'd used. I mixed some single qoutes with double quotes. I know its ugly, but it works. When I said (notice single quotes at beginning and end):var sControlName = 'lt;asp:Literal id=lit1 runat=server /gt;';I really meant (single quotes replaced with double quotes). ** THIS WORKS ** var sControlName = lt;asp:Literal id=lit1 runat=server /gt;;--Travis(1) - Example works on windows, not on linux mono. .aspx.cs-protected Literal lit1; ...// in Page_Load()lit1.Text = ControlName;.aspx-...lt;script language=_javascript_ type=text/_javascript_gt;var sControlName = lt;asp:Literal id=lit1 runat=server /gt;; lt;/scriptgt; ...That would never work on windows either. Its not a correct way to get a client side reference to a server side control. Its not a Mono migrationissue at all.Best Regards,JoeOn 11/14/06, Travis Staloch wrote: FYI, I was able to solve this problem myself. I realized that it had to do with the fact that I'd included some unnecessary mono assemblies in my web app's bin directory (assemblies which were already in the GAC or otherwise on the machine which I migrated to). This caused some confilcts as I'm guessing that mono found these private assemblies in my app's bin directory before finding the shared assemblies elsewhere. I think that what happened is some 1.18 or 1.16 assemblies ( Mono.Data.Tds.dll in the error below) were used by the 1.15 mono installation. Another problem, and possible bug, I noticed with my web app (a difference from windows .NET) was that I had problems using an to set a _javascript_ variable. Here is the code which gives me a NullReferenceException when I try to use it. THIS DOESN'T WORK: .aspx .cs protected Literal litProductDdlName; ... litProductDdlName.Text = ddlProducts.ClientID; THIS WORKS - using %= % escaping as a workaround: .aspx After making this change, I have been able to successfully run my migrated ASP.NET web app on apache2/mod_mono. Regards, --Travis *Travis Staloch * wrote: Guys, I've recently moved a .NET 1.1 web application over from a working windows/IIS machine to a linux/apache2/mod_mono machine. I keep getting this message whenever I try to view any of the pages: System.MissingMethodException: Method not found: 'Mono.Data.Tds.Protocol.TdsConnectionParameters.Reset'. in 0x0 I was getting a System.TypeLoadException error from same assembly (Mono.Data.Tds) until I restarted apache2. Does anyone have any ideas what might be causing this? Is this related to the fact that the linux machine has mono 1.1.15 installed while the windows machine the app migrated from had a later version (1.1.18 I think)? Regards, --Travis -- Want to start your own business? Learn how on Yahoo! Small Business. -- Everyone is raving about the all-new Yahoo! Mail beta. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- next part --An HTML attachment was scrubbed...URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061114/22bced4f/attachment.html --___Mono-list mailing listMono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-listEnd of Mono-list Digest, Vol 19, Issue 19* Everyone is raving about the all-new Yahoo! Mail beta. ___Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] sqlite3 on windows, encoding problem
Carlos Ble wrote: I am in trouble porting my small sqlite3 application to windows. It works fine on linux but there are encoding problems on windows. When I try to open the connection, Open method calls sqlite3_open16 and an exception arises. Mono seems to use Unicode and Windows encoding seems to be different. I've tryed to set the environment variable: set MONO_EXTERNAL_ENCODINGS=default_locale but still crash. I've also tryed to build my app converting sources to unicode and also ascii although the connection string doesn't contain unicode chars. Versions: Mono 1.2, Mono.Data.SqliteClient, Version=1.0.5000.0 My dirty source: string path = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, translator.db); string connectionString = URI=file: + path + , version=3; Hi, Could you provide the stack trace of the exception and detailed steps to reproduce the problem? (Are you opening a database created in Linux or creating a new database in Windows, or...?) -- - Joshua Tauberer http://razor.occams.info Strike up the klezmer and start acting like a man. You're about to have a truth-mitzvah. -- The Colbert Report ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] sqlite3 on windows, encoding problem
string path = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, translator.db); string connectionString = URI=file: + path + , version=3; Shouldn't you add also the // part, so the address is URI=file://C:\Docum ? -- Kamil Skalski http://nazgul.omega.pl ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] sqlite3 on windows, encoding problem
The project is public: http://developer.berlios.de/projects/sharptranslator The binary version containing a windows .bat: http://prdownload.berlios.de/sharptranslator/sharptranslator-0.1.3.zip Thanks Josh El mié, 15-11-2006 a las 11:46 -0500, Joshua Tauberer escribió: Carlos Ble wrote: I am in trouble porting my small sqlite3 application to windows. It works fine on linux but there are encoding problems on windows. When I try to open the connection, Open method calls sqlite3_open16 and an exception arises. Mono seems to use Unicode and Windows encoding seems to be different. I've tryed to set the environment variable: set MONO_EXTERNAL_ENCODINGS=default_locale but still crash. I've also tryed to build my app converting sources to unicode and also ascii although the connection string doesn't contain unicode chars. Versions: Mono 1.2, Mono.Data.SqliteClient, Version=1.0.5000.0 My dirty source: string path = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, translator.db); string connectionString = URI=file: + path + , version=3; Hi, Could you provide the stack trace of the exception and detailed steps to reproduce the problem? (Are you opening a database created in Linux or creating a new database in Windows, or...?) -- Carlos Ble Shidix Technologies www.shidix.com/carlosble ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] sqlite3 on windows, encoding problem
El mié, 15-11-2006 a las 17:54 +0100, Kamil Skalski escribió: Shouldn't you add also the // part, so the address is URI=file://C:\Docum That is not the problem. Thanks for the answer ? -- Carlos Ble www.shidix.com/carlosble ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] sqlite3 on windows, encoding problem
El mié, 15-11-2006 a las 11:46 -0500, Joshua Tauberer escribió: Hi, Could you provide the stack trace of the exception and detailed steps to reproduce the problem? (Are you opening a database created in Linux or creating a new database in Windows, or...?) The database was created in Linux. You can see the stack trace launching the application (.bat). The .bat file could be not correct. Thanks again -- Carlos Ble www.shidix.com/carlosble ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Embedding Mono
Hello, What is the correct way to initialize the Mono JIT for v2.0 without using an assembly? Is this a missing feature? Usually I'd call mono_jit_init(assemblyPath) which calls mini_init (assemblyPath) which calls mono_init_from_assembly(assemblyPath, assemblyPath), resulting in a MonoDomain whose version depends on the assembly at assemblyPath or otherwise is v1.1. If I just called mono_init_version(MyNativeApp, v2.0) I'd get the domain I want but the JIT wouldn't get initialized... So should I use mono_jit_init, then cleanup the resulting v1.1 domain and create a new v2.0 one? The side-effects of all this are unclear to me and I'd hate to include a dummy assembly just for the correct version to be detected. Andreas ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Web app migrate from win32 to linux
Joe, This doesn't work on my planet. On my planet you would never put something like that in javascript. ... Putting runat=server in the string of a javascript variable is just cuckoo here on my planet. No offense to other worlds of course ;-), each to his own. I agree that its not the best form. Looking back at it now, it looks to me like it shouldn't work. Should I report a bug on something like this? Regards, --Travis Joe Audette [EMAIL PROTECTED] wrote: Hi Travis, I really meant (single quotes replaced with double quotes). ** THIS WORKS ** var sControlName = lt;asp:Literal id=lit1 runat=server /gt;; This doesn't work on my planet. On my planet you would never put something like that in javascript. A literal declared server side in markup like asp:Literalid=lit1 Text=foo / would render in the browser only as foo. Putting runat=server in the string of a javascript variable is just cuckoo here on my planet. No offense to other worlds of course ;-), each to his own. Cheers, Joe On 11/15/06, Travis Staloch [EMAIL PROTECTED] wrote: ** Sorry all for the repost. I messed up the subject last time. --Travis ** Joe, Thanks for the tip. I agree that using %= is a simpler way to get that id into that file. However, the example below (1) _does_ work on windows. The example I sent before wasn't exactly what I'd used. I mixed some single qoutes with double quotes. I know its ugly, but it works. When I said (notice single quotes at beginning and end): var sControlName = 'lt;asp:Literal id=lit1 runat=server /gt;'; I really meant (single quotes replaced with double quotes). ** THIS WORKS ** var sControlName = lt;asp:Literal id=lit1 runat=server /gt;; --Travis (1) - Example works on windows, not on linux mono. .aspx.cs - protected Literal lit1; ... // in Page_Load() lit1.Text = ControlName; .aspx - ... lt;script language=javascript type=text/javascriptgt; var sControlName = lt;asp:Literal id=lit1 runat=server /gt;; lt;/scriptgt; ... That would never work on windows either. Its not a correct way to get a client side reference to a server side control. Its not a Mono migration issue at all. Best Regards, Joe On 11/14/06, Travis Staloch wrote: FYI, I was able to solve this problem myself. I realized that it had to do with the fact that I'd included some unnecessary mono assemblies in my web app's bin directory (assemblies which were already in the GAC or otherwise on the machine which I migrated to). This caused some confilcts as I'm guessing that mono found these private assemblies in my app's bin directory before finding the shared assemblies elsewhere. I think that what happened is some 1.18 or 1.16 assemblies ( Mono.Data.Tds.dll in the error below) were used by the 1.15 mono installation. Another problem, and possible bug, I noticed with my web app (a difference from windows .NET) was that I had problems using an to set a javascript variable. Here is the code which gives me a NullReferenceException when I try to use it. THIS DOESN'T WORK: .aspx .cs protected Literal litProductDdlName; ... litProductDdlName.Text = ddlProducts.ClientID; THIS WORKS - using %= % escaping as a workaround: .aspx After making this change, I have been able to successfully run my migrated ASP.NET web app on apache2/mod_mono. Regards, --Travis *Travis Staloch * wrote: Guys, I've recently moved a .NET 1.1 web application over from a working windows/IIS machine to a linux/apache2/mod_mono machine. I keep getting this message whenever I try to view any of the pages: System.MissingMethodException: Method not found: 'Mono.Data.Tds.Protocol.TdsConnectionParameters.Reset'. in 0x0 I was getting a System.TypeLoadException error from same assembly (Mono.Data.Tds) until I restarted apache2. Does anyone have any ideas what might be causing this? Is this related to the fact that the linux machine has mono 1.1.15 installed while the windows machine the app migrated from had a later version (1.1.18 I think)? Regards, --Travis -- Want to start your own business? Learn how on Yahoo! Small Business. -- Everyone is raving about the all-new Yahoo! Mail beta. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- next part -- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061114/22bced4f/attachment.html -- ___ Mono-list mailing list Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list End of Mono-list Digest, Vol 19, Issue 19
Re: [Mono-list] Web app migrate from win32 to linux
I think the main thing is you did figure out the right way to do it and thats what really matters :-) script language=javascript type=text/javascript var sControlName = '%= ddlProducts.ClientID %'; /script To me that is the correct way in .NET to get a javascript reference to a .NET server control. If the other way did work on Windows I would consider that a surprising bug. My only other point is the above works with DropdownList, TextBox etc but not with a Literal control as a Literal control has no client id and therefore nothing to reference. Literal control just renders to the browser as literal markup. Cheers, Joe On 11/15/06, Travis Staloch [EMAIL PROTECTED] wrote: Joe, This doesn't work on my planet. On my planet you would never put something like that in javascript. ... Putting runat=server in the string of a javascript variable is just cuckoo here on my planet. No offense to other worlds of course ;-), each to his own. I agree that its not the best form. Looking back at it now, it looks to me like it shouldn't work. Should I report a bug on something like this? Regards, --Travis *Joe Audette [EMAIL PROTECTED]* wrote: Hi Travis, I really meant (single quotes replaced with double quotes). ** THIS WORKS ** var sControlName = lt;asp:Literal id=lit1 runat=server /gt;; This doesn't work on my planet. On my planet you would never put something like that in javascript. A literal declared server side in markup like asp:Literalid=lit1 Text=foo / would render in the browser only as foo. Putting runat=server in the string of a javascript variable is just cuckoo here on my planet. No offense to other worlds of course ;-), each to his own. Cheers, Joe On 11/15/06, Travis Staloch [EMAIL PROTECTED] wrote: ** Sorry all for the repost. I messed up the subject last time. --Travis ** Joe, Thanks for the tip. I agree that using %= is a simpler way to get that id into that file. However, the example below (1) _does_ work on windows. The example I sent before wasn't exactly what I'd used. I mixed some single qoutes with double quotes. I know its ugly, but it works. When I said (notice single quotes at beginning and end): var sControlName = 'lt;asp:Literal id=lit1 runat=server /gt;'; I really meant (single quotes replaced with double quotes). ** THIS WORKS ** var sControlName = lt;asp:Literal id=lit1 runat=server /gt;; --Travis (1) - Example works on windows, not on linux mono. .aspx.cs - protected Literal lit1; ... // in Page_Load() lit1.Text = ControlName; .aspx - ... lt;script language=javascript type=text/javascriptgt; var sControlName = lt;asp:Literal id=lit1 runat=server /gt;; lt;/scriptgt; ... That would never work on windows either. Its not a correct way to get a client side reference to a server side control. Its not a Mono migration issue at all. Best Regards, Joe On 11/14/06, Travis Staloch wrote: FYI, I was able to solve this problem myself. I realized that it had to do with the fact that I'd included some unnecessary mono assemblies in my web app's bin directory (assemblies which were already in the GAC or otherwise on the machine which I migrated to). This caused some confilcts as I'm guessing that mono found these private assemblies in my app's bin directory before finding the shared assemblies elsewhere. I think that what happened is some 1.18 or 1.16 assemblies ( Mono.Data.Tds.dll in the error below) were used by the 1.15 mono installation. Another problem, and possible bug, I noticed with my web app (a difference from windows .NET) was that I had problems using an to set a javascript variable. Here is the code which gives me a NullReferenceException when I try to use it. THIS DOESN'T WORK: .aspx .cs protected Literal litProductDdlName; ... litProductDdlName.Text = ddlProducts.ClientID; THIS WORKS - using %= % escaping as a workaround: .aspx After making this change, I have been able to successfully run my migrated ASP.NET web app on apache2/mod_mono. Regards, --Travis *Travis Staloch * wrote: Guys, I've recently moved a .NET 1.1 web application over from a working windows/IIS machine to a linux/apache2/mod_mono machine. I keep getting this message whenever I try to view any of the pages: System.MissingMethodException: Method not found: 'Mono.Data.Tds.Protocol.TdsConnectionParameters.Reset'. in 0x0 I was getting a System.TypeLoadException error from same assembly (Mono.Data.Tds) until I restarted apache2. Does anyone have any ideas what might be causing this? Is this related to the fact that the linux machine has mono 1.1.15 installed while the windows machine the app migrated from had a later version (1.1.18 I think)? Regards, --Travis -- Want to start your own business? Learn how
Re: [Mono-list] Web app migrate from win32 to linux
Oh and to take the example further and get a client side dom reference to the select element rendered by server side asp:DropDownList, it would be more like this: script language=javascript type=text/javascript var sControlID = '%= ddlProducts.ClientID %'; var dd = document.getElementById(sControlID); /script or just script language=javascript type=text/javascript var dd = document.getElementById('%= ddlProducts.ClientID %'); /script Cheers, Joe On 11/15/06, Joe Audette [EMAIL PROTECTED] wrote: I think the main thing is you did figure out the right way to do it and thats what really matters :-) script language=javascript type=text/javascript var sControlName = '%= ddlProducts.ClientID %'; /script To me that is the correct way in .NET to get a javascript reference to a .NET server control. If the other way did work on Windows I would consider that a surprising bug. My only other point is the above works with DropdownList, TextBox etc but not with a Literal control as a Literal control has no client id and therefore nothing to reference. Literal control just renders to the browser as literal markup. Cheers, Joe On 11/15/06, Travis Staloch [EMAIL PROTECTED] wrote: Joe, This doesn't work on my planet. On my planet you would never put something like that in javascript. ... Putting runat=server in the string of a javascript variable is just cuckoo here on my planet. No offense to other worlds of course ;-), each to his own. I agree that its not the best form. Looking back at it now, it looks to me like it shouldn't work. Should I report a bug on something like this? Regards, --Travis *Joe Audette [EMAIL PROTECTED]* wrote: Hi Travis, I really meant (single quotes replaced with double quotes). ** THIS WORKS ** var sControlName = lt;asp:Literal id=lit1 runat=server /gt;; This doesn't work on my planet. On my planet you would never put something like that in javascript. A literal declared server side in markup like asp:Literalid=lit1 Text=foo / would render in the browser only as foo. Putting runat=server in the string of a javascript variable is just cuckoo here on my planet. No offense to other worlds of course ;-), each to his own. Cheers, Joe On 11/15/06, Travis Staloch [EMAIL PROTECTED] wrote: ** Sorry all for the repost. I messed up the subject last time. --Travis ** Joe, Thanks for the tip. I agree that using %= is a simpler way to get that id into that file. However, the example below (1) _does_ work on windows. The example I sent before wasn't exactly what I'd used. I mixed some single qoutes with double quotes. I know its ugly, but it works. When I said (notice single quotes at beginning and end): var sControlName = 'lt;asp:Literal id=lit1 runat=server /gt;'; I really meant (single quotes replaced with double quotes). ** THIS WORKS ** var sControlName = lt;asp:Literal id=lit1 runat=server /gt;; --Travis (1) - Example works on windows, not on linux mono. .aspx.cs - protected Literal lit1; ... // in Page_Load() lit1.Text = ControlName; .aspx - ... lt;script language=javascript type=text/javascriptgt; var sControlName = lt;asp:Literal id=lit1 runat=server /gt;; lt;/scriptgt; ... That would never work on windows either. Its not a correct way to get a client side reference to a server side control. Its not a Mono migration issue at all. Best Regards, Joe On 11/14/06, Travis Staloch wrote: FYI, I was able to solve this problem myself. I realized that it had to do with the fact that I'd included some unnecessary mono assemblies in my web app's bin directory (assemblies which were already in the GAC or otherwise on the machine which I migrated to). This caused some confilcts as I'm guessing that mono found these private assemblies in my app's bin directory before finding the shared assemblies elsewhere. I think that what happened is some 1.18 or 1.16assemblies ( Mono.Data.Tds.dll in the error below) were used by the 1.15 mono installation. Another problem, and possible bug, I noticed with my web app (a difference from windows .NET) was that I had problems using an to set a javascript variable. Here is the code which gives me a NullReferenceException when I try to use it. THIS DOESN'T WORK: .aspx .cs protected Literal litProductDdlName; ... litProductDdlName.Text = ddlProducts.ClientID; THIS WORKS - using %= % escaping as a workaround: .aspx After making this change, I have been able to successfully run my migrated ASP.NET web app on apache2/mod_mono. Regards, --Travis *Travis Staloch * wrote: Guys, I've recently moved a .NET 1.1 web application over from a working windows/IIS machine to a linux/apache2/mod_mono
Re: [Mono-list] Compiling and running ASP.NET 2.0 applications
Hi Madars: Even when the support for ASP.NET 2 is not complete, you can run most of the applications with xsp. - You need to compile all the source (.cs) files. I use a Makefile for my website. - You should include the dll files in the bin/ directory - You should include the web.config, global.asax and other application files in the application root directory - You can include the .aspx files in any directory within the application (not bin/) The error you sent seems to be generated for the web browser So the server is printing the aspx source or the aspx form is printing a XML?? Juan C. Olivares www.juancri.com On 10/24/06, Madars Vitolins [EMAIL PROTECTED] wrote: Hi Sirs, Is somewhere manual how to do this? I am using VS 2005 for building apps. Some time ago I tried to run ASP.NET 1.1 apps and all was OK. But with asp.net 2.0 and App_Code stuff it seems that it doesn't work. To run ASP.NET 2.0 I need to fully compile all the source in binary dll manually? (*aspx.cs files too?). And What are file paths should be used? ./bin for dll? . - for aspx, and other stuff, like web.config Running the uncompiled VS2005 created project with XSP2 I got following error: XML Parsing Error: no *element* found Location: http://127.0.0.1:1234/Default.aspx Line Number 1, Column 1: Thanks a lot in advance, Madars. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- Juan Cristóbal Olivares ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Compiling and running ASP.NET 2.0 applications
When I said xsp, I wanted to say xsp2 :) On 11/16/06, Juan Cristóbal Olivares [EMAIL PROTECTED] wrote: Hi Madars: Even when the support for ASP.NET 2 is not complete, you can run most of the applications with xsp. - You need to compile all the source (.cs) files. I use a Makefile for my website. - You should include the dll files in the bin/ directory - You should include the web.config, global.asax and other application files in the application root directory - You can include the .aspx files in any directory within the application (not bin/) The error you sent seems to be generated for the web browser So the server is printing the aspx source or the aspx form is printing a XML?? Juan C. Olivares www.juancri.com On 10/24/06, Madars Vitolins [EMAIL PROTECTED] wrote: Hi Sirs, Is somewhere manual how to do this? I am using VS 2005 for building apps. Some time ago I tried to run ASP.NET 1.1 apps and all was OK. But with asp.net 2.0 and App_Code stuff it seems that it doesn't work. To run ASP.NET 2.0 I need to fully compile all the source in binary dll manually? (* aspx.cs files too?). And What are file paths should be used? ./bin for dll? . - for aspx, and other stuff, like web.config Running the uncompiled VS2005 created project with XSP2 I got following error: XML Parsing Error: no *element* found Location: http://127.0.0.1:1234/Default.aspx Line Number 1, Column 1: Thanks a lot in advance, Madars. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- Juan Cristóbal Olivares -- Juan Cristóbal Olivares ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Retrieve SOAP message
Sébastien Mosser asked how to retrieve the SOAP message from a web service. I have good and bad news. The good news is it's possible the bad news is mono bug. Ok, this is the explanation. I tried in Microsoft .NET first because of the documentation. I did this: using System.IO; [WebMethod] public string Test (string argument1, string argument2) { using (StreamReader reader = new StreamReader ( this.Context.Request.InputStream)) return reader.ReadToEnd (); } With POST method it worked OK, I received argument1=sometextargument2=othertext but it didn't work with SOAP, so I tried this hack: [WebMethod] public string Test (string argument1, string argument2) { Stream stream = this.Context.Request.InputStream; stream.Seek (0, SeekOrigin.Begin); using (StreamReader reader = new StreamReader (stream)) return reader.ReadToEnd (); } and it worked great: ?xml version=1.0 encoding=utf-8?soap:Envelope xmlns:soap= http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd= http://www.w3.org/2001/XMLSchema;soap:BodyTest xmlns= http://tempuri.org/;argument1hola/argument1 argument2bye/argument2/Test/soap:Body/soap:Envelope But it's not working with my mono installation... anybody else can try? Juan C. Olivares www.juancri.com -- Juan Cristóbal Olivares ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list