[Mono-docs-list] Adding MonoBasic documentation to MonoDoc
Greetings! So, I was talking to a partner of mine on MonoBrasil (Alexandre Marcondes), who is an active member on the development of our Mono Basic compiler. We would appreciate instructions on how to add some documentation on MonoDoc quite similar to C#'s Language Specification, but about our MonoBasic implementation. I'll copy here the text of our conversation at #mono today. We would be very happy if anyone could correct/point us what to do to start with it. (10:24:57) MonoNoSaint: Hey guys, I think you have seen my conversation with AlexMBas here, I guess. So, what should we need/do to put into MonoDoc some documentation about MonoBasic? (10:27:33) MonoNoSaint: From what I can see on MonoDoc there are two specific titles on C#: the Language Specification and the Compiler Error Reference. Basically we could follow the same structure we see there, I guess... am I right? (10:30:00) AlexMBas: yes ... (10:30:38) AlexMBas: I was thinking of putting the MonoBASIC language specification first (10:31:22) AlexMBas: the monobasic compiler error references are not done yet ... but the syntax is almost all covered by the compiler (10:32:46) MonoNoSaint: I see... I could write the text for the Specification. (10:33:32) MonoNoSaint: Is MonoBasic standardized the ECMA? I thought just C# was... (10:33:36) MonoNoSaint: *by the* (10:34:55) AlexMBas: unfortunately just C# was (10:35:10) MonoNoSaint: I thought so... (10:35:14) AlexMBas: we would do something like the ECMA specification (10:35:16) MonoNoSaint: AlexMBas: So... do you already have a draft about this? (10:35:28) AlexMBas: to facilitate the access to the developers (10:35:30) AlexMBas: not yet (10:35:34) MonoNoSaint: Yep (10:35:46) AlexMBas: the monoBASIC team will help on this (10:36:02) MonoNoSaint: We could work together so. (10:36:35) AlexMBas: I was responsible of findind out how to add our docs to MonoDoc ... (10:36:43) MonoNoSaint: They could write the documentation in Portuguese, which they feel must comfortable. Then I could translate it to English... (10:37:09) AlexMBas: MonoNoSain1, yes, we could do that ... isn't there any problem ? (10:37:25) MonoNoSaint: of course not, perfect to me. (10:37:28) MonoNoSaint: :) (10:37:47) AlexMBas: I had thought on writing directly in english, but if the translation team could do this reverse work it would be great (10:38:38) MonoNoSaint: We could start defining the topics to put there, taking the C# Language Specification as a model. (10:39:25) MonoNoSaint: So, all I imagine is necessary is ask here for someone to insert the nodes on the treeview (once we have the topics) on the left of MonoDoc. (10:40:04) MonoNoSaint: There is a Upload Contributions on the File menu. Then all I guess is necessary is to add the text and upload it. (10:40:46) MonoNoSaint: I'll copy this conversation of ours and post into the MonoDoc list, I sign it (10:40:47) AlexMBas: hey guys, who should me and MonoNoSain1 talk to in order to add a documentation tree to MonoDoc ? (10:40:57) MonoNoSaint: What do you think? (10:41:08) AlexMBas: MonoNoSain1, perfect for me (10:41:42) MonoNoSaint: Settled then. I'll copy it and ask for help. (10:43:22) MonoNoSaint: AlexMBas: Leave this with me so, I'll send a mail to them and CC it to you. (10:43:39) MonoNoSaint: As soon as I get the answer we talk again. OK? (10:47:49) AlexMBas: ok MonoNoSain1 (10:48:07) MonoNoSaint: Perfect so. So this is it. All your help will be very much appreciated. Thanks in advance! -- Tiago Paranhos Lima ([EMAIL PROTECTED]) - MonoNoSaint Coordenador Projeto Documentação Mono Brasil Mono Brazil's Documentation Project Leader ICQ: 316519586 MSN: [EMAIL PROTECTED] http://monodocbr.sl.org.br http://monobrasil.softwarelivre.org/ ___ Mono-docs-list maillist - Mono-docs-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-docs-list
[Mono-docs-list] Re: [Fwd: Adding MonoBasic documentation to MonoDoc]
This mail was also sent to MonoDoc mail list. I forgot to CC it to you. ;) The documentation must be written first. You can use HTML for that. Once its written, we need to plug it in. We need to write a new HTML provider, the one we have right now is not very good and has suffered from bitrot. Miguel Greetings! email message attachment, Mensagem encaminhada - Adding MonoBasic documentation to MonoDoc Forwarded Message From: tiago [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: MonoDoc Internacional mono-docs-list@ximian.com Cc: Alexandre Rocha Lima e Marcondes [EMAIL PROTECTED] Subject: Adding MonoBasic documentation to MonoDoc Date: Tue, 27 Dec 2005 11:04:50 -0200 Greetings! So, I was talking to a partner of mine on MonoBrasil (Alexandre Marcondes), who is an active member on the development of our Mono Basic compiler. We would appreciate instructions on how to add some documentation on MonoDoc quite similar to C#'s Language Specification, but about our MonoBasic implementation. I'll copy here the text of our conversation at #mono today. We would be very happy if anyone could correct/point us what to do to start with it. (10:24:57) MonoNoSaint: Hey guys, I think you have seen my conversation with AlexMBas here, I guess. So, what should we need/do to put into MonoDoc some documentation about MonoBasic? (10:27:33) MonoNoSaint: From what I can see on MonoDoc there are two specific titles on C#: the Language Specification and the Compiler Error Reference. Basically we could follow the same structure we see there, I guess... am I right? (10:30:00) AlexMBas: yes ... (10:30:38) AlexMBas: I was thinking of putting the MonoBASIC language specification first (10:31:22) AlexMBas: the monobasic compiler error references are not done yet ... but the syntax is almost all covered by the compiler (10:32:46) MonoNoSaint: I see... I could write the text for the Specification. (10:33:32) MonoNoSaint: Is MonoBasic standardized the ECMA? I thought just C# was... (10:33:36) MonoNoSaint: *by the* (10:34:55) AlexMBas: unfortunately just C# was (10:35:10) MonoNoSaint: I thought so... (10:35:14) AlexMBas: we would do something like the ECMA specification (10:35:16) MonoNoSaint: AlexMBas: So... do you already have a draft about this? (10:35:28) AlexMBas: to facilitate the access to the developers (10:35:30) AlexMBas: not yet (10:35:34) MonoNoSaint: Yep (10:35:46) AlexMBas: the monoBASIC team will help on this (10:36:02) MonoNoSaint: We could work together so. (10:36:35) AlexMBas: I was responsible of findind out how to add our docs to MonoDoc ... (10:36:43) MonoNoSaint: They could write the documentation in Portuguese, which they feel must comfortable. Then I could translate it to English... (10:37:09) AlexMBas: MonoNoSain1, yes, we could do that ... isn't there any problem ? (10:37:25) MonoNoSaint: of course not, perfect to me. (10:37:28) MonoNoSaint: :) (10:37:47) AlexMBas: I had thought on writing directly in english, but if the translation team could do this reverse work it would be great (10:38:38) MonoNoSaint: We could start defining the topics to put there, taking the C# Language Specification as a model. (10:39:25) MonoNoSaint: So, all I imagine is necessary is ask here for someone to insert the nodes on the treeview (once we have the topics) on the left of MonoDoc. (10:40:04) MonoNoSaint: There is a Upload Contributions on the File menu. Then all I guess is necessary is to add the text and upload it. (10:40:46) MonoNoSaint: I'll copy this conversation of ours and post into the MonoDoc list, I sign it (10:40:47) AlexMBas: hey guys, who should me and MonoNoSain1 talk to in order to add a documentation tree to MonoDoc ? (10:40:57) MonoNoSaint: What do you think? (10:41:08) AlexMBas: MonoNoSain1, perfect for me (10:41:42) MonoNoSaint: Settled then. I'll copy it and ask for help. (10:43:22) MonoNoSaint: AlexMBas: Leave this with me so, I'll send a mail to them and CC it to you. (10:43:39) MonoNoSaint: As soon as I get the answer we talk again. OK? (10:47:49) AlexMBas: ok MonoNoSain1 (10:48:07) MonoNoSaint: Perfect so. So this is it. All your help will be very much appreciated. Thanks in advance! -- Miguel de Icaza [EMAIL PROTECTED] Novell, Inc. ___ Mono-docs-list maillist - Mono-docs-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-docs-list
Re: [Mono-docs-list] Adding MonoBasic documentation to MonoDoc
Hi, first of all, the upload contributions only works with contributions done to the API docs and those contributions goes to the main documentation server. You have to write your tutorial and perform a normal installation or integrate it with the SVN (if it is accepted). For writing the tutorial I would recommend not to follow the C# Spec but to write a nicer tutorial. Did someone tried to read it as a first C#-text?? (it is not really very user newbie friendly) I guess, the spec was put there because at the moment of releasing monodoc there was nothing better around. For the XML syntax you can use the one used in the C# Spec, the deprecated monkeyguide syntax, wait until the wiki-like style is finished or write one your own. I would recommend you to use the monkeyguide syntax as it is the most tutorial alike syntax. Good luck with your effort!! Mario 2005/12/27, tiago [EMAIL PROTECTED]: Greetings! So, I was talking to a partner of mine on MonoBrasil (Alexandre Marcondes), who is an active member on the development of our Mono Basic compiler. We would appreciate instructions on how to add some documentation on MonoDoc quite similar to C#'s Language Specification, but about our MonoBasic implementation. I'll copy here the text of our conversation at #mono today. We would be very happy if anyone could correct/point us what to do to start with it. (10:24:57) MonoNoSaint: Hey guys, I think you have seen my conversation with AlexMBas here, I guess. So, what should we need/do to put into MonoDoc some documentation about MonoBasic? (10:27:33) MonoNoSaint: From what I can see on MonoDoc there are two specific titles on C#: the Language Specification and the Compiler Error Reference. Basically we could follow the same structure we see there, I guess... am I right? (10:30:00) AlexMBas: yes ... (10:30:38) AlexMBas: I was thinking of putting the MonoBASIC language specification first (10:31:22) AlexMBas: the monobasic compiler error references are not done yet ... but the syntax is almost all covered by the compiler (10:32:46) MonoNoSaint: I see... I could write the text for the Specification. (10:33:32) MonoNoSaint: Is MonoBasic standardized the ECMA? I thought just C# was... (10:33:36) MonoNoSaint: *by the* (10:34:55) AlexMBas: unfortunately just C# was (10:35:10) MonoNoSaint: I thought so... (10:35:14) AlexMBas: we would do something like the ECMA specification (10:35:16) MonoNoSaint: AlexMBas: So... do you already have a draft about this? (10:35:28) AlexMBas: to facilitate the access to the developers (10:35:30) AlexMBas: not yet (10:35:34) MonoNoSaint: Yep (10:35:46) AlexMBas: the monoBASIC team will help on this (10:36:02) MonoNoSaint: We could work together so. (10:36:35) AlexMBas: I was responsible of findind out how to add our docs to MonoDoc ... (10:36:43) MonoNoSaint: They could write the documentation in Portuguese, which they feel must comfortable. Then I could translate it to English... (10:37:09) AlexMBas: MonoNoSain1, yes, we could do that ... isn't there any problem ? (10:37:25) MonoNoSaint: of course not, perfect to me. (10:37:28) MonoNoSaint: :) (10:37:47) AlexMBas: I had thought on writing directly in english, but if the translation team could do this reverse work it would be great (10:38:38) MonoNoSaint: We could start defining the topics to put there, taking the C# Language Specification as a model. (10:39:25) MonoNoSaint: So, all I imagine is necessary is ask here for someone to insert the nodes on the treeview (once we have the topics) on the left of MonoDoc. (10:40:04) MonoNoSaint: There is a Upload Contributions on the File menu. Then all I guess is necessary is to add the text and upload it. (10:40:46) MonoNoSaint: I'll copy this conversation of ours and post into the MonoDoc list, I sign it (10:40:47) AlexMBas: hey guys, who should me and MonoNoSain1 talk to in order to add a documentation tree to MonoDoc ? (10:40:57) MonoNoSaint: What do you think? (10:41:08) AlexMBas: MonoNoSain1, perfect for me (10:41:42) MonoNoSaint: Settled then. I'll copy it and ask for help. (10:43:22) MonoNoSaint: AlexMBas: Leave this with me so, I'll send a mail to them and CC it to you. (10:43:39) MonoNoSaint: As soon as I get the answer we talk again. OK? (10:47:49) AlexMBas: ok MonoNoSain1 (10:48:07) MonoNoSaint: Perfect so. So this is it. All your help will be very much appreciated. Thanks in advance! -- Tiago Paranhos Lima ([EMAIL PROTECTED]) - MonoNoSaint Coordenador Projeto Documentação Mono Brasil Mono Brazil's Documentation Project Leader ICQ: 316519586 MSN: [EMAIL PROTECTED] http://monodocbr.sl.org.br http://monobrasil.softwarelivre.org/ ___ Mono-docs-list maillist - Mono-docs-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-docs-list ___ Mono-docs-list maillist -
Re: [Mono-docs-list] Adding MonoBasic documentation to MonoDoc
Hello, For writing the tutorial I would recommend not to follow the C# Spec but to write a nicer tutorial. Did someone tried to read it as a first C#-text?? (it is not really very user newbie friendly) I guess, the spec was put there because at the moment of releasing monodoc there was nothing better around. They have to decide if they want a specification or a tutorial. For a tutorial, I think the Wiki is better suited for this content; We can then develop a system to import a set of pages from the Wiki into an off-line browsable document. Miguel ___ Mono-docs-list maillist - Mono-docs-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-docs-list
Re: [Mono-dev] Console programs doesn't finish
On Wed, 2005-12-14 at 08:58 -0600, Carlos Solorzano wrote: My programs that don't exit are not as simple as just running some stuff on Main, instead they use a lot of threads (all the ones I have control of background), and I use a lot of remoting with a lot of Marhsal By Ref objects with an infinite lifetime. I would think my problem lies on the use of one of those two but who knows, also sometimes my programs do exit but I can't tell what the difference was. I found such problem with Remoting too, but I don't remember if the problem happened on windows or linux neither mono or ms.net, but one of them was caused by not unregistering the remoted channels. So try to cleanly unregister all your channels and see if it exists cleanly now. Let me know if you figure out something :-) --Carlos -- Regards, Mirco 'meebey' Bauer PGP-Key: http://keyserver.noreply.org/pks/lookup?op=getsearch=0xEEF946C8 -BEGIN GEEK CODE BLOCK- Version: 3.12 GIT d s-:+ a-- C++ UL$ P L++$+++$ E- W+++$ N o? K- w++! O M- V? PS PE+ Y- PGP++ t 5+ X++ R tv+ b+ DI? D+ G++ e h! r-++ y? --END GEEK CODE BLOCK-- signature.asc Description: This is a digitally signed message part ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] [PATCH] Minor fixes for XmlElement XmlTextWriter
Hi, I've attached a patch that fixes the following minor issues in XmlElement and XmlTextWriter : - Setting XmlElement.Prefix to null should not result in ArgumentNullException on 2.0 profile - XmlTextWriter.WriteNmToken should throw ArgumentException if name is null or zero-length string - XmlTextWriter.WriteWhitespace should throw ArgumentException if name is null or zero-length string All changes are accompanied by unit tests and have been tested on Mono 1.0/2.0 profile, and MS.NET 1.1/2.0. Is it ok to commit these changes (as is) ? Gert xml.diff Description: Binary data ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] [PATCH] Patch to add Gettext support to Mono.GetOptions
Hi, I've written a patch to add gettext support to Mono.GetOptions so that the help printed will be localized. It compiles and it's a fairly simple patch, but I haven't tested it against anything. I did have a question though about how gettext will work in a library; will the app developer manually have to add strings in Mono.GetOptions (like Error, et al.)? I don't know enough about gettext, but everything that should be translated is marked properly (at least I think). -- Paul Betts [EMAIL PROTECTED] Index: Mono.GetOptions/Options.cs === --- Mono.GetOptions/Options.cs (revision 53945) +++ Mono.GetOptions/Options.cs (working copy) @@ -27,6 +27,7 @@ // using System; using System.Collections; +using Mono.Unix; namespace Mono.GetOptions { @@ -117,9 +118,9 @@ private static void DefaultErrorReporter (int number, string message) { if (number 0) -Console.WriteLine(Error {0}: {1}, number, message); +Console.WriteLine(Catalog.GetString(Error {0}: {1}), number, Catalog.GetString(message)); else -Console.WriteLine(Error: {0}, message); +Console.WriteLine(Catalog.GetString(Error: {0}), Catalog.GetString(message)); } public virtual string AdditionalBannerInfo { get { return null; } } Index: Mono.GetOptions/OptionDetails.cs === --- Mono.GetOptions/OptionDetails.cs (revision 53945) +++ Mono.GetOptions/OptionDetails.cs (working copy) @@ -31,6 +31,7 @@ using System.Collections; using System.IO; using System.Reflection; +using Mono.Unix; namespace Mono.GetOptions { @@ -284,7 +285,9 @@ private int HowManyBeforeExceedingMaxOccurs(int howMany) { if (MaxOccurs 0 (Occurs + howMany) MaxOccurs) { -System.Console.Error.WriteLine(Option + LongForm + can be used at most + MaxOccurs + times. Ignoring extras...); +string format_str = Catalog.GetPluralString(Option {0} can be used at most {1} times. Ignoring extras..., + Option {0} can be used at most {1} times. Ignoring extras..., MaxOccurs); +System.Console.Error.WriteLine(format_str, LongForm, MaxOccurs); howMany = MaxOccurs - Occurs; } Occurs += howMany; @@ -329,6 +332,8 @@ int waitingToBeProcessed = HowManyBeforeExceedingMaxOccurs(parameterValues.Length); + string converterr_str = Catalog.GetString( +The value '{0}' is not convertible to the appropriate type '{1}' for the {2} option); foreach (string parameter in parameterValues) { if (waitingToBeProcessed-- = 0) @@ -343,7 +348,7 @@ try { convertedParameter = Convert.ChangeType(parameter, ParameterType.GetElementType()); } catch (Exception ex) { - Console.WriteLine(String.Format(The value '{0}' is not convertible to the appropriate type '{1}' for the {2} option, parameter, ParameterType.GetElementType().Name, DefaultForm)); + Console.WriteLine(converterr_str,parameter,ParameterType.GetElementType().Name,DefaultForm); } Values.Add(convertedParameter); continue; @@ -353,7 +358,7 @@ try { convertedParameter = Convert.ChangeType(parameter, ParameterType); } catch (Exception ex) { - Console.WriteLine(String.Format(The value '{0}' is not convertible to the appropriate type '{1}' for the {2} option, parameter, ParameterType.Name, DefaultForm)); + Console.WriteLine(converterr_str, parameter, ParameterType.Name, DefaultForm); continue; } } Index: Mono.GetOptions/OptionList.cs === --- Mono.GetOptions/OptionList.cs (revision 53945) +++ Mono.GetOptions/OptionList.cs (working copy) @@ -32,6 +32,7 @@ using System.IO; using System.Reflection; using System.Text; +using Mono.Unix; namespace Mono.GetOptions { @@ -226,7 +227,7 @@ if (!bannerAlreadyShown) { Console.WriteLine(appTitle ++ appVersion + - + appCopyright); if (AdditionalBannerInfo != null) - Console.WriteLine(AdditionalBannerInfo); + Console.WriteLine(Catalog.GetString(AdditionalBannerInfo)); } bannerAlreadyShown = true; } @@ -234,23 +235,23 @@ private void ShowTitleLines() { ShowBanner(); - Console.WriteLine(appDescription); + Console.WriteLine(Catalog.GetString(appDescription)); Console.WriteLine(); } private void ShowAbout() { ShowTitleLines(); - Console.WriteLine(appAboutDetails); - Console.Write(Authors: ); + Console.WriteLine(Catalog.GetString(appAboutDetails)); + Console.Write(Catalog.GetString(Authors: )); Console.WriteLine(string.Join(, , appAuthors)); } private void ShowHelp(bool showSecondLevelHelp) { ShowTitleLines(); - Console.WriteLine(Usage); - Console.WriteLine(Options:); + Console.WriteLine(Catalog.GetString(Usage)); + Console.WriteLine(Catalog.GetString(Options:)); ArrayList lines = new ArrayList(list.Count); int
Re: [Mono-dev] Console programs doesn't finish
On Dec 27, 2005, at 5:00 AM, Mirco Bauer wrote: On Wed, 2005-12-14 at 08:58 -0600, Carlos Solorzano wrote: My programs that don't exit are not as simple as just running some stuff on Main, instead they use a lot of threads (all the ones I have control of background), and I use a lot of remoting with a lot of Marhsal By Ref objects with an infinite lifetime. I would think my problem lies on the use of one of those two but who knows, also sometimes my programs do exit but I can't tell what the difference was. I found such problem with Remoting too, but I don't remember if the problem happened on windows or linux neither mono or ms.net, but one of them was caused by not unregistering the remoted channels. So try to cleanly unregister all your channels and see if it exists cleanly now. I will try that. However a couple of times one of my programs that doesn't use remoting didn't exit. It does use background threads heavily and just like all of my other programs it uses the Process class heavily. --Carlos Let me know if you figure out something :-) --Carlos -- Regards, Mirco 'meebey' Bauer PGP-Key: http://keyserver.noreply.org/pks/lookup?op=getsearch=0xEEF946C8 -BEGIN GEEK CODE BLOCK- Version: 3.12 GIT d s-:+ a-- C++ UL$ P L++$+++$ E- W+++$ N o? K- w++! O M- V? PS PE+ Y- PGP++ t 5+ X++ R tv+ b+ DI? D+ G++ e h! r-++ y? --END GEEK CODE BLOCK-- ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] [PATCH] System.Xml.Serialization.XmlAttributes fixes
Hi, The attached patch fixes the following issues with System.Xml.Serialization.XmlAttributes: - If XmlIgnoreAttribute is applied, do not process any other attributes. - In 2.0 profile, XmlDefaultValue must be null by default. Both fixes are accompanied by unit tests, and have been tested on Mono 1.0/2.0 profile and MS.NET 1.1/2.0. Is it ok commit these changes ? Gert xmlser.diff Description: Binary data ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Native compiler
Hello, Before you say anything, no I am not talking about a GCC frontend for Mono, something akin to GCJ for Java. But compilation, native compilation would be nice. It has already been commercially done: http://www.remotesoft.com/linker/ The question is, could it be done as an open-source project for mono - on all supported platforms? Regards, -- Vladimir Vlad# Lushnikov http://www.vladsharp.com - Poetry, programming: all in one day's blog ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Native compiler
Vladimir Lushnikov wrote: Hello, Before you say anything, no I am not talking about a GCC frontend for Mono, something akin to GCJ for Java. But compilation, native compilation would be nice. It has already been commercially done: http://www.remotesoft.com/linker/ The question is, could it be done as an open-source project for mono - on all supported platforms? The question is: isn't a similar feature almost there? Have a look at mkbundle (man mkbundle) and at the AOT runtime support. Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] problem with mono 1.1.12.1
Hello, I have a program will use Datasets and run fine with mono 1.1.9 compiled with gmcs, but with 1.1.12.1 throw an exception System.NotImplementedException, the same app compiled with mcs not fail. This piece of code fail when run if compiled with gmcs //* gmcs -warn:4 Example10.cs -r:System.Data -r:Npgsql */ using System; using System.Data; using Npgsql; /* CREATE TABLE table2( field_int2 int2, field_timestamp timestamp, field_numeric numeric ); */ public class Example10 { public static void Main() { string strCon = Server=localhost;+ User Id=postgres;+ Password=;+ Database=tests;; NpgsqlConnection conn = new NpgsqlConnection(strCon); conn.Open(); NpgsqlDataAdapter da = new NpgsqlDataAdapter(); DataSet ds = new DataSet(); string strCommand = SELECT * FROM table2 WHERE 1=2; NpgsqlCommand selCommand = new NpgsqlCommand(strCommand,conn); selCommand.CommandType = CommandType.Text; strCommand = INSERT INTO table2 + (field_int2,field_timestamp,field_numeric) + VALUES (:a, :b, :c); NpgsqlCommand insCommand = new NpgsqlCommand(strCommand,conn); insCommand.Parameters.Add (new NpgsqlParameter(a, DbType.Int16)); insCommand.Parameters.Add (new NpgsqlParameter(b, DbType.DateTime)); insCommand.Parameters.Add (new NpgsqlParameter(c, DbType.Decimal)); insCommand.Parameters[0].Direction = insCommand.Parameters[1].Direction = insCommand.Parameters[2].Direction = ParameterDirection.Input; insCommand.Parameters[0].SourceColumn = field_int2; insCommand.Parameters[1].SourceColumn = field_timestamp; insCommand.Parameters[2].SourceColumn = field_numeric; da.SelectCommand = selCommand; da.InsertCommand = insCommand; da.Fill(ds,table2); DataTable dt = ds.Tables[table2]; DataRow dr = dt.NewRow(); dr[field_int2] = 4; dr[field_timestamp] = new DateTime(2003, 03, 03, 14, 0, 0); dr[field_numeric] = 7.3M; dt.Rows.Add(dr); da.Update(ds,table2); conn.Close(); } } Output is: Unhandled Exception: System.NotImplementedException: The requested feature is not implemented. in 0x0001d System.Data.Common.DbDataAdapter:get_SelectCommand () in 0x0001a System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet dataSet, System.String srcTable) in (wrapper remoting-invoke-with-check) System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet,string) in 0x0031e Example10:Main () Any ideas? Thanks. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] problem with mono 1.1.12.1
mcs uses .net 1.1 profile as default. gmcs uses .net 2.0 profile as default. It looks like to be a regression in order to stub out methods and properties to support ADO.NET 2.0.http://svn.myrealbox.com/viewcvs/trunk/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs?rev=53301view=markupPlease file a bug report at http://bugzilla.ximian.com/Joe Audettementioned this earlier in an email with a subject of "ASP.NET 2.0 databinding to a DropDwonList not implemented". He also blogged about this problem on Monologue at http://www.joeaudette.com/Default.aspx?pageid=101cartuchoGL [EMAIL PROTECTED] wrote: Hello,I have a program will use Datasets and run fine with mono 1.1.9 compiled with gmcs, but with1.1.12.1 throw an exception System.NotImplementedException, the same app compiled with mcs not fail.This piece of code fail when run if compiled with gmcs//* gmcs -warn:4 Example10.cs -r:System.Data -r:Npgsql */using System;using System.Data;using Npgsql;/*CREATE TABLE table2(field_int2 int2,field_timestamp timestamp,field_numeric numeric);*/public class Example10 {public static void Main() { string strCon ="Server=localhost;"+"User Id=postgres;"+"Password=;"+"Database=tests;";NpgsqlConnection conn = new NpgsqlConnection(strCon);conn.Open();NpgsqlDataAdapter da = new NpgsqlDataAdapter();DataSet ds = new DataSet();string strCommand = "SELECT * FROM table2 WHERE 1=2";NpgsqlCommand selCommand = new NpgsqlCommand(strCommand,conn);selCommand.CommandType = CommandType.Text;strCommand = "INSERT INTO table2 "+"(field_int2,field_timestamp,field_numeric) "+"VALUES (:a, :b, :c)";NpgsqlCommand insCommand = new NpgsqlCommand(strCommand,conn);insCommand.Parameters.Add(new NpgsqlParameter("a", DbType.Int16));insCommand.Parameters.Add(new NpgsqlParameter("b", DbType.DateTime));insCommand.Parameters.Add(new NpgsqlParameter("c", DbType.Decimal));insCommand.Parameters[0].Direction =insCommand.Parameters[1].Direction =insCommand.Parameters[2].Direction =ParameterDirection.Input;insCommand.Parameters[0].SourceColumn ="field_int2";insCommand.Parameters[1].SourceColumn ="field_timestamp";insCommand.Parameters[2].SourceColumn ="field_numeric";da.SelectCommand = selCommand;da.InsertCommand = insCommand;da.Fill(ds,"table2");DataTable dt = ds.Tables["table2"];DataRow dr = dt.NewRow();dr["field_int2"] = 4;dr["field_timestamp"] = new DateTime(2003, 03, 03, 14, 0, 0);dr["field_numeric"] = 7.3M;dt.Rows.Add(dr);da.Update(ds,"table2");conn.Close();}}Output is:Unhandled Exception: System.NotImplementedException: The requested feature is not implemented.in 0x0001d System.Data.Common.DbDataAdapter:get_SelectCommand ()in 0x0001a System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet dataSet, System.String srcTable)in (wrapper remoting-invoke-with-check) System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet,string)in 0x0031e Example10:Main ()Any ideas?Thanks.___Mono-devel-list mailing listMono-devel-list@lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-devel-list Yahoo! Photos Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] problem with mono 1.1.12.1
Daniel Morgan wrote: mcs uses .net 1.1 profile as default. gmcs uses .net 2.0 profile as default. It looks like to be a regression in order to stub out methods and properties to support ADO.NET 2.0. http://svn.myrealbox.com/viewcvs/trunk/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs?rev=53301view=markup http://svn.myrealbox.com/viewcvs/trunk/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs?rev=53301view=markup Please file a bug report at http://bugzilla.ximian.com/ Done bug # 77105 Joe Audette mentioned this earlier in an email with a subject of ASP.NET 2.0 databinding to a DropDwonList not implemented. He also blogged about this problem on Monologue at _http://www.joeaudette.com/Default.aspx?pageid=101_ */cartuchoGL [EMAIL PROTECTED]/* wrote: Hello, I have a program will use Datasets and run fine with mono 1.1.9 compiled with gmcs, but with 1.1.12.1 throw an exception System.NotImplementedException, the same app compiled with mcs not fail. This piece of code fail when run if compiled with gmcs //* gmcs -warn:4 Example10.cs -r:System.Data -r:Npgsql */ using System; using System.Data; using Npgsql; /* CREATE TABLE table2( field_int2 int2, field_timestamp timestamp, field_numeric numeric ); */ public class Example10 { public static void Main() { string strCon = Server=localhost;+ User Id=postgres;+ Password=;+ Database=tests;; NpgsqlConnection conn = new NpgsqlConnection(strCon); conn.Open(); NpgsqlDataAdapter da = new NpgsqlDataAdapter(); DataSet ds = new DataSet(); string strCommand = SELECT * FROM table2 WHERE 1=2; NpgsqlCommand selCommand = new NpgsqlCommand(strCommand,conn); selCommand.CommandType = CommandType.Text; strCommand = INSERT INTO table2 + (field_int2,field_timestamp,field_numeric) + VALUES (:a, :b, :c); NpgsqlCommand insCommand = new NpgsqlCommand(strCommand,conn); insCommand.Parameters.Add (new NpgsqlParameter(a, DbType.Int16)); insCommand.Parameters.Add (new NpgsqlParameter(b, DbType.DateTime)); insCommand.Parameters.Add (new NpgsqlParameter(c, DbType.Decimal)); insCommand.Parameters[0].Direction = insCommand.Parameters[1].Direction = insCommand.Parameters[2].Direction = ParameterDirection.Input; insCommand.Parameters[0].SourceColumn = field_int2; insCommand.Parameters[1].SourceColumn = field_timestamp; insCommand.Parameters[2].SourceColumn = field_numeric; da.SelectCommand = selCommand; da.InsertCommand = insCommand; da.Fill(ds,table2); DataTable dt = ds.Tables[table2]; DataRow dr = dt.NewRow(); dr[field_int2] = 4; dr[field_timestamp] = new DateTime(2003, 03, 03, 14, 0, 0); dr[field_numeric] = 7.3M; dt.Rows.Add(dr); da.Update(ds,table2); conn.Close(); } } Output is: Unhandled Exception: System.NotImplementedException: The requested feature is not implemented. in 0x0001d System.Data.Common.DbDataAdapter:get_SelectCommand () in 0x0001a System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet dataSet, System.String srcTable) in (wrapper remoting-invoke-with-check) System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet,string) in 0x0031e Example10:Main () Any ideas? Thanks. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list Yahoo! Photos Ring in the New Year with Photo Calendars http://us.rd.yahoo.com/mail_us/taglines/photos/*http://pg.photos.yahoo.com/ph//page?.file=calendar_splash.html.dir=. Add photos, events, holidays, whatever. ___ 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.Xml.Serialization.XmlAttributes fixes
Update: The XmlDefaultValue change seems to cause regressions in the 2.0 profile after all. I'll verify and fix these regressions, and post an updated patch. Gert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gert Driesen Sent: dinsdag 27 december 2005 14:33 To: [EMAIL PROTECTED] Subject: [Mono-dev] [PATCH] System.Xml.Serialization.XmlAttributes fixes Hi, The attached patch fixes the following issues with System.Xml.Serialization.XmlAttributes: - If XmlIgnoreAttribute is applied, do not process any other attributes. - In 2.0 profile, XmlDefaultValue must be null by default. Both fixes are accompanied by unit tests, and have been tested on Mono 1.0/2.0 profile and MS.NET 1.1/2.0. Is it ok commit these changes ? Gert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] [PATCH] Bug in X509Chain?
Hi Sebastien. Sorry for the delay, but I have updated my bugg report #76279 - CERT_E_CHAINING problem for server certificate now with an updated recreation procedure. To be able to reproduce the problem You have to create the certs with openssl (on Linux). The procedure for that is well documented. BTW. I will be off my project now (for some time?) so I may not be able to answer any questions. I hope You will be able to recreate the problem anyhow. BTW 2. On the server i run Linux Fedora core 3 and my Mono version is 1.9.1. Happy New Year. Yngve Zackrisson Mobila-Kontoret / CK Management AB. On Thu, 2005-12-08 at 20:36, Yngve Zackrisson wrote: On Thu, 2005-12-08 at 14:04, Sebastien Pouliot wrote: Hello Yngve, On Thu, 2005-12-08 at 10:25 +0100, Yngve Zackrisson wrote: This problem seems similar to an issue I have reported on Bugzilla (#76279 - CERT_E_CHAINING problem for server certificate). That's very possible. Vincent problem seems to come from how it's being used and not the certificate themselves (which could explain why I couldn't replicate #76279). Could you try the patch and update the bug report with your findings ? Hello Sebastien I can try ... . As You might remember I generate my certificates with openssl. I have the procedure for certificate generation well documented now an I have 2 configuration files for each of the client and server certs. You can ether get an updated version of this (and the test programs) or I can create the certs for You - but then I need the CN for Your test client machine and Your test server machine. The test client machine should be a Win32 .NET 1.1 client and the test server machine should be a Linux Mono (1.1.9) server for my testcase to work. Regards // Yngve Zackrisson. // // Mobila-Kontoret / CK Management AB. Thanks. The request is done through HTTPS. Many certificate checks are protocol specific (e.g. SSL, HTTPS) but the chaining is, currently, identical for all purpose. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Native compiler
Hello, That doesn't work on Windows, and as much as we want to shy away from the fact, 90% of desktop users use Windows. mono --aot doesn't work either on Windows, complains about as not being there. The linker you pointed to is not a native compiler it is merely a tool that embeds your application and your runtime. mkbundle can do that just fine. You need to install as from cygwin. Miguel. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Open discussion for mono setuid per vhost
So far I've been discussing this offlist with another Mono/.Net developer... I'm interested in open/honest feedback or code snippets which might help accomplish this.. So far there are two ways which seem reasonable so far and please pardon me if I'm missing some points.. 1) Mono wrapper Apache --- mod_mono -- mono-server-path to wrapper -- mod-mono-server The wrapper is s+ (sticky bit) and owned by root.. It then calls the mod-mono-server with setuid as the desired user.. 2) Patching mod_mono directly.. Apache --- mod_mono_patched -- mod-mono-server With the 2nd approach I'm thinking I have to compile mono with -DBIG_SECURITY_HOLE (have to love the naming convention) and start apache as root.. and then let mono setuid during the fork.. This has two big disadvantages that glare at me.. -DBIG_SECURITY_HOLE is named appropriately, but is owned by root and setting +s really any different.. Also then I have to maintain a patchset that is off mainline unless it's somehow contributed upstream.. (Is the -DBIG_SECURITY_HOLE and starting as root a must?) I'm really not seeing a maintainable way to get around the vhosts being in their own environment issue.. (Just when I thought I had it whipped something didn't seem right.) the end goal is to provide the following.. a) Each vhost being under it's own user b) If a vhost crashes it automagically restarts c) Allows apache to serve the static content (keep some of the load off XSP for things like images, css and etc...) d) Minimizing memory overhead impact if the vhost counts goes into the hundreds.. e) Not using proxy (On startup which even with -aot on everything seems to take the load average to some really high levels if you start a lot of mod-mono-servers) Any feedback is appreciated.. C. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Open discussion for mono setuid per vhost
Christopher, So far I've been discussing this offlist with another Mono/.Net developer... I'm interested in open/honest feedback or code snippets which might help accomplish this.. So far there are two ways which seem reasonable so far and please pardon me if I'm missing some points.. 1) Mono wrapper Apache --- mod_mono -- mono-server-path to wrapper -- mod-mono-server The wrapper is s+ (sticky bit) and owned by root.. It then calls the mod-mono-server with setuid as the desired user.. This is quite secure, but it probably won't work from scratch due to the unix socket used for the mono_mono - mod-mono-server communication. 2) Patching mod_mono directly.. Apache --- mod_mono_patched -- mod-mono-server With the 2nd approach I'm thinking I have to compile mono with -DBIG_SECURITY_HOLE (have to love the naming convention) and start apache as root.. and then let mono setuid during the fork.. This has two big disadvantages that glare at me.. -DBIG_SECURITY_HOLE is named appropriately, but is owned by root and setting +s really any different.. Also then I have to maintain a patchset that is off mainline unless it's somehow contributed upstream.. (Is the -DBIG_SECURITY_HOLE and starting as root a must?) Yes, it is. I'm really not seeing a maintainable way to get around the vhosts being in their own environment issue.. (Just when I thought I had it whipped something didn't seem right.) the end goal is to provide the following.. a) Each vhost being under it's own user b) If a vhost crashes it automagically restarts c) Allows apache to serve the static content (keep some of the load off XSP for things like images, css and etc...) d) Minimizing memory overhead impact if the vhost counts goes into the hundreds.. e) Not using proxy FastCGI + Apache SuEXEC might be a solution as well, at least it covers a-e. It is used for PHP by serious mass hosters. However, it requires a new fastcgi-mono-server, which has to be developed. (On startup which even with -aot on everything seems to take the load average to some really high levels if you start a lot of mod-mono-servers) Gonzalo is aware of this issue. Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-list] Killing xsp softly
Hello! Is there a way to kill XSP softly? In a way that XSP will still call Application_End? Right now, I am doing: kill -9 XSP_PID BR -- Pedro Santos www.psantos.net ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] RE: mod_mono + httpd
Good Day Could you please tell me if it is possible to get mono running on an httpd webserver not running apache? Ronald Mundell Information Security Analyst/Developer Security Innovation and Consulting NedBank Ltd. Nedbank Limited Reg No 1951/09/06Directors: WAM Clewlow (Chairman) Prof MM Katz (Vice-chairman) ML Ndlovu (Vice-chairman) TA Boardman (Chief Executive)CJW Ball MWT Brown RG Cottrell BE Davison N Dennis (British) MA Enus-Brey Prof B de L Figaji RM Head (British)RJ Khoza JB Magwaza ME Mkwanazi JVF Roberts (British) CML Savage GT Serobe JH Sutcliffe (British)Company Secretary: GS Nienaber 16.08.2005 This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution of or taking any action based on this information is prohibited. Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or for its effect on any electronic device of the recipient. If verification of this email or any attachment is required, please request a hard-copy version. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Slackware install
I have taken a couple runs at Slackware 10.2 / dropline and Mono... Anyone got a hand up on getting this running? Thanks T ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Fw: [Mono-list] Configuring virtualhost to use vb code
Belive me that i'll love to help but i have no idea how can i help! Jorge Bastos - Original Message - From: Jochen Wezel - CompuMaster GmbH To: Jorge Bastos ; Mono-list@lists.ximian.com Cc: Gonzalo Paniagua Javier Sent: Friday, December 23, 2005 1:20 PM Subject: AW: [Mono-list] Configuring virtualhost to use vb code Hi Jorge, So, it's not a not a configuration but an MonoBasic compiler problem. You might solve this issue when you help in development of the MonoBasic (MBAS)compiler. Please remind: MonoBASIC is still alpha code, no beta, no stable. If you need to execute web applications for production use, my current recommendation is to use C# or Microsoft.Windows. Regards Jochen Von: Jorge Bastos [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 23. Dezember 2005 13:59An: Jochen Wezel - CompuMaster GmbH; Mono-list@lists.ximian.comBetreff: Fw: [Mono-list] Configuring virtualhost to use vb code Yes, using c# is works with the virtualhost configured to use xsp2. Jorge Bastos - Original Message - From: Jochen Wezel - CompuMaster GmbH To: Jorge Bastos Sent: Friday, December 23, 2005 12:42 PM Subject: AW: [Mono-list] Configuring virtualhost to use vb code does it works when you change the language to C# ? Von: Jorge Bastos [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 23. Dezember 2005 13:41An: ; [EMAIL PROTECTED]; Jochen Wezel - CompuMaster GmbHBetreff: Fw: [Mono-list] Configuring virtualhost to use vb code Jochen thanks for your reply. I looked at apache logs and i have this: Could i be missing something? This /usr/local/lib/mono/1.0/mbas.exe maybe shouldn't be 2.0? I think my virtualhost setup to use xsp2 is ok, correct me if im wrong. So.. do you thing there anything else i can do or this is a bug? I'm sending this reply to Gonzalo directly so that i may help me :) So many thanks and i hope you can help me. Jorge Bastos ** (/usr/local/lib/mono/1.0/mbas.exe:7555): WARNING **: The class System.Collections.Generic.IEnumerable`1 could not be loaded, used in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 =Got a SIGSEGV while executing native code. This usually indicatesa fatal error in the mono runtime or one of the native librariesused by your application.= Stacktrace: in 0x4 (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)in 0xffe4 (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)in 0xc System.Reflection.Assembly:GetTypes ()in 0x91 Mono.MonoBASIC.TypeManager:AddAssembly (System.Reflection.Assembly)in 0xfaa2 (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_Assembly (System.Reflection.Assembly)in 0x11a Mono.GetOptions.Useful.CommonCompilerOptions:LoadAssembly (Mono.GetOptions.Useful.AssemblyAdder,string,int,bool)in 0xc7 Mono.GetOptions.Useful.CommonCompilerOptions:LoadReferencedAssemblies (Mono.GetOptions.Useful.AssemblyAdder)in 0x3f Mono.Languages.Driver:LoadReferencedAssemblies ()in 0x128147 (wrapper delegate-invoke) System.MulticastDelegate:invoke_bool ()in 0xdf Mono.Languages.Driver:Execute (string[])in 0x27 Mono.Languages.Driver:Main (string[])in 0x50b51147 (wrapper runtime-invoke) System.Object:runtime_invoke_int_string[] (object,intptr,intptr,intptr) Native stacktrace: /usr/local/bin/mono(mono_handle_native_sigsegv+0x7c) [0x8146eac] /usr/local/bin/mono [0x81176db] [0xe440] /usr/local/bin/mono [0x8092494] /usr/local/bin/mono(mono_type_create_from_typespec_full+0x160) [0x8094f00] /usr/local/bin/mono [0x80ea371] /usr/local/bin/mono [0x80ea525] /usr/local/bin/mono(mono_class_get_full+0x15) [0x80ea665] /usr/local/bin/mono(mono_metadata_interfaces_from_typedef_full+0x149) [0x8093909] /usr/local/bin/mono [0x80eac87] /usr/local/bin/mono [0x80ea4e5] /usr/local/bin/mono [0x80d813e] /usr/local/bin/mono [0x80d8456] [0xb74554db] [0xb7455495] [0xb7430aa2] [0xb74309f9] [0xb7430453] [0xb7430168] [0xb7430050] [0xb7454ca0] [0xb757cdb0] [0xb757c970] [0xb757c874] /usr/local/bin/mono(mono_runtime_exec_main+0x80) [0x80cd990] /usr/local/bin/mono(mono_runtime_run_main+0x12f) [0x80d038f] /usr/local/bin/mono(mono_main+0xeef) [0x805d5ff] /lib/tls/libc.so.6(__libc_start_main+0xd0) [0xb7d78ed0] /usr/local/bin/mono [0x805c1b1] - Original Message - From: Jochen Wezel - CompuMaster GmbH To: Jorge Bastos ; Mono-list@lists.ximian.com Cc: Gonzalo Paniagua Javier Sent: Friday, December 23, 2005 10:58 AM Subject: AW: [Mono-list] Configuring virtualhost to use vb code In some strange situation when the compiler breaks, the (temporary) dll doesn't get written. The 404 File not found exception is misleading in that case, since the ASPX file is there. Better it would be a 500 Compilation error. Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Jorge
[Mono-list] mod_mono + httpd
Good Day Could you please tell me if it is possible to get mono running on an httpd webserver not running apache? Ronald Mundell Information Security Analyst/Developer Security Innovation and Consulting NedBank Ltd. Nedbank Limited Reg No 1951/09/06Directors: WAM Clewlow (Chairman) Prof MM Katz (Vice-chairman) ML Ndlovu (Vice-chairman) TA Boardman (Chief Executive)CJW Ball MWT Brown RG Cottrell BE Davison N Dennis (British) MA Enus-Brey Prof B de L Figaji RM Head (British)RJ Khoza JB Magwaza ME Mkwanazi JVF Roberts (British) CML Savage GT Serobe JH Sutcliffe (British)Company Secretary: GS Nienaber 16.08.2005 This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution of or taking any action based on this information is prohibited. Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or for its effect on any electronic device of the recipient. If verification of this email or any attachment is required, please request a hard-copy version. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] RE: mod_mono + httpd
Possible? Yes. You can use XSP as a standalone server.If you really wish to use another webserver you'll have to get/do a plugin to that server, something similar to mod_mono.I think it would be very cool if we had a component to IIS at least. On 12/27/05, Mundell, R. (Ronald) [EMAIL PROTECTED] wrote: Good Day Could you please tell me if it is possible to get mono running on an httpd webserver not running apache? Ronald Mundell Information Security Analyst/Developer Security Innovation and Consulting NedBank Ltd. Nedbank Limited Reg No 1951/09/06Directors: WAM Clewlow (Chairman) Prof MM Katz (Vice-chairman) ML Ndlovu (Vice-chairman) TA Boardman (Chief Executive)CJW Ball MWT Brown RG Cottrell BE Davison N Dennis (British) MA Enus-Brey Prof B de L Figaji RM Head (British)RJ Khoza JB Magwaza ME Mkwanazi JVF Roberts (British) CML Savage GT Serobe JH Sutcliffe (British)Company Secretary: GS Nienaber 16.08.2005 This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution of or taking any action based on this information is prohibited. Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or for its effect on any electronic device of the recipient. If verification of this email or any attachment is required, please request a hard-copy version. ___Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list-- Alexandre Gomes, Portugal ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Re: mod_mono + httpd
Mundell, R. (Ronald) wrote: Could you please tell me if it is possible to get mono running on an httpd webserver not running apache? Well, mod_mono is an apache module, so it won't work on an httpd webserver not running apache. You may have a look at XSP, mono's own simple HTTP server and ASP.NET host. Robert Ronald Mundell Information Security Analyst/Developer Security Innovation and Consulting NedBank Ltd. Nedbank Limited Reg No 1951/09/06 Directors: WAM Clewlow (Chairman) Prof MM Katz (Vice-chairman) ML Ndlovu (Vice-chairman) TA Boardman (Chief Executive) CJW Ball MWT Brown RG Cottrell BE Davison N Dennis (British) MA Enus-Brey Prof B de L Figaji RM Head (British) RJ Khoza JB Magwaza ME Mkwanazi JVF Roberts (British) CML Savage GT Serobe JH Sutcliffe (British) Company Secretary: GS Nienaber 16.08.2005 This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution of or taking any action based on this information is prohibited. Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or for its effect on any electronic device of the recipient. If verification of this email or any attachment is required, please request a hard-copy version. ___ 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] Mono.Data.SqliteClient always report text as DataTypeName
* Aaron Bockover: Internally in sqlite, everything is stored as a string, regardless of what type a column was assigned during table creation. This used to be true for SQLite 2. SQLite 3 does store limited type information. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Encoding email message ??
Hi, I’m having similar problem. I have written my own mail server and encoding is killing me. If messages are in Unicode everything is ok, but in case of any other encoding characters just disappear. :-( If you will find some useful information how to work around this problem, please let me know. In my opinion problem is in the way how I use System.Net.Sockets.NetworkStream Salvatore Scarciglia wrote: Hello ! Using the System.Net.Sockets.TcpClient i'm reading my POP3 inbox mail; I want to convert (encode ??) the message in HTML and render it in a gtkhtml widget created at runtime. It's all ok except the encoding phase. Ho can I do ? Is there a class in the framework that can help me? Thanx Salvatore ___ 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
[Mono-list] Re: Encoding email message ??
Hi, Mail message headers use to have a Content-Type which also contains the encoding of the message. So you have to parse the headers first, then use the specified encoding to decode the message. Robert I’m having similar problem. I have written my own mail server and encoding is killing me. If messages are in Unicode everything is ok, but in case of any other encoding characters just disappear. :-( If you will find some useful information how to work around this problem, please let me know. In my opinion problem is in the way how I use System.Net.Sockets.NetworkStream Salvatore Scarciglia wrote: Hello ! Using the System.Net.Sockets.TcpClient i'm reading my POP3 inbox mail; I want to convert (encode ??) the message in HTML and render it in a gtkhtml widget created at runtime. It's all ok except the encoding phase. Ho can I do ? Is there a class in the framework that can help me? Thanx Salvatore ___ 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] RE: mod_mono + httpd
Alexandre Miguel Pedro Gomes wrote: Possible? Yes. You can use XSP as a standalone server. If you really wish to use another webserver you'll have to get/do a plugin to that server, something similar to mod_mono. I think it would be very cool if we had a component to IIS at least. I've been looking around about this same thing.. lighttpd (ask lighty) looks interesting for the performance side of things.. There are a few features or modules that aren't implemented yet.. However, if you're just doing a standalone server with all trusted sites it could maybe pay off two fold.. 1) claims of better performance (no comment as I've not tested it yet.) 2) utilizing a distributed backend for dynamic pages.. (currently they have PHP doing this, but I don't see much reason why it couldn't apply to mono as well.) 3) If nothing else it does produce a much smaller memory footprint (ymmv and it depends on how well you've tuned apache) If someone is sincerely interested in a lighty module for Mono let me know and I'll investigate it further.. Miguel Why IIS? Cheers, C. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] RE: mod_mono + httpd
Why IIS?Currently, afaik, there are two major webservers, one for Linux (Apache) other for Windows (IIS). Of couse for windows there is the real .Net, but mono runs on windows, but when talking about web and mono you have only two choises XSP or Apache. What about those that have old applications in ASP3 and wish to migrate/use to mono?I see many people making a point of view close to: Windows-Closed Source and Linux-Open Source. Isn't there a segment in the market that wish to use Windows but migrate smothly to opensource? The easiest step is to make their applications run on opensource software, on windows, and only then move to linux. Again, the example of ASP3 that doesn't run completly on Linux. Also, mono has only implemented XSP and modmono, that seems pretty unsuficient to me. If look closely, and/or talk to mono debugger mantainer, you'll see the debugger is under a large refactoring process because it, initially, was done with one frontend in mind, when they started to integrate with other frontends (MonoDevelop for instance) they found that many things weren't well designed to support that. I suppose that if mono openned a few more fronts in web servers the same could happen. On 12/27/05, Christopher Bergström [EMAIL PROTECTED] wrote: Alexandre Miguel Pedro Gomes wrote: Possible? Yes. You can use XSP as a standalone server. If you really wish to use another webserver you'll have to get/do a plugin to that server, something similar to mod_mono. I think it would be very cool if we had a component to IIS at least.I've been looking around about this same thing.. lighttpd (ask lighty)looks interesting for the performance side of things.. There are a few features or modules that aren't implemented yet.. However, if you'rejust doing a standalone server with all trusted sites it could maybe payoff two fold..1) claims of better performance (no comment as I've not tested it yet.) 2) utilizing a distributed backend for dynamic pages.. (currently theyhave PHP doing this, but I don't see much reason why it couldn't applyto mono as well.)3) If nothing else it does produce a much smaller memory footprint (ymmv and it depends on how well you've tuned apache)If someone is sincerely interested in a lighty module for Mono let meknow and I'll investigate it further..Miguel Why IIS?Cheers,C. ___Mono-list maillist-Mono-list@lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-list -- Alexandre Gomes, Portugal ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] C/C++ Compiler for Mono environment?
I've googled, but I don't find any info on C or C++ compilers that target the CLR. I did find a couple of partial results, but nothing that actually seems to work. Is there a working C/C++ Compiler for Mono? (Other than MSFT VS) Does anyone know of work in progress on such a beast? Thanks for the info, Grant. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] C/C++ Compiler for Mono environment?
* Grant Hess [EMAIL PROTECTED] [051227 21:07], scribbled: I've googled, but I don't find any info on C or C++ compilers that target the CLR. I did find a couple of partial results, but nothing that actually seems to work. Is there a working C/C++ Compiler for Mono? (Other than MSFT VS) Not strictly mono, but also open source project implementing the .Net runtime and tools, Portable.Net has a C compiler they claim works: http://www.dotgnu.org/pnet.html I haven't ever used it personally nor looked at it, but it probably works fine when compiling C to IL. It won't run under mono, though - you need the pnet runtime. Another option you have is hidden at svn://svn.myrealbox.com/source/trunk/lcc which is a retargettable C compiler which is described in the A Retargettable C compiler: Design and Implementation and which can emit CIL. Not sure how good/buggy the output is, as I've never used lcc either. hope that helps, marek ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Re: Encoding email message ??
Sure, but to get to those headers I must already have System.Net.Sockets.NetworkStream with some encoding. Are you sure it is possible to dynamically change encoding of NetworkStream? Robert Jordan wrote: Hi, Mail message headers use to have a Content-Type which also contains the encoding of the message. So you have to parse the headers first, then use the specified encoding to decode the message. Robert Im having similar problem. I have written my own mail server and encoding is killing me. If messages are in Unicode everything is ok, but in case of any other encoding characters just disappear. :-( If you will find some useful information how to work around this problem, please let me know. In my opinion problem is in the way how I use System.Net.Sockets.NetworkStream Salvatore Scarciglia wrote: Hello ! Using the System.Net.Sockets.TcpClient i'm reading my POP3 inbox mail; I want to convert (encode ??) the message in HTML and render it in a gtkhtml widget created at runtime. It's all ok except the encoding phase. Ho can I do ? Is there a class in the framework that can help me? Thanx Salvatore ___ 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 ___ 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] RE: mod_mono + httpd
I could write a really long post with lots of personal viewpoints.. However, I think it's summed up best by saying two things. a) The market will drive both oss and private development in a direction that suites the needs of the time.. So whether there is a market for IIS + ISAPI.dll + Mono I can't comment as I haven't seen any data.. b) One of the beauties behind oss is that if you don't like it.. You always have chance to make it better.. I find Mono to do almost exactly what I need and quite well at that.. For the parts that maybe are insufficient right now I'm choosing to work around it and make it better as best I can or simply wait.. While Apache may have a majority market share with Linux I'd say it's certainly not the only web server available.. If you really need Mono + some other web server then I'd say look at building your own modules as it's certainly possible and you even have the source to a working one currently.. Zeus (commercial) Lighttpd (oss) Tux (oss set of patches for kernel) There are others, but this is what comes to mind Good luck! C. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Re: Encoding email message ??
Roman, Sure, but to get to those headers I must already have System.Net.Sockets.NetworkStream with some encoding. Are you sure it is possible to dynamically change encoding of NetworkStream? NetworkStream doesn't have an encoding. It's transparent. Robert Robert Jordan wrote: Hi, Mail message headers use to have a Content-Type which also contains the encoding of the message. So you have to parse the headers first, then use the specified encoding to decode the message. Robert Im having similar problem. I have written my own mail server and encoding is killing me. If messages are in Unicode everything is ok, but in case of any other encoding characters just disappear. :-( If you will find some useful information how to work around this problem, please let me know. In my opinion problem is in the way how I use System.Net.Sockets.NetworkStream Salvatore Scarciglia wrote: Hello ! Using the System.Net.Sockets.TcpClient i'm reading my POP3 inbox mail; I want to convert (encode ??) the message in HTML and render it in a gtkhtml widget created at runtime. It's all ok except the encoding phase. Ho can I do ? Is there a class in the framework that can help me? Thanx Salvatore ___ 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 ___ 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 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] RE: mod_mono + httpd
Thank you for the information. I am currently using on a redhat 9 Linux box. I have installed mono and xsp, but were unable to install mod_mono due to that Apache is not installed on the box. Where can I get information about writing a plug-in? Ronald Mundell Information Security Analyst/Developer Security Innovation and Consulting NedBank Ltd. From: Alexandre Miguel Pedro Gomes [mailto:[EMAIL PROTECTED] Sent: 27 December 2005 03:30 PM To: Mundell, R. (Ronald) Cc: mono-list@lists.ximian.com; [EMAIL PROTECTED] Subject: Re: [Mono-list] RE: mod_mono + httpd Possible? Yes. You can use XSP as a standalone server. If you really wish to use another webserver you'll have to get/do a plugin to that server, something similar to mod_mono. I think it would be very cool if we had a component to IIS at least. On 12/27/05, Mundell, R. (Ronald) [EMAIL PROTECTED] wrote: Good Day Could you please tell me if it is possible to get mono running on an httpd webserver not running apache? Ronald Mundell Information Security Analyst/Developer Security Innovation and Consulting NedBank Ltd. Nedbank Limited Reg No 1951/09/06 Directors: WAM Clewlow (Chairman) Prof MM Katz (Vice-chairman) ML Ndlovu (Vice-chairman) TA Boardman (Chief Executive) CJW Ball MWT Brown RG Cottrell BE Davison N Dennis (British) MA Enus-Brey Prof B de L Figaji RM Head (British) RJ Khoza JB Magwaza ME Mkwanazi JVF Roberts (British) CML Savage GT Serobe JH Sutcliffe (British) Company Secretary: GS Nienaber 16.08.2005 This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution of or taking any action based on this information is prohibited. Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or for its effect on any electronic device of the recipient. If verification of this email or any attachment is required, please request a hard-copy version. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- Alexandre Gomes, Portugal Nedbank Limited Reg No 1951/09/06Directors: WAM Clewlow (Chairman) Prof MM Katz (Vice-chairman) ML Ndlovu (Vice-chairman) TA Boardman (Chief Executive)CJW Ball MWT Brown RG Cottrell BE Davison N Dennis (British) MA Enus-Brey Prof B de L Figaji RM Head (British)RJ Khoza JB Magwaza ME Mkwanazi JVF Roberts (British) CML Savage GT Serobe JH Sutcliffe (British)Company Secretary: GS Nienaber 16.08.2005 This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution of or taking any action based on this information is prohibited. Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or for its effect on any electronic device of the recipient. If verification of this email or any attachment is required, please request a hard-copy version. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] RE: mod_mono + httpd
Good Day Thank you for the information. If possible could you give me more information regarding your suggestion? Ronald Mundell Information Security Analyst/Developer Security Innovation and Consulting NedBank Ltd. Date: Tue, 27 Dec 2005 20:09:37 +0200 From: Christopher Bergstr?m [EMAIL PROTECTED] Subject: Re: [Mono-list] RE: mod_mono + httpd Cc: mono-list@lists.ximian.com mono-list@lists.ximian.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Alexandre Miguel Pedro Gomes wrote: Possible? Yes. You can use XSP as a standalone server. If you really wish to use another webserver you'll have to get/do a plugin to that server, something similar to mod_mono. I think it would be very cool if we had a component to IIS at least. I've been looking around about this same thing.. lighttpd (ask lighty) looks interesting for the performance side of things.. There are a few features or modules that aren't implemented yet.. However, if you're just doing a standalone server with all trusted sites it could maybe pay off two fold.. 1) claims of better performance (no comment as I've not tested it yet.) 2) utilizing a distributed backend for dynamic pages.. (currently they have PHP doing this, but I don't see much reason why it couldn't apply to mono as well.) 3) If nothing else it does produce a much smaller memory footprint (ymmv and it depends on how well you've tuned apache) If someone is sincerely interested in a lighty module for Mono let me know and I'll investigate it further.. Miguel Why IIS? Cheers, C. Nedbank Limited Reg No 1951/09/06Directors: WAM Clewlow (Chairman) Prof MM Katz (Vice-chairman) ML Ndlovu (Vice-chairman) TA Boardman (Chief Executive)CJW Ball MWT Brown RG Cottrell BE Davison N Dennis (British) MA Enus-Brey Prof B de L Figaji RM Head (British)RJ Khoza JB Magwaza ME Mkwanazi JVF Roberts (British) CML Savage GT Serobe JH Sutcliffe (British)Company Secretary: GS Nienaber 16.08.2005 This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution of or taking any action based on this information is prohibited. Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or for its effect on any electronic device of the recipient. If verification of this email or any attachment is required, please request a hard-copy version. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] C/C++ Compiler for Mono environment?
I've googled, but I don't find any info on C or C++ compilers that target the CLR. I did find a couple of partial results, but nothing that actually seems to work. Is there a working C/C++ Compiler for Mono? (Other than MSFT VS) Do you need something that will compile C and C++ or just C? Are you looking something with capabilities like MS's compiler that can interface with both existing C++ libs and C# code and has IJW (it just works) marshaling? Not strictly mono, but also open source project implementing the .Net runtime and tools, Portable.Net has a C compiler they claim works: http://www.dotgnu.org/pnet.html I haven't ever used it personally nor looked at it, but it probably works fine when compiling C to IL. It won't run under mono, though - you need the pnet runtime. The assemblies produced by the Portable.NET C compiler will run under Mono once you install the OpenSystem.C.dll and libc.dll assemblies. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] C/C++ Compiler for Mono environment?
Thanks for the info, guys. Appreciated! --Grant. Marcus wrote: I've googled, but I don't find any info on C or C++ compilers that target the CLR. I did find a couple of partial results, but nothing that actually seems to work. Is there a working C/C++ Compiler for Mono? (Other than MSFT VS) Do you need something that will compile C and C++ or just C? Are you looking something with capabilities like MS's compiler that can interface with both existing C++ libs and C# code and has IJW (it just works) marshaling? C++ is probably needed. Being able to hook up with both C++ libs and C# assemblies would be good! As far as marshaling goes, I don't know yet. It depends on what direction my project goes. (It just works is 'USUALLY' a good thing anyway 8] ) Not strictly mono, but also open source project implementing the .Net runtime and tools, Portable.Net has a C compiler they claim works: http://www.dotgnu.org/pnet.html I haven't ever used it personally nor looked at it, but it probably works fine when compiling C to IL. It won't run under mono, though - you need the pnet runtime. The assemblies produced by the Portable.NET C compiler will run under Mono once you install the OpenSystem.C.dll and libc.dll assemblies. Cool. I have some other code that depends on Mono and I don't really want to mess with multiple environments. If I can gacutil these dlls into mono, that would be great. I need to double check their license to make sure it is compatible, but I'm almost certain that they are GPL'd. If so, that will work. Thanks again for the information. --Grant ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Re: Encoding email message ??
Sorry, wrong line from the code, I mean System.IO.StreamReader. System.Net.Sockets.TcpClient Server = null; System.Net.Sockets.NetworkStream NetStrm = null; System.IO.StreamReader RdStrm = null; Server = new System.Net.Sockets.TcpClient(MailFetchHost, 110); NetStrm = Server.GetStream(); RdStrm = new System.IO.StreamReader(NetStrm, Encoding.?); Robert Jordan wrote: Roman, Sure, but to get to those headers I must already have System.Net.Sockets.NetworkStream with some encoding. Are you sure it is possible to dynamically change encoding of NetworkStream? NetworkStream doesn't have an encoding. It's transparent. Robert Robert Jordan wrote: Hi, Mail message headers use to have a Content-Type which also contains the encoding of the message. So you have to parse the headers first, then use the specified encoding to decode the message. Robert Im having similar problem. I have written my own mail server and encoding is killing me. If messages are in Unicode everything is ok, but in case of any other encoding characters just disappear. :-( If you will find some useful information how to work around this problem, please let me know. In my opinion problem is in the way how I use System.Net.Sockets.NetworkStream Salvatore Scarciglia wrote: Hello ! Using the System.Net.Sockets.TcpClient i'm reading my POP3 inbox mail; I want to convert (encode ??) the message in HTML and render it in a gtkhtml widget created at runtime. It's all ok except the encoding phase. Ho can I do ? Is there a class in the framework that can help me? Thanx Salvatore ___ 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 ___ 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 ___ 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