From james at mansionfamily.plus.com Sun Jul 1 07:56:17 2007 From: james at mansionfamily.plus.com (James Mansion) Date: Sun, 01 Jul 2007 12:56:17 +0100 Subject: [Mono-list] MonoDevelop .deb for Feisty? Message-ID: <46879661.1080809@mansionfamily.plus.com> Anyone know of a repository that I can get more up to date mono bits and pieces for Feisty from? James From pierre.ostlund at gmail.com Sun Jul 1 07:57:18 2007 From: pierre.ostlund at gmail.com (=?ISO-8859-1?Q?Pierre_=D6stlund?=) Date: Sun, 1 Jul 2007 13:57:18 +0200 Subject: [Mono-list] MonoDevelop .deb for Feisty? In-Reply-To: <46879661.1080809@mansionfamily.plus.com> References: <46879661.1080809@mansionfamily.plus.com> Message-ID: <7c55a5ab0707010457q41f95892scb99748bf794a307@mail.gmail.com> I don't know of a repository unfortunately, but I use the debs available at http://www.getdeb.net/app.php?name=MonoDevelop and they work great. Make sure to remove the old monodevelop debs before installing to ease the installation. Thanks! Pierre ?stlund On 7/1/07, James Mansion wrote: > > Anyone know of a repository that I can get more up to date mono bits and > pieces for Feisty from? > > James > > _______________________________________________ > Mono-list maillist - Mono-list at 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/20070701/845025b9/attachment.html From makska at yandex.ru Sun Jul 1 14:12:43 2007 From: makska at yandex.ru (Maxim Karavaev) Date: Sun, 1 Jul 2007 22:12:43 +0400 (MSD) Subject: [Mono-list] Heavy loaded web-site again Message-ID: <4687EE9B.000005.01921@webmail13.yandex.ru> Hello! I've got some difficulties with heavy loaded web-site on mono (version 1.2.4, FreeBSD, Apache2). After several days of normal work, mod-mono-server produces exception (found in apache error_log): ** (/usr/lib/mono/1.0/mod-mono-server.exe:25855): WARNING **: CreateThread: error creating thread handle ** (/usr/lib/mono/2.0/mod-mono-server2.exe:25857): WARNING **: CreateThread: error creating thread handle Unhandled Exception: System.ExecutionEngineException: Couldn't create thread ** (/usr/lib/mono/1.0/mod-mono-server.exe:25855): WARNING **: CreateThread: error creating thread handle Unhandled Exception: System.ExecutionEngineException: Couldn't create thread After it mono web-site becomes unavailable. I need to stop apache, kill all mono process and start apache for getting web-site online again. Could any one tell me, what is the possible reason of this situation? It's not a lack of memory, because mod-mono process takes up just 500-800 Mb and OS have at least 1-2 Gb of free memory. Thanks a lot! Best wishes, Max Karavaev From rodolfo.campero at gmail.com Sun Jul 1 18:54:53 2007 From: rodolfo.campero at gmail.com (Rodolfo Campero) Date: Sun, 1 Jul 2007 19:54:53 -0300 Subject: [Mono-list] [ANN] nUML 0.4 released Message-ID: <183cc9f10707011554u5e65fb20l1a246a3b8c0cb58f@mail.gmail.com> Hello everybody, After eight months since our last release, we are pleased to announce a new version of nUML. nUML is a library for manipulating UML 2.0 (and MOF) models. It works with Microsoft(R) .NET Framework, Mono::, and DotGNU. Serialization to and from XMI 2.1 is supported. In this release (0.4), besides several bug fixes, you will find: - Improved interoperability with ArgoUML 0.24. An XSLT stylesheet to transform XMI 2.0 to XMI 1.2 is provided, thus exporting nUML files to ArgoUML format is now possible (the inverse operation was available in previous releases, and has been enhanced in this one.) - Implementation of the Templates package from UML 2.0 (attributes and serialization only). - More control over XMI production: object references can be serialized either as XML attributes (as before) or XML elements (new default option). - A working implementation of the Profiles package. See http://numl.sourceforge.net/index.php/Profiles_and_Stereotypes - New interfaces IModelDomain and IModelDomainProvider (in NUml.Xmi2), which allow to create model domains other than files. - More (even weirder!) stuff. Check the ChangeLog and RELNOTES files. If you were looking for a way to process your UML models with C#, this library is for you. Links: http://numl.sourceforge.net/index.php/Main_Page http://sourceforge.net/projects/numl/ http://sourceforge.net/project/showfiles.php?group_id=163831 [download page] Best regards, Rodolfo From rupanu.pal at rediffmail.com Mon Jul 2 06:29:41 2007 From: rupanu.pal at rediffmail.com (rupanu pal) Date: 2 Jul 2007 10:29:41 -0000 Subject: [Mono-list] newbie:help connecting with nysql 5.0 Message-ID: <1183234278.S.15344.3091.webmail5.rediffmail.com.old.1183372181.1819@webmail.rediffmail.com> hello there,       I have just got started with mono and having a trouble connecting with Mysql 5.0..It seems it can\'t find the driver needed.I have mysql connector/.net 1.0.9....but can\'t get that working.I read somewhere mono needs 1.0.7 of that connector ,but I can\'t find that version anywhere.Can anyone please tell me which driver to use and a sample code snippet to connect to mysql.Now I am using the sample snippet given in the MONO official site :-****************************************************************************************using MySql.Data.MySqlClient;using MySql.Data;public class Default : Page    {                public virtual void onButtonClick(object sender, EventArgs e)        {            string connectionString =\"Server=localhost;\" + \"Database=test;\" + \"User ID=root; \" + \"Password=mysql;\" + \"Pooling=false\";       IDbConnection dbcon;       dbcon = new MySqlConnection(connectionString);       dbcon.Open();       IDbCommand dbcmd = dbcon.CreateCommand();             string sql =           \"SELECT name, age \" + \"FROM table1\";       dbcmd.CommandText = sql;       IDataReader reader = dbcmd.ExecuteReader();       while(reader.Read()) {            string name = (string) reader[\"name\"];            string age = (string) reader[\"age\"];            Response.Write(\ "Name :- \"+name+\"Age :- \"+age);       }       // clean up       reader.Close();       reader = null;       dbcmd.Dispose();       dbcmd = null;       dbcon.Close();       dbcon = null;            Response.Write(\"Hello\");                    }    }*******************************************************************************************and the error I am getting now is :-#################################################################################[Task:File=/home/rupanupal/Projects/NewTest/NewTest/Default.aspx.cs, Line=26, Column=20, Type=Error, Priority=Normal, Description=The type or namespace nam e `MySqlConnection\' could not be found. Are you missing a using directive or an assembly reference?(CS0246)]###################################################################################I have the above two references already added.What might be the issue???Please suggest a way.Thanking you all...R. Pal -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070702/452a04dd/attachment.html From florian at nedlinux.nl Mon Jul 2 07:41:36 2007 From: florian at nedlinux.nl (Florian Hester) Date: Mon, 2 Jul 2007 13:41:36 +0200 (CEST) Subject: [Mono-list] newbie:help connecting with nysql 5.0 In-Reply-To: <1183234278.S.15344.3091.webmail5.rediffmail.com.old.1183372181.1819@w ebmail.rediffmail.com> References: <1183234278.S.15344.3091.webmail5.rediffmail.com.old.1183372181.1819@webmail.rediffmail.com> Message-ID: <61473.84.246.23.49.1183376496.squirrel@webmail.nedlinux.com> Hello, Try putting the MySql Connector DLL's in a bin directory in same directory as your page. If that does not work, here is a link to the 1.0.7 version of the connector: http://ftp.snt.utwente.nl/pub/software/mysql/Downloads/Connector-Net/mysql-connector-net-1.0.7.zip Florian Hester > hello there,       I have just got started > with mono and having a trouble connecting with Mysql 5.0..It seems it > can\'t find the driver needed.I have mysql connector/.net 1.0.9....but > can\'t get that working.I read somewhere mono needs 1.0.7 of that > connector ,but I can\'t find that version anywhere.Can anyone please tell > me which driver to use and a sample code snippet to connect to mysql.Now I > am using the sample snippet given in the MONO official site > :-****************************************************************************************using > MySql.Data.MySqlClient;using MySql.Data;public class Default : > Page    {        >         public virtual void > onButtonClick(object sender, EventArgs e)    >     {        >     string connectionString =\"Server=localhost;\" + > \"Database=test;\" + \"User ID=root; > \" + \"Password=mysql;\" + > \"Pooling=false\";       IDbConnection > dbcon;       dbcon = new > MySqlConnection(connectionString);       > dbcon.Open();       IDbCommand dbcmd = > dbcon.CreateCommand();      >        string sql > =           \"SELECT > name, age \" + \"FROM table1\";       > dbcmd.CommandText = sql;       IDataReader > reader = dbcmd.ExecuteReader();       > while(reader.Read()) > {            > string name = (string) > reader[\"name\"];            > string age = (string) > reader[\"age\"];            > Response.Write(\ > "Name :- \"+name+\"Age :- \"+age);       > }       // clean > up       > reader.Close();       reader = > null;       > dbcmd.Dispose();       dbcmd = > null;       > dbcon.Close();       dbcon = > null;            > Response.Write(\"Hello\");        >             > }    > }*******************************************************************************************and > the error I am getting now is > :-#################################################################################[Task:File=/home/rupanupal/Projects/NewTest/NewTest/Default.aspx.cs, > Line=26, Column=20, Type=Error, Priority=Normal, Description=The type or > namespace nam > e `MySqlConnection\' could not be found. Are you missing a using > directive or an assembly > reference?(CS0246)]###################################################################################I > have the above two references already added.What might be the > issue???Please suggest a way.Thanking you all...R. > Pal_______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From florian at nedlinux.nl Mon Jul 2 07:51:18 2007 From: florian at nedlinux.nl (Florian Hester) Date: Mon, 2 Jul 2007 13:51:18 +0200 (CEST) Subject: [Mono-list] newbie:help connecting with nysql 5.0 In-Reply-To: <1183234278.S.15344.3091.webmail5.rediffmail.com.old.1183372181.1819@w ebmail.rediffmail.com> References: <1183234278.S.15344.3091.webmail5.rediffmail.com.old.1183372181.1819@webmail.rediffmail.com> Message-ID: <61923.84.246.23.49.1183377078.squirrel@webmail.nedlinux.com> Hello, The link i give you led to a Windows installer. Here is the right one: http://ftp.snt.utwente.nl/pub/software/mysql/Downloads/Connector-Net/mysql-connector-net-1.0.7-noinstall.zip Florian Hester From Dan.Maser at inin.com Mon Jul 2 12:15:56 2007 From: Dan.Maser at inin.com (Maser, Dan) Date: Mon, 2 Jul 2007 12:15:56 -0400 Subject: [Mono-list] Trouble with utf-16 marshaling In-Reply-To: References: <260A0A30F9017945932CC4F7B911B339058A35C3@i3mail1.i3domain.inin.com> Message-ID: <260A0A30F9017945932CC4F7B911B339058A3724@i3mail1.i3domain.inin.com> Thanks to the ideas suggested by those who responded, I have a little more info on this. I was trying to make a smaller test project that reproduced this so I could submit a bug and found out that the real problem is slightly different than I originally reported. The real problem isn't with simple marshaling of UTF-16 data using the UnmanagedType.LPWStr, but rather the problem is with some SWIG code that uses some function pointer tricks to allow C library functions to return pointers-to-buffers without leaking memory. The trick I refer to is where the C Library has a pointer-to-function that allocates string data for C# strings. And the C# stub sends a delegate function implementation to the C library to use for this - and thus the string return values are managed by the C# world and not leaked. I've got a very small test project that reproduces this. I'll create a bug and attach it shortly. Two bugs, really. Because as I created this small test project I notice that if I compile the project with MS visual studio it's ok but if I compile with mono the test project crashes well before the spot I'm trying to test at. I'll create two bugs for this and send the links in case any brave souls would like to take a look. -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan Sent: Friday, June 29, 2007 9:02 PM To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] Trouble with utf-16 marshaling Hi Dan, Maser, Dan wrote: Here are you speaking about "out" marshaling: > It works properly in windows with MS .NET, but doesn't work for me in > linux with mono. I've verified in gdb that the C library is returning > the correct string, but immediately after the C dll returns and mono > does the LPWStr marshaling the string is total garbage characters. I > am under the impression from previous posts that 2-byte UTF-16 should > marshal properly to mono with the LPWStr attribute. In fact it looks > like some of the gdiplus calls use that same thing and work... any ideas > what I can check on because mine doesn't? But your sample is about "in" marshaling: > > For more clarification my C library has a function signature like > this: > > void my_function(unsigned short* myArg); > > And my C# code looks like this: > > > [DllImport("myCLib")] > public static extern void my_function([MarshalAs(UnmanagedType.LPWStr)] > string myArg); Please post, or better: file a bug with a self-contained and compilable sample. Robert _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From madars.vitolins at gmail.com Mon Jul 2 13:43:49 2007 From: madars.vitolins at gmail.com (Madars Vitolins) Date: Mon, 2 Jul 2007 20:43:49 +0300 Subject: [Mono-list] Interact with the console in Linux In-Reply-To: <11243045.post@talk.nabble.com> References: <11243045.post@talk.nabble.com> Message-ID: <3c5e57bd0707021043m75ddee11mad913be286cde0bd@mail.gmail.com> Hi, I use following script for password samba/ldap password change: $ cat chpass #! /bin/sh { echo "$2" echo "$2" } | /usr/sbin/smbldap-passwd "$1" here is no magic, just call that chpass with arguments... Madars. On 6/22/07, Hoqenishy wrote: > > > Hi, folks - I've got a quick question that hopefully has an easy > resolution... how can I pass commands to the console in Linux from a C# > app? > It's fairly easy to do in Windows from C#, but nothing I try in Mono seems > to do the trick. I'm trying to automate password synchronization between > Samba, passwd, and some database applications, and it would be REALLY > handy > if I could manage to do it with a C# app. > > Any help would be greatly appreciated. Thanks! > -- > View this message in context: > http://www.nabble.com/Interact-with-the-console-in-Linux-tf3961728.html#a11243045 > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at 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/20070702/73ea76f1/attachment.html From alan.mcgovern at gmail.com Mon Jul 2 13:55:55 2007 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Mon, 2 Jul 2007 13:55:55 -0400 Subject: [Mono-list] Why do .net compiled apps run without a black dos prompt, and mono apps do? In-Reply-To: <4680A95C.1070404@rhoden.id.au> References: <4680A95C.1070404@rhoden.id.au> Message-ID: <117799f00707021055r733f8697o9091f35856cd3082@mail.gmail.com> compile with: /target:WinExe (or something like that). Alan. On 6/26/07, Jacob Rhoden wrote: > > Hi Guys, Not sure if this list is active, I just subscribed, anyways > quick question. > > Why do .net compiled apps run without a black dos prompt, and mono apps > do? > > Long version: > 1) I downloaded a simple example app to show an icon in the system tray. > I just dobule click on the executable and it works (runs under .NET not > mono). > 2) then I compiled using mono, and then double click on the executable, > and a Black dos prompt opens and stays open during the life of the > application. > > How do I compile so that I dont get the dos prompt? I tried compiling in > two different ways. I don't know the difference. > > mcs /r:System.Windows.Forms.dll /r:System.Drawing.dll SystemTrayApp.cs > mcs -pkg:dotnet SystemTrayApp.cs > > Here is the very simple code: > ---------------------------------------------------- > using System; > using System.Drawing; > using System.Collections; > using System.ComponentModel; > using System.Windows.Forms; > using System.IO; > > namespace SystemTrayApp { > public class App { > private NotifyIcon appIcon = new NotifyIcon(); > private ContextMenu sysTrayMenu = new ContextMenu(); > private MenuItem exitApp = new MenuItem("Exit"); > > public void Start() { > // Configure the system tray icon. > Icon ico = new Icon("icon.ico"); > appIcon.Icon = ico; > appIcon.Text = "My .NET Application"; > > sysTrayMenu.MenuItems.Add(exitApp); > appIcon.ContextMenu = sysTrayMenu; > appIcon.Visible = true; > > exitApp.Click += new EventHandler(ExitApp); > > } > > private void ExitApp(object sender, System.EventArgs e) { > Application.Exit(); > } > > public static void Main() { > App app = new App(); > app.Start(); > Application.Run(); > } > } > > } > > > -- > _________________________________________________ > Jacob Rhoden > Application Architect > Systems Development and Integration > University of Melbourne > > Phone: +61 3 8344 2884 > > > _______________________________________________ > Mono-list maillist - Mono-list at 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/20070702/ca620db1/attachment-0001.html From Dan.Maser at inin.com Mon Jul 2 13:58:23 2007 From: Dan.Maser at inin.com (Maser, Dan) Date: Mon, 2 Jul 2007 13:58:23 -0400 Subject: [Mono-list] Trouble with utf-16 marshaling In-Reply-To: <260A0A30F9017945932CC4F7B911B339058A3724@i3mail1.i3domain.inin.com> References: <260A0A30F9017945932CC4F7B911B339058A35C3@i3mail1.i3domain.inin.com> <260A0A30F9017945932CC4F7B911B339058A3724@i3mail1.i3domain.inin.com> Message-ID: <260A0A30F9017945932CC4F7B911B339058A373B@i3mail1.i3domain.inin.com> I created bug: http://bugzilla.ximian.com/show_bug.cgi?id=81990 which contains the description and the two source files that will reproduce this problem. The way I compiled them both is written in a comment block on the top of the source files. Thanks in advance to anyone who can give it a try. Dan Maser -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Maser, Dan Sent: Monday, July 02, 2007 11:16 AM To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] Trouble with utf-16 marshaling Thanks to the ideas suggested by those who responded, I have a little more info on this. I was trying to make a smaller test project that reproduced this so I could submit a bug and found out that the real problem is slightly different than I originally reported. The real problem isn't with simple marshaling of UTF-16 data using the UnmanagedType.LPWStr, but rather the problem is with some SWIG code that uses some function pointer tricks to allow C library functions to return pointers-to-buffers without leaking memory. The trick I refer to is where the C Library has a pointer-to-function that allocates string data for C# strings. And the C# stub sends a delegate function implementation to the C library to use for this - and thus the string return values are managed by the C# world and not leaked. I've got a very small test project that reproduces this. I'll create a bug and attach it shortly. Two bugs, really. Because as I created this small test project I notice that if I compile the project with MS visual studio it's ok but if I compile with mono the test project crashes well before the spot I'm trying to test at. I'll create two bugs for this and send the links in case any brave souls would like to take a look. -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan Sent: Friday, June 29, 2007 9:02 PM To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] Trouble with utf-16 marshaling Hi Dan, Maser, Dan wrote: Here are you speaking about "out" marshaling: > It works properly in windows with MS .NET, but doesn't work for me in > linux with mono. I've verified in gdb that the C library is returning > the correct string, but immediately after the C dll returns and mono > does the LPWStr marshaling the string is total garbage characters. I > am under the impression from previous posts that 2-byte UTF-16 should > marshal properly to mono with the LPWStr attribute. In fact it looks > like some of the gdiplus calls use that same thing and work... any ideas > what I can check on because mine doesn't? But your sample is about "in" marshaling: > > For more clarification my C library has a function signature like > this: > > void my_function(unsigned short* myArg); > > And my C# code looks like this: > > > [DllImport("myCLib")] > public static extern void my_function([MarshalAs(UnmanagedType.LPWStr)] > string myArg); Please post, or better: file a bug with a self-contained and compilable sample. Robert _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From mike.montagne at advanceis.com Mon Jul 2 21:06:39 2007 From: mike.montagne at advanceis.com (mike montagne) Date: Mon, 02 Jul 2007 18:06:39 -0700 Subject: [Mono-list] Philosophical Question - Why .NET on UNIX? In-Reply-To: <7.0.1.0.2.20070623171254.0233ad08@softhome.net> References: <467D6554.9090306@advanceis.com> <7.0.1.0.2.20070623171254.0233ad08@softhome.net> Message-ID: <4689A11F.8070609@advanceis.com> An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070702/234caf51/attachment.html From alan.mcgovern at gmail.com Mon Jul 2 21:36:52 2007 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Mon, 2 Jul 2007 21:36:52 -0400 Subject: [Mono-list] Philosophical Question - Why .NET on UNIX? In-Reply-To: <117799f00707021834m575ad11md4f121468e708a89@mail.gmail.com> References: <467D6554.9090306@advanceis.com> <7.0.1.0.2.20070623171254.0233ad08@softhome.net> <4689A11F.8070609@advanceis.com> <117799f00707021834m575ad11md4f121468e708a89@mail.gmail.com> Message-ID: <117799f00707021836x6a8118bfrf2c35daf9bf85835@mail.gmail.com> Hi, I've left some comments inline. Also, sorry about the double email, forgot to CC the list first. In other words, I have thought from the beginning that the Microsoft > philosophy is wrong. In fact knowing the weakness of accommodating unknown, > interoperable objects well has permitted me on several systems to survive -- > without ever deploying anti-viral ware -- literally probably more than a > million Windows viruses, with none ever unleashing. The trick to this has > been wholly disabling ActiveX -- whereas Microsoft's interests in .Net are > making that more impossible every day. > But .NET has built in security measures which prevent malware of any kind from taking over your system. Silverlight, the new browser plugin, contains a new simplified security system which makes it very difficult for anything to overtly install itself. You can't even access a file on the hardrive without going through a trusted path which (i believe) means popping up a file selection dialog for the user to select the file in. My Firefox installations for instance are always configured not to run > JavaScript. Even as I occasionally approve some JavaScript manually, I > regularly object to much of its usage. It's plain unnecessary. But it is > others' business if they do these things, and I do expect browsers to remain > available which continue to provide means of eliminating potentially > unwanted executability of any kind. > Lots of things are unneccessary. Coloured text is unneccesary. Hyperlinks are unneccessary. Colour images on web pages are unnecessary. However all three are very useful. I have found particularly that even relatively straightforward graphics > processes are extremely poorly performant compared to the tools I recently > left behind. > I hope you weren't accessing the pixels one by one using GetPixel and SetPixel. They are known to be very slow and are the reason why the unsafe LockBits() method is offered which allows you to directly access the bytes of the image and write c-style code which is every bit as fast (or at least has the potential to be). Theoretically however, the C# (reference/handle based) approach is an > equally advantageous way of building applications, if compiled into native > executables. > C# is compiled into a native executable when it is launched. There are also tools out there which generate native executables from CIL code. Sometimes these tools generate code that runs slower than if the code were just JIT'ed. So technically speaking, CIL code *always* runs "natively" on your platform of choice. As a result, i don't think your proposition has actually proposed *anything* that mono doesn't already do. Unless of course you were actually proposing that the whole Mono framework is rewritten in C or C++ or whatever non-CIL language of your choice and a thin c# wrapper is placed over that to provide interoperability with existing .NET libraries. If that's what you're suggesting, you obviously have completely missed the benefits gained when writing in a managed language. Alan. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070702/23957cac/attachment.html From mike.montagne at advanceis.com Tue Jul 3 00:31:22 2007 From: mike.montagne at advanceis.com (mike montagne) Date: Mon, 02 Jul 2007 21:31:22 -0700 Subject: [Mono-list] Philosophical Question - Why .NET on UNIX? Message-ID: <4689D11A.3050700@advanceis.com> An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070702/60c4ef80/attachment-0001.html From mgleahy at alumni.uwaterloo.ca Tue Jul 3 00:48:47 2007 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Tue, 03 Jul 2007 00:48:47 -0400 Subject: [Mono-list] Session problem with mod_mono Message-ID: <4689D52F.2020206@alumni.uwaterloo.ca> Hello list, I have what I hope is an easy-to-solve problem. I'm just getting started using mod_mono. I'm trying to see if I can get a WebService running with cookieless sessions. I added a method to TestService.asmx from the xsp test samples, that looks as follows: [WebMethod(EnableSession=true)] public int TestSession () { int x = 0; if (Session["x"] != null) { x = (int)Session["x"]; x++; Session["x"] = x; } else { Session["x"] = 0; } return x; } If I add to the system.web section of the web.config file, it works fine, but once I set cookieless="true", it fails as follows: Error 404

Server error in '/monoapps' application


File '/monoapps/1.1/webservice/TestService.asmx/TestSession' not found.

Description: Error processing request.

Error Message: HTTP 404. File '/monoapps/1.1/webservice/TestService.asmx/TestSession' not found.


Now, I know the session id is supposed to be in the URL, and it is there in the browser, e.g.: http://localhost/monoapps/(DB271823EA2F4B06CA2461CF)/1.1/webservice/TestService.asmx?page=op&tab=test&op=TestSession&bnd=TestServiceSoap&ext=testform or: http://localhost/monoapps/(DB271823EA2F4B06CA2461CF)/1.1/webservice/TestService.asmx/TestSession If it is of any use, here is the Apache conf file for my monoapps folder (which is really just a copy of the xsp test folder): Alias /monoapps "/var/www/monoapps" AddMonoApplications monoapps "/monoapps:/var/www/monoapps" MonoServerPath monoapps /usr/bin/mod-mono-server MonoPath monoapps "/var/www/monoapps:/var/www/monoapps/bin:/var/www/monoapps/1.1:/var/www/monoapps/2.0" MonoWapidir monoapps "/var/www/monoapps" MonoSetServerAlias monoapps SetHandler mono I came across various discussions about a bug that seemed related to this kind of problem, but I imagine that it's more likely that I'm just missing something in my setup. I've encountered this exact same problem with mono-1.1.17 on fc6, and mono-1.2.3 on fc7 (64-bit). Can anyone make any suggestions? If there is a better list for this sort of question, or maybe some documentation that clarifies how I should be configuring this, I wouldn't mind being pointed in the right direction. Thanks in advance, Mike From miguel at novell.com Tue Jul 3 01:29:43 2007 From: miguel at novell.com (Miguel de Icaza) Date: Tue, 03 Jul 2007 01:29:43 -0400 Subject: [Mono-list] can't find the list of classes support in mono In-Reply-To: References: <4681A22D.3010303@uptecs.com> <46836018.5080706@cyber-developpement.com> Message-ID: <1183440583.32680.3.camel@erandi.dom> Hello, > Specifically, I'm looking to see if membership, role providers and > profile providers are supported. I thought I saw a list once that > showed all the .net classes and the status in mono. They are. Miguel From alan.mcgovern at gmail.com Tue Jul 3 01:37:37 2007 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Tue, 3 Jul 2007 01:37:37 -0400 Subject: [Mono-list] Philosophical Question - Why .NET on UNIX? In-Reply-To: <4689D11A.3050700@advanceis.com> References: <4689D11A.3050700@advanceis.com> Message-ID: <117799f00707022237x457fcf2dkef20978dc9a0a331@mail.gmail.com> > > One obvious security vulnerability (assumably of all .Net implementations, > because all implementations generate IL), is that the very IL will regularly > pave the way to security breaches. Likewise, IL makes it very difficult if > not impractical to protect intellectual property. > I wouldn't consider that a security vulnerability at all. There are ways to obfusticate and/or encrypt code if you so wish. IL itself may be easier or harder to reverse engineer, i don't know. However there are many techniques available to make it hard for people to decompile/reverse engineer your IL. An example of the former for instance would be an enterprise application > submitting password access for whatever purpose. Even if encryption > libraries are called, if the IL falls into the wrong hands, the data > processed by IL calls into encryption libraries make it a relatively easy > matter to break the ostensible security of the system. > Not really. All you'd find out is that your application is sending a SHA1 hash of a string that the user enters to a server which then checks to see if it is valid or not. I'd hardly call that a security breach. Of course, if you're hardcoding passwords *into* your enterprise application then you have a much bigger problem on your hands. The .Net environment imposes relatively basic security measures. Yet keys > can be stolen, signatures can be impersonated, new assemblies can be > distributed to impersonate others... etc > I didn't believe it was possible to easily impersonate a signed .NET library. Do you have any links for that? It'd be interesting reading! . I don't think any .Net engineer claims the security is invulnerable to a > variety of possible schemes. I don't believe it can be truly said that > malware of any kind, or even flaws of any kind, are wholly obstructed from > affecting our systems. > No, but it's still safer than buffer overruns in C. Nothing is secure. Show me one 100% secure system for unmanaged code. (You're not allowed choose that system that uses a USB woggle thing for security). The best applications I use have rarely been updated. They sit behind a > firewall. I fully trust them because any problems would be adverse to the > purposes of the vendor, and because the integrity of the applications is a > long proven matter. I don't see how you can better, more practical security > than that. > So, the only way you judge an applications security is that it has a history of being secured? Or do you call an application secure when you don't update it? I fully trust a lot of applications i use, or i wouldn't have em installed, but i still wouldn't put it past them to have an easily exploitable security hole. GetPixel() and SetPixel() have to be used for some purposes, but so far I > have never had to use them in performance critical code. > Unsafe code is another thing to stay away from however if end users are to > enforce in-house restrictions based on security claims made for .Net. I never mentioned unsafe code funnily enough. It can all be done very safely in managed code: http://msdn2.microsoft.com/en-us/library/5ey6h79d.aspx By "natively" (in the .Net sense), you mean the code runs in an environment > which relates to the native system. IL *does not* compile into native calls > of the OS. No, what i mean is that the IL is compiled to native code and that native code is then executed. Therefore the application is "native" when it is executed. You are not interpreting IL on the fly. .Net implementations on Windows are far slower than their native-compiled > counterparts. Some claims are made that .Net math operations are something > like 80% as fast as native operations, but these claimed cases are only > possible if no boxing or unboxing are involved. Still, that's a substantial > performance disadvantage. But if of course any boxing or unboxing are > required, then of course the disparities are going to be huge. > I think i've managed to avoid unwanted boxing in pretty much every program i've written in C# except in cases where i didn't care enough to write the code needed to avoid boxing, for example methods which are called two or three times in the lifespan of the program. There are net BrowseForFolder dialogs in Visual Studio which, on my brand > new Vista system, take 9 seconds to display file content. This is a huge > delay, and something I certainly would never care to suffer in my own > applications. The early days of Delphi 1 had dialogs which were > instantaneous on Win95. So many years and orders of hardware efficiency > later, to suffer these delays is to me, incredible. Generally speaking, i get a BrowseForFolder dialog to appear within milliseconds of clicking on the required button. Your system may need to be checked up. It's no flaw in .NET or mono that your system is slow. It may be worthwhile checking for malware. Well thanks for the tip, but imho, "managed" is quite an overstated virtue > or advantage. Few C# developers probably truly know for instance what the > best way is to implement dispose patterns. There is conflicting information > on it. Visual Studio doesn't agree with Richter. Richter doesn't agree with > another source I rely on. Then again, how many can expertly reply when and > how to implement finalize? > Once again, that's not an isse with the .NET framework. I can argue much more usefully that there are a huge number of developers in C/C++ who can't write code that doesn't leak. It's much much easier to do that in C#. All you do is override the finalizer in any class that holds unmanaged resources. Thats when and where. What was the ostensible technical challenge implementing Free or FreeAndNil > in C++Builder or Delphi? There was no challenge or mystery when and how to > use them. When you freed an object the memory was instantly available to > other processes. FreeAndNil obviously freed the memory and wrote null/nil to > it. When you wrote an aggregate component/class, you routinely moved to your > destructor and freed subcomponents in the reverse order you created them. > These things were routine. Now you don't need to do that. Funnily enough quite a lot of programmers can't get this write. The reason is that objects can have quite complex life cycles. Quite a lot of time is wasted getting this right whereas with a managed language you can forget completely about this kind of issue. There is always a challenge in making sure that your objects are free'd correctly under all circumstances. What is the ostensible advantage of ForEach? Underneath your call to ForEach > is an iterative process which has to make the well known, routine call to > iterate count minus 1. The same thing has to be done. Yes, but it's *nicer*. It's syntactic sugar. There's no point to it as such. You could just as well argue that we don't need a "for" loop and a "while" loop because they both do the same thing. One of them could easily replace the other. There's nothing managed for you at this level. If the count changes before > iteration is complete, the only thing you can hope to account for that is > the compiler No, you'll get an exception as it's illegal to modify a collection while iterating over it. You will find out very quickly if your collection is modified when enumerating over it. Now, if you're trying to tell me MONO runs as fast as Cocoa on OS X, I can > be made a believer of that part of your assertion. "Managed" code little > convenience -- but in many cases it certainly is one. In the case of dispose > or finalize patterns, ambiguities can lead to further problems, and > incomplete familiarity with these ambiguities can lead to inferior design > and poor performance. Cocoa is a programming environment, not a language. I believe you mean "Objective C". I never said that managed languages ran faster than unmanaged ones. Once again, you can't blame Mono or .NET for the programmer mis-understanding the Dispose or Finalize pattern. It's not ambiguous, It's a fairly simple concept, much simpler than pointers. Of course, if the programmer was equally unfamiliar with C or C++ i'm sure they'd write even worse code than they would in C# ... If we have to breech the barriers of ostensibly "safe" code to *hope* to > achieve ostensibly comparable speed, hardly is it the case then that .Net > delivers what I consider to be acceptable performance. Your remarks about > GetPixel() and SetPixel(), I take to be agreement. Nope, i never once mentioned unsafe code. GetPixel and SetPixel are slow as there are several layers of indirection involved in getting the actual data. The lockbits method provides a way to get at the actual data, copy it into a managed byte[] and then in managed code, access that array as you wish. Of course you *could* use unsafe code and pointers if you wanted to, which would be slightly faster. As to your final remarks, you do not understand me. Assemblies call into > .Net libraries. What I am proposing is to map those calls into libraries > supporting the .Net calls, but compile the output into native calls into the > operating system -- using native OS dialogs, whatever. C# compiles into native code when run. What you're talking about is writing an implementation of .NET which is just a thin wrapper around native OS calls, which is what i was asking earlier. I won't have my users waiting 9 seconds for a BrowseForFolder or > BrowseForFile dialog to display content. I would even anticipate getting > support calls for that. And i'd laugh if you did. My system can manage to display a FolderBrowserDialog in about 250ms (give or take). I think that's perfectly acceptable. Using managed languages removes the need to worry about memory management. You can never have leaks. If you need to access unmanaged resources then you have several good patterns for safely disposing them. If someone can't apply those simple patterns, then they haven't a hope in hell of managing their own resources in C/C++. You also gain type safety, array bounds checking and misc other things. What it also gives you is slightly higher memeory usage and slightly slower code. If anyone tried to write a commercial video encoder using pure managed C# i'd have to laugh at them. It'd never work. If anyone said they were writing a new enterprise GUI application in C, i'd laugh at them because i could write the same GUI in half the time with half the bugs in C# simply because i don't have to worry about memory management issues and i have a rich API at my disposal. This gives me more time for bug quashing and feature extending. So, if you can stand the performance reduction as compared to C when balanced against the productivity gain moving to C#, then use C#. Otherwise use your native language with the benefits and pitfalls it entails. Alan. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070703/0986c6a9/attachment-0001.html From miguel at novell.com Tue Jul 3 01:44:01 2007 From: miguel at novell.com (Miguel de Icaza) Date: Tue, 03 Jul 2007 01:44:01 -0400 Subject: [Mono-list] Philosophical Question - Why .NET on UNIX? In-Reply-To: <4689D11A.3050700@advanceis.com> References: <4689D11A.3050700@advanceis.com> Message-ID: <1183441441.32680.18.camel@erandi.dom> Hello, This discussion seems to be now offtopic to the forum. Am not sure what is the relevance of this discussion about Javascript with .NET on Unix. If you do not need .NET on Unix, then this forum is not for you. In the same way that a forum on "Women issues in Chiapas" is probably not interesting to you. You seem to like Delphi very much, may I suggest that you join a Delphi group? > One obvious security vulnerability (assumably of all .Net > implementations, because all implementations generate IL), is that the > very IL will regularly pave the way to security breaches. Likewise, IL > makes it very difficult if not impractical to protect intellectual > property. You seem to be lumping together a bunch of unrelated concepts under the "security vulnerability" umbrella. You will need to explain what you mean by "IL will regularly pave the way to security breaches", because as it stand, that statement makes no sense. As for protecting intellectual property, I do not wish to be pedantic, but intellectual property is a catch-all expression that is often misused. People usually mean one or more of copyright, patents and trademarks. My guess is that you might be worried that people can decompile your code and find your secret sauce. Secret sauce probably made sense 20 years ago, but today there are very few new sauces and we all know how to make pesto or even better how to find the recipe to make pesto. And if you really have a secret sauce and people want to get to it, chances are, they will get to it regardless of whether you used IL or x86 assembly. > An example of the former for instance would be an enterprise > application submitting password access for whatever purpose. Even if > encryption libraries are called, if the IL falls into the wrong hands, > the data processed by IL calls into encryption libraries make it a > relatively easy matter to break the ostensible security of the system. You are describing security through obscurity, and that is known to be among the worst things you can do security wise: http://en.wikipedia.org/wiki/Security_through_obscurity > A good example of the consequences is the imperative disabling of > ActiveX. Even out of the box, Internet Explorer regularly fails to > render content or processes on Microsoft sites. Crank up the security > to where you should really have it, and good luck. The only secure network computer is a disconnected network computer. Good luck with your browsing experience. > .Net implementations on Windows are far slower than their > native-compiled counterparts. Some claims are made that .Net math > operations are something like 80% as fast as native operations, but > these claimed cases are only possible if no boxing or unboxing are > involved. Well, then do not box or unbox. "Doctor, it hurts when I poke my eye". > Well thanks for the tip, but imho, "managed" is quite an overstated > virtue or advantage. Few C# developers probably truly know for > instance what the best way is to implement dispose patterns. There is > conflicting information on it. Visual Studio doesn't agree with > Richter. Richter doesn't agree with another source I rely on. Then > again, how many can expertly reply when and how to implement finalize? It is trivial, you copy the documented pattern in the Framework Guidelines (which are the same that ship with .NET). > What is the ostensible advantage of ForEach? Underneath your call to > ForEach is an iterative process which has to make the well known, > routine call to iterate count minus 1. The same thing has to be done. > There's nothing managed for you at this level. If the count changes > before iteration is complete, the only thing you can hope to account > for that is the compiler -- and I think it should be clear that isn't > necessarily anything that the compiler should assume. If this can > happen in your case, it is your responsibility to anticipate that and > use an appropriate structure. Foreach is actually six or seven different beasts, one of them is the one you described. It helps encapsulate a number of patterns for iterating into a single expression. I stopped at this point, as it seems like you are rambling without much of a direction other than making a series of disconnected observations. Miguel. > From andreas.faerber at web.de Tue Jul 3 03:58:01 2007 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Tue, 3 Jul 2007 09:58:01 +0200 Subject: [Mono-list] Philosophical Question - Why .NET on UNIX? In-Reply-To: <4689A11F.8070609@advanceis.com> References: <467D6554.9090306@advanceis.com> <7.0.1.0.2.20070623171254.0233ad08@softhome.net> <4689A11F.8070609@advanceis.com> Message-ID: Mike, In short, you are mixing up concepts. First, the CLI is not ActiveX. To my knowledge Mono does not have dependencies on any COM replacement technologies. Second, the big difference between C#/Java and Delphi/Pascal/... is not the C-like-or-not syntax but the managed environment it's executed in, replacing null pointer references previously leading to immediate segmentation faults with exceptions the program can easily handle. Mono and .NET handle many languages, not just C#. Third, .NET is not just a replacement for Java. It fixes many limitations Java still has and C#/VB.NET introduced some nice aglnuage features which Java got only afterwards (1.5). Java is still lacking a convenient bridge algorithm like p/invoke (JNI is not an equivalent, it compares better to embedding Mono). Fourth, in your argument that you don't want JavaScript and ActiveX in your browser you are completely missing the point that Mono is not a browser technology. It can be used for exactly what you expressed a wish for, transmitting data from one location to another without rendering. Hope this clarifies some things. Andreas From rupanu.pal at rediffmail.com Tue Jul 3 05:03:57 2007 From: rupanu.pal at rediffmail.com (rupanu pal) Date: 3 Jul 2007 09:03:57 -0000 Subject: [Mono-list] textBox1 in default.aspx not found in cs file Message-ID: <1183441096.S.17517.9745.webmail1.rediffmail.com.old.1183453437.24443@webmail.rediffmail.com> hello there,When we open a new project(ASP.NET) monodevelop(0.14) it gives a Default.aspx and a Default.aspx.cs file by default which has the foolowing line :-textBox1.Text = \"Hello World\";.I am trying to compile and run the same but getting this error :-[Task:File=/home/rupanupal/Projects/Test/Test/Default.aspx.cs, Line=17, Column=25, Type=Error, Priority=Normal, Description=The name `textBox1\' does not exist in the context of `Test.Default\'(CS0103)]why is the error?  <asp:TextBox id=\"textBox1\" runat=\"server\"/> is written in aspx page.Please tell me do I need to anything in the page directive of the aspx page?Thanking you rupanu. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070703/aa2eb787/attachment.html From krapfenbauer at ict.tuwien.ac.at Tue Jul 3 03:42:43 2007 From: krapfenbauer at ict.tuwien.ac.at (Harald Krapfenbauer) Date: Tue, 3 Jul 2007 09:42:43 +0200 Subject: [Mono-list] C# Compiler Error References Message-ID: Hello! I have a question to the compiler error references listed on http://www.go-mono.com/docs/: Is there a subset of these compiler error numbers that mcs/gmcs may produce if called with the --parse argument? I noticed already that --parse does only syntax checking, but does not check interdependencies between files etc. like done at compilation. Thanks for your help, Harald From adrien.dessemond at softhome.net Tue Jul 3 06:52:50 2007 From: adrien.dessemond at softhome.net (Adrien Dessemond) Date: Tue, 03 Jul 2007 06:52:50 -0400 Subject: [Mono-list] textBox1 in default.aspx not found in cs file In-Reply-To: <1183441096.S.17517.9745.webmail1.rediffmail.com.old.1183453437.24443@webmail.rediffmail.com> References: <1183441096.S.17517.9745.webmail1.rediffmail.com.old.1183453437.24443@webmail.rediffmail.com> Message-ID: <1183459970.28110.7.camel@avalanche.digitalsky.lan> On Tue, 2007-03-07 at 09:03 +0000, rupanu pal wrote: Hello ! > When we open a new project(ASP.NET) monodevelop(0.14) it gives a > Default.aspx and a Default.aspx.cs file by default which has the > foolowing line :- > > textBox1.Text = "Hello World"; > > .I am trying to compile and run the same but getting this error :- > > [Task:File=/home/rupanupal/Projects/Test/Test/Default.aspx.cs, > Line=17, Column=25, Type=Error, Priority=Normal, Description=The name > `textBox1' does not exist in the context of `Test.Default'(CS0103)] You must enable code-behind members generation (disabled by default) 1. Go in Project/Options 2. Unfold Configurations/Debug (or Release) 3. Select the sub-item "ASP.Net" and check the single box "Autogenerate ...." Kind regards, Adrien From florian at nedlinux.nl Tue Jul 3 06:59:10 2007 From: florian at nedlinux.nl (Florian Hester) Date: Tue, 3 Jul 2007 12:59:10 +0200 (CEST) Subject: [Mono-list] newbie:help connecting with nysql 5.0 In-Reply-To: <1183376437.S.5724.3669.webmail72.rediffmail.com.old.1183440806.20035@ webmail.rediffmail.com> References: <1183376437.S.5724.3669.webmail72.rediffmail.com.old.1183440806.20035@webmail.rediffmail.com> Message-ID: <27168.84.246.23.49.1183460350.squirrel@webmail.nedlinux.com> Hello, I do not know if you are using XPS or mod_mono for Apache. But here are some links: XPS: http://www.mono-project.com/Xsp#ASP.NET_2.0 Apache and mod_mono: http://www.mono-project.com/Mod_mono#ASP.NET_2_apps_do_not_work Florian Hester > Thank you very much Florian, I got that working after I did that and > then added the dll as .net assembly.Right now I am working on ASP.NET > 1.0, can you please suggest me what all I have to do to get ASP.NET 2.0 > to work?Do I need to install something?(I am using latest version of > mono).Thanking you again,Rupanu From mszpak at wp.pl Tue Jul 3 07:18:45 2007 From: mszpak at wp.pl (=?ISO-8859-2?Q?Marcin_Zaj=B1czkowski?=) Date: Tue, 03 Jul 2007 13:18:45 +0200 Subject: [Mono-list] Problem with gecko-sharp and sample applications Message-ID: <468a3095764c0@wp.pl> Hi, I'm unable to run sample applications for gecko-sharp. It gets SIGSEGV (stack trace below - if it needed I probably could add some debug symbols for it). I tried with gecko-sharp-2.0-0.11 (installed on my system from RPM - Fedora Core 6) and sample applications from gecko-sharp-2.0-0.11 tarball. I modified compilation command to have: [marcinz at bolger sample]$ /usr/bin/mcs -unsafe -lib:/usr/lib/firefox-1.5.0.12/ -r:/usr/lib/mono/gecko-sharp-2.0/gecko-sharp.dll -lib:/usr/lib -pkg:gtk-sharp-2.0 -out:WebThumbnailer.exe ./WebThumbnailer.cs libgtkembedmoz.so was taken from firefox-1.5.0.12 (and from thunderbird-1.5.0.12) (also from RPM). I seems to be linked with gtk2: [marcinz at bolger gecko-sharp-2.0-0.11]$ ldd /usr/lib/firefox-1.5.0.12/libgtkembedmoz.so | grep gtk libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x06b19000) I tried also with that lib taken from esc (Enterprise Security Client) which didn't get SIGSEGV, but I only saw white window. Could it be problem with libgtkemedmoz.so? I so, where can I download its "working" version? Thanks for help Marcin [marcinz at bolger sample]$ LD_LIBRARY_PATH=/usr/lib/firefox-1.5.0.12/ mono WebThumbnailer.exe http://www.google.pl/ ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: at (wrapper managed-to-native) Gtk.Widget.gtk_widget_show_all (intptr) <0x00004> at (wrapper managed-to-native) Gtk.Widget.gtk_widget_show_all (intptr) <0xffffffff> at Gtk.Widget.ShowAll () <0x0001a> at X.Main (string[]) <0x002ad> at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff> Native stacktrace: mono(mono_handle_native_sigsegv+0xe6) [0x814f9b6] mono [0x811bad8] [0xd6f440] /usr/lib/firefox-1.5.0.12/libgtkembedmoz.so [0xa322b1] /usr/lib/firefox-1.5.0.12/libgtkembedmoz.so [0xa2fc9b] /lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x49) [0x8850f9] /lib/libgobject-2.0.so.0 [0x876589] /lib/libgobject-2.0.so.0(g_closure_invoke+0x12b) [0x877d9b] /lib/libgobject-2.0.so.0 [0x8888ca] /lib/libgobject-2.0.so.0(g_signal_emit_valist+0x8c7) [0x889957] /lib/libgobject-2.0.so.0(g_signal_emit+0x29) [0x889b19] /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_realize+0xba) [0x6d681ea] /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_map+0xd9) [0x6d684d9] /usr/lib/libgtk-x11-2.0.so.0 [0x6d77d95] /lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x49) [0x8850f9] /lib/libgobject-2.0.so.0 [0x876589] /lib/libgobject-2.0.so.0(g_closure_invoke+0x12b) [0x877d9b] /lib/libgobject-2.0.so.0 [0x8888ca] /lib/libgobject-2.0.so.0(g_signal_emit_valist+0x8c7) [0x889957] /lib/libgobject-2.0.so.0(g_signal_emit+0x29) [0x889b19] /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_map+0x71) [0x6d68471] /usr/lib/libgtk-x11-2.0.so.0 [0x6d77dde] /lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x49) [0x8850f9] /lib/libgobject-2.0.so.0 [0x876589] /lib/libgobject-2.0.so.0(g_closure_invoke+0x12b) [0x877d9b] /lib/libgobject-2.0.so.0 [0x8888ca] /lib/libgobject-2.0.so.0(g_signal_emit_valist+0x8c7) [0x889957] /lib/libgobject-2.0.so.0(g_signal_emit+0x29) [0x889b19] /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_show+0x98) [0x6d68be8] /usr/lib/libgtk-x11-2.0.so.0 [0x6bb7cfb] /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_show_all+0x4d) [0x6d6891d] [0x1282b4] [0x12826b] [0x11d526] [0x11c7c3] mono(mono_runtime_exec_main+0x62) [0x80e5b72] mono(mono_runtime_run_main+0x1b9) [0x80e5e59] mono(mono_main+0xe5e) [0x805d36e] mono [0x805c002] /lib/libc.so.6(__libc_start_main+0xdc) [0x4fef2c] mono [0x805bf51] Aborted -- Ad... ---------------------------------------------------- Nie przegap swojej szansy. Sprawd? Twoje szcz??liwe dni tegorocznych wakacji. Zobacz, czy czeka Ci? mi?o?? tego lata... http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fd114.html&sid=1211 From mike.montagne at advanceis.com Tue Jul 3 11:33:42 2007 From: mike.montagne at advanceis.com (mike montagne) Date: Tue, 03 Jul 2007 08:33:42 -0700 Subject: [Mono-list] Philosophical Question - Why .NET on UNIX? In-Reply-To: <117799f00707022237x457fcf2dkef20978dc9a0a331@mail.gmail.com> References: <4689D11A.3050700@advanceis.com> <117799f00707022237x457fcf2dkef20978dc9a0a331@mail.gmail.com> Message-ID: <468A6C56.6080809@advanceis.com> An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070703/e405b2b7/attachment.html From mike.montagne at advanceis.com Tue Jul 3 11:56:17 2007 From: mike.montagne at advanceis.com (mike montagne) Date: Tue, 03 Jul 2007 08:56:17 -0700 Subject: [Mono-list] Philosophical Question - Why .NET on UNIX? In-Reply-To: References: <467D6554.9090306@advanceis.com> <7.0.1.0.2.20070623171254.0233ad08@softhome.net> <4689A11F.8070609@advanceis.com> Message-ID: <468A71A1.9060105@advanceis.com> An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070703/f606a00f/attachment.html From Dan.Maser at inin.com Tue Jul 3 12:25:50 2007 From: Dan.Maser at inin.com (Maser, Dan) Date: Tue, 3 Jul 2007 12:25:50 -0400 Subject: [Mono-list] Can there be a problem with System.Math.Max? Message-ID: <260A0A30F9017945932CC4F7B911B339058A3811@i3mail1.i3domain.inin.com> I updated to the latest SVN code this morning and noticed that the following code int a = 100; int b = -2147483647; System.Console.WriteLine(String.Format("Math.Max(a, b) is {0}", Math.Max(a, b))); Prints -2147483647 when I'd expect it to print 100. Looking at the source code to Math.Max in class/corelib/System/Math.cs I don't see any problem, though. Can someone else verify this? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070703/920cb651/attachment.html From felipe.lessa at gmail.com Tue Jul 3 12:34:03 2007 From: felipe.lessa at gmail.com (Felipe Almeida Lessa) Date: Tue, 3 Jul 2007 13:34:03 -0300 Subject: [Mono-list] Can there be a problem with System.Math.Max? In-Reply-To: <260A0A30F9017945932CC4F7B911B339058A3811@i3mail1.i3domain.inin.com> References: <260A0A30F9017945932CC4F7B911B339058A3811@i3mail1.i3domain.inin.com> Message-ID: On 7/3/07, Maser, Dan wrote: > Prints -2147483647 when I'd expect it to print 100. Looking at the source > code to Math.Max in class/corelib/System/Math.cs I don't see any problem, > though. Can someone else verify this? Don't have SVN here, but on mono 1.2.3.1 it's working fine. $ cat a.cs using System; public class MainClass { public static void Main() { int a = 100; int b = -2147483647; Console.WriteLine("Math.Max({0}, {1}) is {2}", a, b, Math.Max(a, b)); } } $ mcs a.cs $ mono a.exe Math.Max(100, -2147483647) is 100 $ mono --version Mono JIT compiler version 1.2.3.1, (C) 2002-2006 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: normal Architecture: x86 Disabled: none -- Felipe. From robertj at gmx.net Tue Jul 3 12:46:26 2007 From: robertj at gmx.net (Robert Jordan) Date: Tue, 03 Jul 2007 18:46:26 +0200 Subject: [Mono-list] Can there be a problem with System.Math.Max? In-Reply-To: <260A0A30F9017945932CC4F7B911B339058A3811@i3mail1.i3domain.inin.com> References: <260A0A30F9017945932CC4F7B911B339058A3811@i3mail1.i3domain.inin.com> Message-ID: Maser, Dan wrote: > I updated to the latest SVN code this morning and noticed that the > following code > > > int a = 100; > int b = -2147483647; > System.Console.WriteLine(String.Format("Math.Max(a, b) is {0}", > Math.Max(a, b))); > > > Prints -2147483647 when I'd expect it to print 100. Looking at the > source code to Math.Max in class/corelib/System/Math.cs I don't see any > problem, though. Can someone else verify this? Please file a bug and mention that it doesn't occur with `mono --optimize=-all'. My mono version is: Mono JIT compiler version 1.2.4 (/trunk/ r80002), so it's probably not a fresh bug. Robert From adrien.dessemond at softhome.net Tue Jul 3 13:33:26 2007 From: adrien.dessemond at softhome.net (Adrien Dessemond) Date: Tue, 3 Jul 2007 13:33:26 -0400 (EDT) Subject: [Mono-list] Philosophical Question - Why .NET on UNIX? In-Reply-To: <468A71A1.9060105@advanceis.com> References: <467D6554.9090306@advanceis.com> <7.0.1.0.2.20070623171254.0233ad08@softhome.net> <4689A11F.8070609@advanceis.com> <468A71A1.9060105@advanceis.com> Message-ID: <53217.198.168.250.7.1183484006.squirrel@pro.SoftHome.net> > This is utterly ridiculous. All these things are obvious. I mean, > suggesting I join a Delphi forum? (previous post) As if somehow I > hadn't participated in so many for so many years -- or a guy who has > possibly the most marked up copy of CLR via C# extant doesn't even get > the basic concept of .Net yet. I think there's a better thing to do. .
Please chill out. No one launched any personal attacks of any kind against you. Alan, Miguel and many others have taken the time to answer and answer you again and I do not see any personal blames in their prose. In the IT world everything changes and can change very quicky and it is up to you to "sniff" what is coming and anticipate moves. I perfectly understand your frustation against this always-moving-world but.. how could I say... "This behaviour is by design" :-) An IT career is marked by milestones and rocky roads but this is the game and you have to anticipate what the future on this road will look like and do adequate moves. Take your skills at your advantage, you seems to have a good experience in Pascal/Delphi and Pascal/.Net compilers are available. If you are quite new to the .Net world, take your time to explore it from your Delphi basis and see what it can do for you. You will be amazed of how your existing skills associated with a "new start" can be a benefit for you. > That's all. But that's a big thing to me. Still, I my purpose in > mentioning this was to point out a division -- MS is betting on diverse > executables everywhere; the succeeding, competing browsers are You may disagree to that but this is the rude law of the IT Market. They have to make profit, and to make profit they have to sell/innovate and.Net is a keypoint in their goals. Imagine what the IT market would look like if Java would have been available. I do not know if you already played around with old Win32 C/C++ applications but the first time I used C# 7 years ago I ensure you it was a real pleasure to not rewrite the plumbering again and again and spending weeks on debugging funny stuff like null pointers issues or memory leaks. >From a project point of view, using .Net/Java has the main advantage of being able to focus on the application design and documentation and to reduce potential bugs by reducing the number of code lines you have to write and the application development costs. Of course you are not required to use .Net or Java, you can use many other bricks. Java is an alternative in high level languages. If you love "old" technologies you can either use C++ or Assembler, no one forbids you to act that way and no one will condemn you to act so. They just "ease" the programmer's job. Kind regards, Adrien From Dan.Maser at inin.com Tue Jul 3 13:34:20 2007 From: Dan.Maser at inin.com (Maser, Dan) Date: Tue, 3 Jul 2007 13:34:20 -0400 Subject: [Mono-list] Can there be a problem with System.Math.Max? In-Reply-To: References: <260A0A30F9017945932CC4F7B911B339058A3811@i3mail1.i3domain.inin.com> Message-ID: <260A0A30F9017945932CC4F7B911B339058A3827@i3mail1.i3domain.inin.com> Thanks, I created http://bugzilla.ximian.com/show_bug.cgi?id=82001 -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan Sent: Tuesday, July 03, 2007 11:46 AM To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] Can there be a problem with System.Math.Max? Maser, Dan wrote: > I updated to the latest SVN code this morning and noticed that the > following code > > > int a = 100; > int b = -2147483647; > System.Console.WriteLine(String.Format("Math.Max(a, b) is {0}", > Math.Max(a, b))); > > > Prints -2147483647 when I'd expect it to print 100. Looking at the > source code to Math.Max in class/corelib/System/Math.cs I don't see any > problem, though. Can someone else verify this? Please file a bug and mention that it doesn't occur with `mono --optimize=-all'. My mono version is: Mono JIT compiler version 1.2.4 (/trunk/ r80002), so it's probably not a fresh bug. Robert _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From mgleahy at alumni.uwaterloo.ca Tue Jul 3 13:39:16 2007 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Tue, 03 Jul 2007 13:39:16 -0400 Subject: [Mono-list] Session problem with mod_mono In-Reply-To: <4689D52F.2020206@alumni.uwaterloo.ca> References: <4689D52F.2020206@alumni.uwaterloo.ca> Message-ID: <468A89C4.8030102@alumni.uwaterloo.ca> Hello again, I've reproduced this same problem again on WinXP with the latest Apache/mod_mono/Mono setup. I also found an old bug where someone reported the same problem I'm having, but it was ultimately determined to be 'not a bug': http://bugzilla.ximian.com/show_bug.cgi?id=73203 So...my question is if this is not a bug, then what might I be doing wrong in my configuration? All I've really done to cause the problem is add the sessionState node in the web.config file with cookieless="true". Clearly I've missed some other key step. Any recommendations? Regards, Mike Mike Leahy wrote: > Hello list, > > I have what I hope is an easy-to-solve problem. I'm just getting > started using mod_mono. I'm trying to see if I can get a WebService > running with cookieless sessions. I added a method to TestService.asmx > from the xsp test samples, that looks as follows: > > [WebMethod(EnableSession=true)] > public int TestSession () > { > int x = 0; > if (Session["x"] != null) > { > x = (int)Session["x"]; > x++; > Session["x"] = x; > } > else > { > Session["x"] = 0; > } > return x; > } > > If I add to the > system.web section of the web.config file, it works fine, but once I set > cookieless="true", it fails as follows: > > > Error 404

color="red">Server error in '/monoapps' application


>

File > '/monoapps/1.1/webservice/TestService.asmx/TestSession' not > found.

> Description: Error processing request. >

> Error Message: HTTP 404. File > '/monoapps/1.1/webservice/TestService.asmx/TestSession' not found. >

>


> > > > > Now, I know the session id is supposed to be in the URL, and it is there > in the browser, e.g.: > > http://localhost/monoapps/(DB271823EA2F4B06CA2461CF)/1.1/webservice/TestService.asmx?page=op&tab=test&op=TestSession&bnd=TestServiceSoap&ext=testform > > or: > > http://localhost/monoapps/(DB271823EA2F4B06CA2461CF)/1.1/webservice/TestService.asmx/TestSession > > If it is of any use, here is the Apache conf file for my monoapps folder > (which is really just a copy of the xsp test folder): > > Alias /monoapps "/var/www/monoapps" > AddMonoApplications monoapps "/monoapps:/var/www/monoapps" > MonoServerPath monoapps /usr/bin/mod-mono-server > MonoPath monoapps > "/var/www/monoapps:/var/www/monoapps/bin:/var/www/monoapps/1.1:/var/www/monoapps/2.0" > MonoWapidir monoapps "/var/www/monoapps" > > MonoSetServerAlias monoapps > SetHandler mono > > > I came across various discussions about a bug that seemed related to > this kind of problem, but I imagine that it's more likely that I'm just > missing something in my setup. I've encountered this exact same problem > with mono-1.1.17 on fc6, and mono-1.2.3 on fc7 (64-bit). Can anyone > make any suggestions? > > If there is a better list for this sort of question, or maybe some > documentation that clarifies how I should be configuring this, I > wouldn't mind being pointed in the right direction. > > Thanks in advance, > Mike > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From lupus at ximian.com Tue Jul 3 13:44:04 2007 From: lupus at ximian.com (Paolo Molaro) Date: Tue, 3 Jul 2007 19:44:04 +0200 Subject: [Mono-list] Can there be a problem with System.Math.Max? In-Reply-To: <260A0A30F9017945932CC4F7B911B339058A3811@i3mail1.i3domain.inin.com> References: <260A0A30F9017945932CC4F7B911B339058A3811@i3mail1.i3domain.inin.com> Message-ID: <20070703174404.GH32215@debian.org> On 07/03/07 Maser, Dan wrote: > I updated to the latest SVN code this morning and noticed that the > following code > > > int a = 100; > int b = -2147483647; > System.Console.WriteLine(String.Format("Math.Max(a, b) is {0}", > Math.Max(a, b))); Fixed in svn. Thanks! lupus -- ----------------------------------------------------------------- lupus at debian.org debian/rules lupus at ximian.com Monkeys do it better From miguel at novell.com Tue Jul 3 12:23:41 2007 From: miguel at novell.com (Miguel de Icaza) Date: Tue, 03 Jul 2007 12:23:41 -0400 Subject: [Mono-list] C# Compiler Error References In-Reply-To: References: Message-ID: <1183479821.32680.45.camel@erandi.dom> > Is there a subset of these compiler error numbers that mcs/gmcs may > produce if called with the --parse argument? > I noticed already that --parse does only syntax checking, but does not > check interdependencies between files etc. like done at compilation. That flag is an internal flag that we use to profile the compiler, it is not intended for anything else. From lluis at ximian.com Tue Jul 3 15:32:24 2007 From: lluis at ximian.com (Lluis Sanchez) Date: Tue, 03 Jul 2007 21:32:24 +0200 Subject: [Mono-list] Philosophical Question - Why .NET on UNIX? In-Reply-To: <468A71A1.9060105@advanceis.com> References: <467D6554.9090306@advanceis.com> <7.0.1.0.2.20070623171254.0233ad08@softhome.net> <4689A11F.8070609@advanceis.com> <468A71A1.9060105@advanceis.com> Message-ID: <1183491144.4483.114.camel@portador.site> Hi, No offense, but what I thought when I read your mail and your first reply to Alan is that you had no clue about what .NET/Mono is and how it works. I guess that the other people that replied had the same feeling. If you find the answers obvious, then you clearly failed in explaining your message. Let me summarize some of the statements you made that lead me to believe your lack of knowledge of .NET/Mono: > What I don't understand is why MONO just *followed* Microsoft down the > questionable path of Java. > A principal purpose of .Net of course was to defeat Java because > Microsoft was losing so many developers to Java, but not because > Java was better than other object oriented alternatives such > as Delphi or C++Builder My conclusion here was that you didn't know what the Mono project was about. The Mono community *do* believe in the path initiated by Java and later improved by Microsoft (that is, in a managed, language agnostic, portable, object oriented development platform). That's why the Mono project was created. The question of "why Mono just *followed* Microsoft" doesn't make any sense, since Mono *is* an implementation of Microsoft .NET, for the good and for the bad (of course Mono is not only MS.NET. We embraced, and we extended it). > Another reason I believe Microsoft followed Java is that Microsoft doesn't > want to abandon it's greatest security risk -- ActiveX -- and, that > because they will not do that, they will never understand how to build a > secure OS. What sense does it make then for UNIX/Linux to follow this path > (...) > Adhering to a concept of transmitting only data between web applications > wholly eliminates the need to follow the COM/ActiveX pattern My conclusion after those statements is that you have a great confusion, because you are talking about technologies which are not related at all with Mono. Mono has no relation at all with COM/ActiveX. So the question "What sense does it make then for UNIX/Linux to follow this path" does not make any sense by itself. > Assumably, abstracting support for the .Net libraries within an equivalent > .Net environment running on Linux/UNIX is approximately the same thing as > reorganizing that support so .Net code runs *NATIVE* on Linux/UNIX. In other > words, the overhead of supporting native .Net executables > running far faster than Windows counterparts running as IL is > theoretically little different: Libraries, and their relationship to > a compiler, are simply organized somewhat differently. > (...) > Thus if engineers working with .Net implementations originally intended for > Windows .Net could run the same code base, or even a restricted code base > or roughly similar code base, as native executables on Linux/UNIX, > obviously *that* is a place we *really* want to go today. My first reaction after reading this was to think that you didn't know .NET/Mono compiles IL into native code on the fly, and that there are tools which can convert portable assemblies to native libraries. The sentence "running far faster than Windows counterparts running as IL" was specially misleading, as IL is never interpreted, but compiled to native code. In fact, when you install .NET on windows, all assemblies of the framework are compiled no native libraries. Maybe you already know all this, but everybody reading that paragraph will believe the contrary. > One obvious security vulnerability (assumably of all .Net implementations, > because all implementations generate IL), is that the very IL will regularly > pave the way to security breaches. Likewise, IL makes it very difficult if not > impractical to protect intellectual property. (...) > The .Net environment imposes relatively basic security measures. Yet keys > can be stolen, signatures can be impersonated, new assemblies can be > distributed to impersonate others... etc.. You don't say it, but I assumed here that "IL will regularly pave the way to security breaches" because it is easy to decompile. It made me smile because you are using the same argument that some people use to attack open source, saying that it is less secure because everybody can read the code. I know that not all code is meant to be read by people, but it made me smile anyway. You then talked about keys being stolen, signature impersonation and so on. This seemed a really poor argument to me, since those security technologies are not specific of .NET, but they are used everywhere. If you don't rely on keys, signatures and certificates, you should stop using SSL, SSH, GPG and many other technologies. All this also made me believe that you didn't know what is CAS, and how it can help running untrusted code in a secure way. > Well thanks for the tip, but imho, "managed" is quite an overstated virtue or > advantage. > (...) > What is the ostensible advantage of ForEach? Underneath your call to ForEach > is an iterative process which has to make the well known, routine call to > iterate count minus 1. The same thing has to be done. There's nothing managed > for you at this level. If the count changes before iteration is complete, the > only thing you can hope to account for that is the compiler -- and I think it > should be clear that isn't necessarily anything that the compiler > should assume. If this can happen in your case, it is your responsibility > to anticipate that and use an appropriate structure. This paragraph made me believe that you don't know the meaning of "managed", because the fact that .NET/Mono is a managed platform has *nothing* to do with language features or compiler tricks. > Now, if you're trying to tell me MONO runs as fast as Cocoa on OS X Yet another sentence that people will interpret as a deep lack of knowledge of what Mono is. Mono can't be compared to Cocoa. It's like asking if Python is faster than Motif. Nonsense. So, summarizing, the impression I got is that you had a superficial idea of what .NET/Mono is. Maybe it's a wrong impression, but that's what I believed after reading your mails. And yes, after all this I really felt the need of teaching ABCs before discussing other more advanced proposals. I also came to the following conclusions: * You don't see any benefit on the fact that .NET binaries are portable across platforms. * You think that the security measures that .NET provides are useless, including the sandbox. * You don't believe that the protection that a managed platform provides has any advantage. * You don't think that a language-agnostic platform such as .NET is of any use. * You also don't believe that developing with .NET/Mono is more productive than developing in other platforms (after all, the productivity you get from a development platform is the sum of all its features, including the previous ones in this list). The Mono project was created because we believe in all those values. If you don't believe on them, Mono is clearly not for you. Lluis. El dt 03 de 07 del 2007 a les 08:56 -0700, en/na mike montagne va escriure: > > > This is utterly ridiculous. All these things are obvious. I mean, > suggesting I join a Delphi forum? (previous post) As if somehow I > hadn't participated in so many for so many years -- or a guy who has > possibly the most marked up copy of CLR via C# extant doesn't even get > the basic concept of .Net yet. I think there's a better thing to do. . > > You people evidently have your goals quite set, and that's quite fine > with me. Obviously I understand that Mono is not a browser technology. > My concern is *running* *anything* that does anything more than > *render* something in my browser (or anywhere else) -- and therefore I > consider all the overlappings of .Net dedicated to running *anything* > I don't *know* about conclusively as a potential risk. > > That's all. But that's a big thing to me. Still, I my purpose in > mentioning this was to point out a division -- MS is betting on > diverse executables everywhere; the succeeding, competing browsers are > excelling because they are providing ways to *cut off* *all* those > kinds of things... right down to JavaScript (mentioned too just as an > example of *the extent* of the *desirable* protection from these > executables). That spells an opportunity to me -- an opportunity to > point sights at a place down the road where instead of multivarious > styles of web development tolerating *any* number of executables, we > have found we better tolerate no unknown executables, and perform all > rendering with a known application and/or its plugins. To this, this > forum replies *color is unnecessary,* as a defense of those > executables? > > That's very interesting, not because it is enlightening (of course), > but because it comes from this forum. > > I also understand of course that we don't have to use .Net for these > things -- my mail sufficiently emphasized that as well. My point > was... well, actually my full point might seem offensive. I didn't > intend that. Now we're defending Mono by thinking we're teaching ABCs; > and obviously this is going nowhere. > > Good luck to you all. It's been an experience. > > > > Andreas F?rber wrote: > > Mike, > > > > In short, you are mixing up concepts. > > > > First, the CLI is not ActiveX. To my knowledge Mono does not have > > dependencies on any COM replacement technologies. > > > > Second, the big difference between C#/Java and Delphi/Pascal/... is > > not the C-like-or-not syntax but the managed environment it's > > executed in, replacing null pointer references previously leading to > > immediate segmentation faults with exceptions the program can easily > > handle. Mono and .NET handle many languages, not just C#. > > > > Third, .NET is not just a replacement for Java. It fixes many > > limitations Java still has and C#/VB.NET introduced some nice > > aglnuage features which Java got only afterwards (1.5). Java is > > still lacking a convenient bridge algorithm like p/invoke (JNI is > > not an equivalent, it compares better to embedding Mono). > > > > Fourth, in your argument that you don't want JavaScript and ActiveX > > in your browser you are completely missing the point that Mono is > > not a browser technology. It can be used for exactly what you > > expressed a wish for, transmitting data from one location to another > > without rendering. > > > > Hope this clarifies some things. > > > > Andreas > > > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From ljimenez at nacion.co.cr Tue Jul 3 17:05:56 2007 From: ljimenez at nacion.co.cr (=?iso-8859-1?Q?Lorenzo_Jim=E9nez?=) Date: Tue, 3 Jul 2007 15:05:56 -0600 Subject: [Mono-list] Have anyone heard of JBoss Web Server running .NET? Message-ID: <7FBE762435F80C4297CAE22194F379631E019305@CORREOGN.ln.corp.nacion.com> Have anyone heard, or have information of JBoss Web Server running .NET? Regards, Lorenzo From mono at c7x.de Tue Jul 3 18:26:51 2007 From: mono at c7x.de (Maurice Meeden) Date: Wed, 4 Jul 2007 00:26:51 +0200 Subject: [Mono-list] Have anyone heard of JBoss Web Server running .NET? In-Reply-To: <7FBE762435F80C4297CAE22194F379631E019305@CORREOGN.ln.corp.nacion.com> References: <7FBE762435F80C4297CAE22194F379631E019305@CORREOGN.ln.corp.nacion.com> Message-ID: <20070704002651.099f5847@pony.int.c6x.de> Am Tue, 3 Jul 2007 15:05:56 -0600 schrieb Lorenzo Jim?nez : > Have anyone heard, or have information of JBoss Web Server > running .NET? Do you mean this (dead) project? http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss.NET Greetings Maurice From bchanb at gmail.com Wed Jul 4 15:12:03 2007 From: bchanb at gmail.com (Brian Chan) Date: Wed, 4 Jul 2007 15:12:03 -0400 Subject: [Mono-list] new mono installation Message-ID: Hi all, I installed mono, mod-mono, xsp from source on a trustix box. I configured a test site for an asp.net 2.0 application that I have. But when I access the site I receive errors because it always interprets it as a .net 1.0 application instead of a .net 2.0 app. How can I let mono know it should be .net 2.0? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070704/6c909b8f/attachment.html From mmorano at mikeandwan.us Wed Jul 4 15:30:03 2007 From: mmorano at mikeandwan.us (Mike Morano) Date: Wed, 04 Jul 2007 15:30:03 -0400 Subject: [Mono-list] new mono installation In-Reply-To: References: Message-ID: <468BF53B.4010303@mikeandwan.us> Hello, If you would like to run your site in XSP, you should be using xsp2 (not xsp). For mod_mono, in your apache configuration, make sure you specify the mono server path, and point it at mod-mono-server2; for example: MonoServerPath "/usr/local/bin/mod-mono-server2" There is more detailed info on this in the man pages. -Mike Brian Chan wrote: > Hi all, > > I installed mono, mod-mono, xsp from source on a trustix box. I > configured a test site for an asp.net 2.0 application that I have. But > when I access the site I receive errors because it always interprets it > as a .net 1.0 application instead of a .net 2.0 app. How can I let mono > know it should be .net 2.0? > > Thanks. > > > ------------------------------------------------------------------------ > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From julien at sobrier.net Thu Jul 5 00:03:54 2007 From: julien at sobrier.net (Julien Sobrier) Date: Wed, 04 Jul 2007 21:03:54 -0700 Subject: [Mono-list] Problem with asp.net 2.0 after upgrading to 1.2.4 Message-ID: <468C6DAA.7080308@sobrier.net> Hello, I upgraded mono from 1.1.17 to 1.2.4. I had a small web application taht was running fine on the older version, but not with 1.2.4: 1/ when there is a compilation error, I dont get the name of the original file that fails, but only the name of the temporary ASP file, and without the source code displayed. I only get something like this: /tmp/username-temp-aspnet-0/8a6305a0/402057a0._0.cs(51,13) : error CS0103: [...] 2/ the home page does not compile anymore. It is split into 2 files (patial classes): default.aspx contains the HTML and Web controls, App_Code/Default.cs contains the c# code. In the aspx page,I have a treeview control: I use this treevew in the cs file: protected void Page_Load(object sender, EventArgs e) { [...] SourceTree.Nodes.Add(newNode); But at compilation time, mono complains that SourceTree does not exist. Is there something taht I should do differently in 1.2.4? Thank you Julien From rupanu.pal at rediffmail.com Thu Jul 5 00:47:15 2007 From: rupanu.pal at rediffmail.com (rupanu pal) Date: 5 Jul 2007 04:47:15 -0000 Subject: [Mono-list] mod-mono-server error : ACCESS FORBIDDEN Message-ID: <1183502822.S.25061.14307.webmail4.rediffmail.com.old.1183610835.13680@webmail.rediffmail.com> hello ,I have a simple test application which I am trying run on mod-mono-server.(It  ran successfully on xsp).I have made the following changes in my httpd.conf file:-***httpd.conf***   Include /etc/apache2/conf.d/mod_mono.conf  # LoadModule mono_module mod_mono.so   Alias /test \"/usr/lib/xsp/test\"   AddMonoApplications default \"/test:/usr/lib/xsp/test\"   <Location /test>       SetHandler mono   </Location>*****************Why LoadModule is commented is that mod-mono-server says the module is already loaded.Now when I run the application my browser says :- ##############Access forbidden! You don\'t have permission to access the requested object. It is either read-protected or not readable by the server.  If you think this is a server error, please contact the webmaster. Error 403localhost Thu Jul 5 10:03:54 2007 Apache/2.0.54 (Linux/SUSE)############# ##Please suggest me whether there is a access right issue or anything else.(I have issued command chmod -R 777 test).What do I need to do?Thanking yourupanu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070705/fc46e9ac/attachment.html From julien at sobrier.net Thu Jul 5 01:08:52 2007 From: julien at sobrier.net (Julien Sobrier) Date: Wed, 04 Jul 2007 22:08:52 -0700 Subject: [Mono-list] Problem with asp.net 2.0 after upgrading to 1.2.4 In-Reply-To: <468C6DAA.7080308@sobrier.net> References: <468C6DAA.7080308@sobrier.net> Message-ID: <468C7CE4.2040609@sobrier.net> Julien Sobrier wrote: > Hello, > I upgraded mono from 1.1.17 to 1.2.4. I had a small web application taht > was running fine on the older version, but not with 1.2.4: > > 1/ when there is a compilation error, I dont get the name of the > original file that fails, but only the name of the temporary ASP file, > and without the source code displayed. I only get something like this: > /tmp/username-temp-aspnet-0/8a6305a0/402057a0._0.cs(51,13) : error > CS0103: [...] > > 2/ the home page does not compile anymore. It is split into 2 files > (patial classes): default.aspx contains the HTML and Web controls, > App_Code/Default.cs contains the c# code. In the aspx page,I have a > treeview control: > I use this treevew in the cs file: > protected void Page_Load(object sender, EventArgs e) > { > [...] > SourceTree.Nodes.Add(newNode); > > But at compilation time, mono complains that SourceTree does not exist. > > Is there something taht I should do differently in 1.2.4? > > Thank you > > Julien > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > BTW, for 2/, I forgot to mention that if I add "protected TreeView SourceTree;" in App_Code/Default.cs, I get: error CS0102: The type `_Default' already contains a definition for `SourceTree' Julien From agoswami at infusion.com Thu Jul 5 16:29:02 2007 From: agoswami at infusion.com (Amit Goswami) Date: Thu, 5 Jul 2007 16:29:02 -0400 Subject: [Mono-list] Forms Authentication in ASP.Net Message-ID: <2E3B85873D744C47B8893AD06108A231427681@ts-mx-01.corp.infusiondev.com> Hello, I'm using Mono 1.2.4 on Windows XP for developing an Asp.Net 1.1 website. I've set it up for Forms authentication, and the settings in Web.Config look like this: The problem is, the Login.aspx page includes some css and js resources, and when I look at the HTTP trace using Fiddler I can see that those resources are not being served. I don't have this problem when the site is run using IIS. There is also a request for "/WebResource.axd?a=s&r=WebUIValidation.js&t=6333..." which is also not being served. (Isn't WebResource.axd specific to .net 2.0?) Any ideas? Thanks Amit From julien at sobrier.net Thu Jul 5 23:36:54 2007 From: julien at sobrier.net (Julien Sobrier) Date: Thu, 05 Jul 2007 20:36:54 -0700 Subject: [Mono-list] Problem with asp.net 2.0 after upgrading to 1.2.4 In-Reply-To: <468C7CE4.2040609@sobrier.net> References: <468C6DAA.7080308@sobrier.net> <468C7CE4.2040609@sobrier.net> Message-ID: <468DB8D6.7080308@sobrier.net> Julien Sobrier wrote: > Julien Sobrier wrote: >> Hello, >> I upgraded mono from 1.1.17 to 1.2.4. I had a small web application taht >> was running fine on the older version, but not with 1.2.4: >> >> 1/ when there is a compilation error, I dont get the name of the >> original file that fails, but only the name of the temporary ASP file, >> and without the source code displayed. I only get something like this: >> /tmp/username-temp-aspnet-0/8a6305a0/402057a0._0.cs(51,13) : error >> CS0103: [...] >> >> 2/ the home page does not compile anymore. It is split into 2 files >> (patial classes): default.aspx contains the HTML and Web controls, >> App_Code/Default.cs contains the c# code. In the aspx page,I have a >> treeview control: >> I use this treevew in the cs file: >> protected void Page_Load(object sender, EventArgs e) >> { >> [...] >> SourceTree.Nodes.Add(newNode); >> >> But at compilation time, mono complains that SourceTree does not exist. >> >> Is there something taht I should do differently in 1.2.4? >> >> Thank you >> >> Julien > > BTW, for 2/, I forgot to mention that if I add "protected TreeView > SourceTree;" in App_Code/Default.cs, I get: > error CS0102: The type `_Default' already contains a definition for > `SourceTree' For 1, it actually depends on the type of error. for 2, I have no clue. I tried the example given at http://lists.ximian.com/pipermail/mono-devel-list/2005-September/014868.html, and I run against the same problem. I don't use XSP2 or mod_mono to start the web server, but this piece of code: XSPWebSource source = new XSPWebSource(System.Net.IPAddress.Any, 8080); server = new ApplicationServer(source); server.AddApplicationsFromCommandLine("/:/path/web"); server.Start(true); Julien From wberrier at novell.com Fri Jul 6 00:59:00 2007 From: wberrier at novell.com (Wade Berrier) Date: Thu, 05 Jul 2007 22:59:00 -0600 Subject: [Mono-list] beginner trying to create a application In-Reply-To: 468546D9.1080109@gmx.de References: 468546D9.1080109@gmx.de Message-ID: <1183697940.11560.16.camel@berrier.lan> Hi, On Fri, 2007-06-29 at 19:52 +0200, TeamChaos wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > hi, > > i like to create an application with a database usable in windows, linux > and mac. > so i choose mono, gtk# and sqlite for my purpose. > but i'm getting a lil frustrated because support is heavily available > especially for beginners i think. > > i did a lil test app, not big thing really: > i'm using monodevelop within ubuntu. > i started a new project choosing "Gtk# 2.0 Project" in Monodevelop. > then i put 2 or 3 buttons on the main window and some label and text entry. > then i added some testing for the sqlite database. just connection and > creating a new database. > > that all works perverctly when running from monodevelop or even in linux. > but swifting to windows... (i don't have mac yet). > it puts me a error saying it can't find and by that load the gtk-sharp > assembly (version 2.10). > i thought that is installed with the mono windows package? > but even if i download it manually it gives the same error. > what is wrong? The issue is that your app is compiled against gtk# 2.10, where the windows installer comes with gtk# 2.8. (The win32 installer will probably upgraded to 2.10 for the next release). A solution needs to be found to easily compile against older gtk# versions to enable running on different/older systems. Until that happens, this will be a common problem for people deploying gtk# apps without recompiling. Mike Kestner talked about having "sdk" installs for older gtk# versions to make this possible. The Mac installation doesn't come with gtk#. There are some tutorials out there on getting it installed, but it's quite the endeavor compared to a simple install. Wade From adriaanvk at gmail.com Fri Jul 6 04:52:41 2007 From: adriaanvk at gmail.com (Adriaan van Kekem) Date: Fri, 6 Jul 2007 01:52:41 -0700 (PDT) Subject: [Mono-list] mod-mono-server2 with threadpool does not correct threadstatic Message-ID: <11460637.post@talk.nabble.com> Hi, I have a mono application running with mod_mono on mono 1.2.4. I have created somewhere in my webapp a threadstatic variable, actually a generic stack with specific objects. No i am running my webapp, and seeing my log file, i see that sometimes the same thread is reused later. This is logical, because there is a threadpool containing all threads, using them later again. But when i see that the same thread is reused, the threadstatic variables are not reset. I don't know if this is a bug, from compiler view its right, because it's the same thread. But from webapplication view, i think this is not right. Is there any solution for this, or have i to report this as a real bug? greetings, Adriaan -- View this message in context: http://www.nabble.com/mod-mono-server2-with-threadpool-does-not-correct-threadstatic-tf4034291.html#a11460637 Sent from the Mono - General mailing list archive at Nabble.com. From adriaanvk at gmail.com Fri Jul 6 05:48:47 2007 From: adriaanvk at gmail.com (Adriaan van Kekem) Date: Fri, 6 Jul 2007 02:48:47 -0700 (PDT) Subject: [Mono-list] Forms Authentication in ASP.Net In-Reply-To: <2E3B85873D744C47B8893AD06108A231427681@ts-mx-01.corp.infusiondev.com> References: <2E3B85873D744C47B8893AD06108A231427681@ts-mx-01.corp.infusiondev.com> Message-ID: <11461312.post@talk.nabble.com> Hi, Which webserver are u running? It seems that you have running the mono handler on all type of files. In apache you have configure it with SetHandler mono, so all files are handled. If it's allowed to download those files, you can give anonymous rights to that files in your web.config: or you can use AddHandler to prevent js files to be handled by mono. Adriaan Amit Goswami wrote: > > Hello, > I'm using Mono 1.2.4 on Windows XP for developing an Asp.Net 1.1 website. > I've set it up for Forms authentication, and the settings in Web.Config > look like this: > > > > timeout="120" /> > > > > The problem is, the Login.aspx page includes some css and js resources, > and when I look at the HTTP trace using Fiddler I can see that those > resources are not being served. I don't have this problem when the site is > run using IIS. > > There is also a request for > "/WebResource.axd?a=s&r=WebUIValidation.js&t=6333..." which is also not > being served. (Isn't WebResource.axd specific to .net 2.0?) > > Any ideas? > > Thanks > > Amit > > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/Forms-Authentication-in-ASP.Net-tf4032156.html#a11461312 Sent from the Mono - General mailing list archive at Nabble.com. From robertj at gmx.net Fri Jul 6 06:15:57 2007 From: robertj at gmx.net (Robert Jordan) Date: Fri, 06 Jul 2007 12:15:57 +0200 Subject: [Mono-list] mod-mono-server2 with threadpool does not correct threadstatic In-Reply-To: <11460637.post@talk.nabble.com> References: <11460637.post@talk.nabble.com> Message-ID: Adriaan van Kekem wrote: > Hi, > > I have a mono application running with mod_mono on mono 1.2.4. I have > created somewhere in my webapp a threadstatic variable, actually a generic > stack with specific objects. No i am running my webapp, and seeing my log > file, i see that sometimes the same thread is reused later. This is logical, > because there is a threadpool containing all threads, using them later > again. But when i see that the same thread is reused, the threadstatic > variables are not reset. I don't know if this is a bug, from compiler view > its right, because it's the same thread. But from webapplication view, i > think this is not right. > > Is there any solution for this, or have i to report this as a real bug? This is not a bug. As you said, the threads are reused. That's why the [ThreadStatic] fields are already initialized. Robert From adriaanvk at gmail.com Fri Jul 6 06:32:11 2007 From: adriaanvk at gmail.com (Adriaan van Kekem) Date: Fri, 6 Jul 2007 03:32:11 -0700 (PDT) Subject: [Mono-list] mod-mono-server2 with threadpool does not correct threadstatic In-Reply-To: References: <11460637.post@talk.nabble.com> Message-ID: <11461978.post@talk.nabble.com> Hi, So, is there a possibility to solve this problem without manually clearing the stack by each new request in the global.asax? or is there no standard way to solve this problem? greetings, Adriaan Robert Jordan wrote: > > Adriaan van Kekem wrote: >> Hi, >> >> I have a mono application running with mod_mono on mono 1.2.4. I have >> created somewhere in my webapp a threadstatic variable, actually a >> generic >> stack with specific objects. No i am running my webapp, and seeing my log >> file, i see that sometimes the same thread is reused later. This is >> logical, >> because there is a threadpool containing all threads, using them later >> again. But when i see that the same thread is reused, the threadstatic >> variables are not reset. I don't know if this is a bug, from compiler >> view >> its right, because it's the same thread. But from webapplication view, i >> think this is not right. >> >> Is there any solution for this, or have i to report this as a real bug? > > This is not a bug. As you said, the threads are reused. That's why > the [ThreadStatic] fields are already initialized. > > Robert > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/mod-mono-server2-with-threadpool-does-not-correct-threadstatic-tf4034291.html#a11461978 Sent from the Mono - General mailing list archive at Nabble.com. From rook at roo.k.pl Fri Jul 6 06:40:05 2007 From: rook at roo.k.pl (=?UTF-8?B?TWljaGHFgiBaaWVtc2tp?=) Date: Fri, 06 Jul 2007 12:40:05 +0200 Subject: [Mono-list] mod-mono-server2 with threadpool does not correct threadstatic In-Reply-To: <11461978.post@talk.nabble.com> References: <11460637.post@talk.nabble.com> <11461978.post@talk.nabble.com> Message-ID: <468E1C05.10108@roo.k.pl> Hi! If you want your variable reset after each request why delare it static? Pleas give some further details about what are you trying to accomplish, then maybe someone can point you to other solution. Cheers! Micha? Ziemski Adriaan van Kekem pisze: > Hi, > > So, is there a possibility to solve this problem without manually clearing > the stack by each new request in the global.asax? or is there no standard > way to solve this problem? > > greetings, > > Adriaan > > > > Robert Jordan wrote: > >> Adriaan van Kekem wrote: >> >>> Hi, >>> >>> I have a mono application running with mod_mono on mono 1.2.4. I have >>> created somewhere in my webapp a threadstatic variable, actually a >>> generic >>> stack with specific objects. No i am running my webapp, and seeing my log >>> file, i see that sometimes the same thread is reused later. This is >>> logical, >>> because there is a threadpool containing all threads, using them later >>> again. But when i see that the same thread is reused, the threadstatic >>> variables are not reset. I don't know if this is a bug, from compiler >>> view >>> its right, because it's the same thread. But from webapplication view, i >>> think this is not right. >>> >>> Is there any solution for this, or have i to report this as a real bug? >>> >> This is not a bug. As you said, the threads are reused. That's why >> the [ThreadStatic] fields are already initialized. >> >> Robert >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> >> > > From adriaanvk at gmail.com Fri Jul 6 06:49:21 2007 From: adriaanvk at gmail.com (Adriaan van Kekem) Date: Fri, 6 Jul 2007 03:49:21 -0700 (PDT) Subject: [Mono-list] mod-mono-server2 with threadpool does not correct threadstatic In-Reply-To: <468E1C05.10108@roo.k.pl> References: <11460637.post@talk.nabble.com> <11461978.post@talk.nabble.com> <468E1C05.10108@roo.k.pl> Message-ID: <11462163.post@talk.nabble.com> Hi, ok, great, it's better to explain why ;-) I have implemented a scenario with using statement. So, i have created a context object which is saved in your session. But it's possible to define a sub-context, for a systemaccount to do some tasks. After the task has been done, you revert to your own context: using(Context c = new Context()) { //system account tasks } //your own tasks In Context i have a threadstatic variable Context.Current, which gives you your own context. This is also used in the transactionscope object of .net 2.0. So i use a Stack containing all contexts currently on stack. So, when you stop your request, the stack is still not empty, because your own context is not disposed (its saved in session object). So, when other user is using your thread from pool, the stack is not empty! Hopefully this gives you some information what i am doing. Thank you in advance for your answer! Adriaan Micha? Ziemski wrote: > > Hi! > > If you want your variable reset after each request why delare it static? > > Pleas give some further details about what are you trying to accomplish, > then maybe someone can point you to other solution. > > Cheers! > Micha? Ziemski > > Adriaan van Kekem pisze: >> Hi, >> >> So, is there a possibility to solve this problem without manually >> clearing >> the stack by each new request in the global.asax? or is there no standard >> way to solve this problem? >> >> greetings, >> >> Adriaan >> >> >> >> Robert Jordan wrote: >> >>> Adriaan van Kekem wrote: >>> >>>> Hi, >>>> >>>> I have a mono application running with mod_mono on mono 1.2.4. I have >>>> created somewhere in my webapp a threadstatic variable, actually a >>>> generic >>>> stack with specific objects. No i am running my webapp, and seeing my >>>> log >>>> file, i see that sometimes the same thread is reused later. This is >>>> logical, >>>> because there is a threadpool containing all threads, using them later >>>> again. But when i see that the same thread is reused, the threadstatic >>>> variables are not reset. I don't know if this is a bug, from compiler >>>> view >>>> its right, because it's the same thread. But from webapplication view, >>>> i >>>> think this is not right. >>>> >>>> Is there any solution for this, or have i to report this as a real bug? >>>> >>> This is not a bug. As you said, the threads are reused. That's why >>> the [ThreadStatic] fields are already initialized. >>> >>> Robert >>> >>> _______________________________________________ >>> Mono-list maillist - Mono-list at lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-list >>> >>> >>> >> >> > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/mod-mono-server2-with-threadpool-does-not-correct-threadstatic-tf4034291.html#a11462163 Sent from the Mono - General mailing list archive at Nabble.com. From ribeirogustavoti at gmail.com Fri Jul 6 08:14:34 2007 From: ribeirogustavoti at gmail.com (Gustavo Ribeiro De Bonis) Date: Fri, 06 Jul 2007 08:14:34 -0400 Subject: [Mono-list] Oracle Connection Message-ID: <468E322A.7040602@gmail.com> Hi, i'm new to linux and mono, i'm trying to do my home work on linux and mono. I need to develop a simple software that just connects to a database made in oracle (10g), but it can't connects to oracle server (running on local machine), and everytime i receive this error: Unhandled Exception: System.DllNotFoundException: libclntsh.so ... . . . Can somebody help me? i need to do this because i'm learning this stuff in my college and i don't want to move to Microsoft plataform and work with Visual Studio. i've already runed the oracle_env script and set my variables up. Oracle Client is instaled, the server is running too. I can connect with the Application Express (my browser) and with sqlplus* but not with Mono. Distro: Fedora 7 My Kernel is 2.6.21 Mono version: 1.2.4 Mono Data Oracle: 1.2.4.novell Oracle: 10g (10) $ORACLE_HOME PATH = /usr/lib/oracle/xe/app/oracle/product/10.2.0/client $LD_LIBRARY_PATH = ... From mszpak at wp.pl Fri Jul 6 07:22:51 2007 From: mszpak at wp.pl (=?ISO-8859-2?Q?Marcin_Zaj=B1czkowski?=) Date: Fri, 06 Jul 2007 13:22:51 +0200 Subject: [Mono-list] Problem with gecko-sharp and sample applications In-Reply-To: <468a3095764c0@wp.pl> References: <468a3095764c0@wp.pl> Message-ID: On 2007-07-03 13:18, Marcin Zaj?czkowski wrote: > Hi, > > > I'm unable to run sample applications for gecko-sharp. It gets SIGSEGV > (stack trace below - if it needed I probably could add some debug > symbols for it). Guys, I don't believe that anyone didn't use it. If someone, please let me know which version (and taken from) of libgtkembedmoz.so you used. I tried also with .so compiled from source tarball (seamonkey-1.1.2.source.tar.bz2), but with the same effect (SIGSEGV). Btw, if there is more suitable mailing list related to gecko-sharp please let me know. Regards Marcin > I tried with gecko-sharp-2.0-0.11 (installed on my system from RPM - > Fedora Core 6) and sample applications from gecko-sharp-2.0-0.11 > tarball. I modified compilation command to have: > > [marcinz at bolger sample]$ /usr/bin/mcs -unsafe > -lib:/usr/lib/firefox-1.5.0.12/ > -r:/usr/lib/mono/gecko-sharp-2.0/gecko-sharp.dll -lib:/usr/lib > -pkg:gtk-sharp-2.0 -out:WebThumbnailer.exe ./WebThumbnailer.cs > > libgtkembedmoz.so was taken from firefox-1.5.0.12 (and from > thunderbird-1.5.0.12) (also from RPM). I seems to be linked with gtk2: > > [marcinz at bolger gecko-sharp-2.0-0.11]$ ldd > /usr/lib/firefox-1.5.0.12/libgtkembedmoz.so | grep gtk > libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x06b19000) > > I tried also with that lib taken from esc (Enterprise Security Client) > which didn't get SIGSEGV, but I only saw white window. > > > Could it be problem with libgtkemedmoz.so? I so, where can I download > its "working" version? > > > Thanks for help > Marcin > > > > [marcinz at bolger sample]$ LD_LIBRARY_PATH=/usr/lib/firefox-1.5.0.12/ mono > WebThumbnailer.exe http://www.google.pl/ > > ================================================================= > Got a SIGSEGV while executing native code. This usually indicates > a fatal error in the mono runtime or one of the native libraries > used by your application. > ================================================================= > > Stacktrace: > > at (wrapper managed-to-native) Gtk.Widget.gtk_widget_show_all (intptr) > <0x00004> > at (wrapper managed-to-native) Gtk.Widget.gtk_widget_show_all (intptr) > <0xffffffff> > at Gtk.Widget.ShowAll () <0x0001a> > at X.Main (string[]) <0x002ad> > at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[] > (object,intptr,intptr,intptr) <0xffffffff> > > Native stacktrace: > > mono(mono_handle_native_sigsegv+0xe6) [0x814f9b6] > mono [0x811bad8] > [0xd6f440] > /usr/lib/firefox-1.5.0.12/libgtkembedmoz.so [0xa322b1] > /usr/lib/firefox-1.5.0.12/libgtkembedmoz.so [0xa2fc9b] > /lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x49) [0x8850f9] > /lib/libgobject-2.0.so.0 [0x876589] > /lib/libgobject-2.0.so.0(g_closure_invoke+0x12b) [0x877d9b] > /lib/libgobject-2.0.so.0 [0x8888ca] > /lib/libgobject-2.0.so.0(g_signal_emit_valist+0x8c7) [0x889957] > /lib/libgobject-2.0.so.0(g_signal_emit+0x29) [0x889b19] > /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_realize+0xba) [0x6d681ea] > /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_map+0xd9) [0x6d684d9] > /usr/lib/libgtk-x11-2.0.so.0 [0x6d77d95] > /lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x49) [0x8850f9] > /lib/libgobject-2.0.so.0 [0x876589] > /lib/libgobject-2.0.so.0(g_closure_invoke+0x12b) [0x877d9b] > /lib/libgobject-2.0.so.0 [0x8888ca] > /lib/libgobject-2.0.so.0(g_signal_emit_valist+0x8c7) [0x889957] > /lib/libgobject-2.0.so.0(g_signal_emit+0x29) [0x889b19] > /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_map+0x71) [0x6d68471] > /usr/lib/libgtk-x11-2.0.so.0 [0x6d77dde] > /lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x49) [0x8850f9] > /lib/libgobject-2.0.so.0 [0x876589] > /lib/libgobject-2.0.so.0(g_closure_invoke+0x12b) [0x877d9b] > /lib/libgobject-2.0.so.0 [0x8888ca] > /lib/libgobject-2.0.so.0(g_signal_emit_valist+0x8c7) [0x889957] > /lib/libgobject-2.0.so.0(g_signal_emit+0x29) [0x889b19] > /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_show+0x98) [0x6d68be8] > /usr/lib/libgtk-x11-2.0.so.0 [0x6bb7cfb] > /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_show_all+0x4d) [0x6d6891d] > [0x1282b4] > [0x12826b] > [0x11d526] > [0x11c7c3] > mono(mono_runtime_exec_main+0x62) [0x80e5b72] > mono(mono_runtime_run_main+0x1b9) [0x80e5e59] > mono(mono_main+0xe5e) [0x805d36e] > mono [0x805c002] > /lib/libc.so.6(__libc_start_main+0xdc) [0x4fef2c] > mono [0x805bf51] > Aborted > From bestvina at math.utah.edu Mon Jul 2 17:51:08 2007 From: bestvina at math.utah.edu (Mladen Bestvina) Date: Mon, 02 Jul 2007 15:51:08 -0600 Subject: [Mono-list] Windows.Forms not found Message-ID: <4689734C.9040704@math.utah.edu> Hello! The compilation of the code below fails, apparently because Windows.Forms cannot be found on the system. I do have Windows.Forms.dll. I am using Ubuntu Feisty Fawn and I installed mono from ubuntu packages. Any advice is appreciated. Mladen ================================= mb at hvar:~/mono$ mcs -r:System.Drawing sample.cs sample.cs(3,7): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference? sample.cs(3,1): error CS0246: The type or namespace name `Windows.Forms' could not be found. Are you missing a using directive or an assembly reference? Compilation failed: 2 error(s), 0 warnings =========================================== using System; using System.Drawing; using System.Windows.Forms; public class HelloWorld : Form { static public void Main () { Application.Run (new HelloWorld ()); } public HelloWorld () { Button b = new Button (); b.Text = "Click Me!"; b.Click += new EventHandler (Button_Click); Controls.Add (b); } private void Button_Click (object sender, EventArgs e) { MessageBox.Show ("Button Clicked!"); } } From choclatboyz at yahoo.fr Wed Jul 4 16:31:21 2007 From: choclatboyz at yahoo.fr (choclatboy) Date: Wed, 4 Jul 2007 13:31:21 -0700 (PDT) Subject: [Mono-list] beginner trying to create a application In-Reply-To: <468546D9.1080109@gmx.de> References: <468546D9.1080109@gmx.de> Message-ID: <11437135.post@talk.nabble.com> TeamChaos wrote: > > that all works perverctly when running from monodevelop or even in linux. > but swifting to windows... (i don't have mac yet). > it puts me a error saying it can't find and by that load the gtk-sharp > assembly (version 2.10). > i thought that is installed with the mono windows package? > but even if i download it manually it gives the same error. > what is wrong? > hi, I suppose you're starting the application (exe file) directly by double click on it or from the console. The solution is: - Execute you application using the mono.exe (C:\program files\mono-xxx\bin\mono.exe) like this: "mono youApp.exe". - If you want to execute you apps using the MS Framework and the GT# libraries, you have to add this libraries to the GAC. -- View this message in context: http://www.nabble.com/beginner-trying-to-create-a-application-tf4001143.html#a11437135 Sent from the Mono - General mailing list archive at Nabble.com. From Dan.Maser at inin.com Fri Jul 6 10:27:06 2007 From: Dan.Maser at inin.com (Maser, Dan) Date: Fri, 6 Jul 2007 10:27:06 -0400 Subject: [Mono-list] Windows.Forms not found In-Reply-To: <4689734C.9040704@math.utah.edu> References: <4689734C.9040704@math.utah.edu> Message-ID: <260A0A30F9017945932CC4F7B911B339058A39F5@i3mail1.i3domain.inin.com> You need to add the reference to System.Windows.Forms just like you did System.Drawing. Such as "mcs -r:System.Drawing -r:System.Windows.Forms sample.cs" -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Mladen Bestvina Sent: Monday, July 02, 2007 4:51 PM To: mono-list at lists.ximian.com Subject: [Mono-list] Windows.Forms not found Hello! The compilation of the code below fails, apparently because Windows.Forms cannot be found on the system. I do have Windows.Forms.dll. I am using Ubuntu Feisty Fawn and I installed mono from ubuntu packages. Any advice is appreciated. Mladen ================================= mb at hvar:~/mono$ mcs -r:System.Drawing sample.cs sample.cs(3,7): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference? sample.cs(3,1): error CS0246: The type or namespace name `Windows.Forms' could not be found. Are you missing a using directive or an assembly reference? Compilation failed: 2 error(s), 0 warnings =========================================== using System; using System.Drawing; using System.Windows.Forms; public class HelloWorld : Form { static public void Main () { Application.Run (new HelloWorld ()); } public HelloWorld () { Button b = new Button (); b.Text = "Click Me!"; b.Click += new EventHandler (Button_Click); Controls.Add (b); } private void Button_Click (object sender, EventArgs e) { MessageBox.Show ("Button Clicked!"); } } _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From amc1999 at gmail.com Fri Jul 6 11:21:19 2007 From: amc1999 at gmail.com (Amc Gmail) Date: Fri, 6 Jul 2007 11:21:19 -0400 Subject: [Mono-list] Oracle Connection In-Reply-To: <468E6710.1080800@gmail.com> References: <468E322A.7040602@gmail.com> <48a304b00707060634y5c405ca0h580f0fe4da390531@mail.gmail.com> <468E6710.1080800@gmail.com> Message-ID: <48a304b00707060821h668e3c23t8fdfb71a6c78ee30@mail.gmail.com> sorry, i forgot small things. most likely your $ORACLE_HOME/lib has libclntsh.so.10.1 but mono looking for libclntsh.so and cann't handle version number. so, in my case i simply using ln -s like this: ln -s /home/my_home/oracle_client/libclntsh.so /home/my_home/oracle_client/libclntsh.so.10.1 or you can use mono dll.config files, which also works for me, but little bit more tricky. regards, --amc On 7/6/07, Gustavo Ribeiro De Bonis wrote: > Hi Amc, > > thks for helping me, but it didnt work. > > My oracle client path: > $ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/ > > /server/bin/oracle_env.sh: > > ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server > export ORACLE_HOME > ORACLE_SID=XE > export ORACLE_SID > NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh` > export NLS_LANG > PATH=$ORACLE_HOME/bin:$PATH > export PATH > if [ $?LD_LIBRARY_PATH ] > then > LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH > else > LD_LIBRARY_PATH=$ORACLE_HOME/lib > fi > export LD_LIBRARY_PATH > > /client/bin/oracle_env.sh: > > ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client > export ORACLE_HOME > NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh` > export NLS_LANG > SQLPATH=$ORACLE_HOME/sqlplus > export SQLPATH > PATH=$ORACLE_HOME/bin:$PATH > export PATH > if [ $?LD_LIBRARY_PATH ] > then > LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH > else > LD_LIBRARY_PATH=$ORACLE_HOME/lib > fi > export LD_LIBRARY_PATH > > I do not know what to do, i checked the libs, but they are all right in > the right place. > > I can't find why my mono-data-oracle doesnt find the dll > > My installation is default. > > I copied the contents of your script but it didn't work out. > > sqlplus works fine, but mono doesnt. > > Sorry by bother you, and thanks anyway. > > Ribeiro Gustavo. > > Amc Gmail escreveu: > > It seems to be > > export LD_LIBRARY_PATH=$ORACLE_HOME PATH:$LD_LIBRARY_PATH > > can help. > > > > in my case i just download instant client from Oracle site, unpack it > > into /home/my_home/oracle_instant_client/, create tnsnames.ora and to > > setup environment doing: > > source set_my_oracle.sh > > where set_my_oracle.sh contains: > > > > #!/bin/sh > > ORACLE_CLIENT_HOME=/home/my_home/oracle_instant_client > > export LD_LIBRARY_PATH=$ORACLE_CLIENT_HOME:$LD_LIBRARY_PATH > > export PATH=$ORACLE_CLIENT_HOME:$PATH > > export TNS_ADMIN=$ORACLE_CLIENT_HOME > > > > after that sqlplus and mono xsp works fine. > > good luck, > > --amc > > > > On 7/6/07, Gustavo Ribeiro De Bonis wrote: > >> Hi, i'm new to linux and mono, i'm trying to do my home work on linux > >> and mono. > >> > >> I need to develop a simple software that just connects to a database > >> made in oracle (10g), but it can't connects to oracle server (running on > >> local machine), and everytime i receive this error: > >> > >> Unhandled Exception: System.DllNotFoundException: libclntsh.so > >> ... > >> . > >> . > >> . > >> > >> Can somebody help me? > >> > >> i need to do this because i'm learning this stuff in my college and i > >> don't want to move to Microsoft plataform and work with Visual Studio. > >> > >> i've already runed the oracle_env script and set my variables up. > >> > >> Oracle Client is instaled, the server is running too. I can connect with > >> the Application Express (my browser) and with sqlplus* but not with > >> Mono. > >> > >> Distro: Fedora 7 > >> My Kernel is 2.6.21 > >> Mono version: 1.2.4 > >> Mono Data Oracle: 1.2.4.novell > >> Oracle: 10g (10) > >> $ORACLE_HOME PATH = /usr/lib/oracle/xe/app/oracle/product/10.2.0/client > >> $LD_LIBRARY_PATH = ... > >> > >> > >> > >> > >> _______________________________________________ > >> Mono-list maillist - Mono-list at lists.ximian.com > >> http://lists.ximian.com/mailman/listinfo/mono-list > >> > > > > > From Dan.Maser at inin.com Fri Jul 6 12:53:37 2007 From: Dan.Maser at inin.com (Maser, Dan) Date: Fri, 6 Jul 2007 12:53:37 -0400 Subject: [Mono-list] Windows.Forms not found In-Reply-To: <468E6ACE.8030002@math.utah.edu> References: <4689734C.9040704@math.utah.edu> <260A0A30F9017945932CC4F7B911B339058A39F5@i3mail1.i3domain.inin.com> <468E6ACE.8030002@math.utah.edu> Message-ID: <260A0A30F9017945932CC4F7B911B339058A3A17@i3mail1.i3domain.inin.com> I checked my machine and I have the ".dll" extension in my command line "-r:System.Window.Forms.dll" If adding the ".dll" to your example doesn't work then I'm out of ideas :) -----Original Message----- From: Mladen Bestvina [mailto:bestvina at math.utah.edu] Sent: Friday, July 06, 2007 11:16 AM To: Maser, Dan Cc: mono-list at lists.ximian.com Subject: Re: [Mono-list] Windows.Forms not found Thanks Dan. I tried this, but I get: mb at hvar:~/mono$ mcs -r:System.Drawing -r:System.Windows.Forms sample.cs error CS0006: cannot find metadata file `System.Windows.Forms' Compilation failed: 1 error(s), 0 warnings Maser, Dan wrote: > You need to add the reference to System.Windows.Forms just like you > did System.Drawing. Such as "mcs -r:System.Drawing > -r:System.Windows.Forms sample.cs" > > -----Original Message----- > From: mono-list-bounces at lists.ximian.com > [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Mladen Bestvina > Sent: Monday, July 02, 2007 4:51 PM > To: mono-list at lists.ximian.com > Subject: [Mono-list] Windows.Forms not found > > Hello! > > The compilation of the code below fails, apparently because > Windows.Forms cannot be found on the system. I do have > Windows.Forms.dll. I am using Ubuntu Feisty Fawn and I installed mono > from ubuntu packages. > > Any advice is appreciated. > > Mladen > > ================================= > > mb at hvar:~/mono$ mcs -r:System.Drawing sample.cs > sample.cs(3,7): error CS0234: The type or namespace name `Windows' does > not exist in the namespace `System'. Are you missing an assembly > reference? > sample.cs(3,1): error CS0246: The type or namespace name `Windows.Forms' > > could not be found. Are you missing a using directive or an assembly > reference? > Compilation failed: 2 error(s), 0 warnings > > > > =========================================== > > using System; > using System.Drawing; > using System.Windows.Forms; > > public class HelloWorld : Form > { > static public void Main () > { > Application.Run (new HelloWorld ()); > } > > public HelloWorld () > { > Button b = new Button (); > b.Text = "Click Me!"; > b.Click += new EventHandler (Button_Click); > Controls.Add (b); > } > > private void Button_Click (object sender, EventArgs e) > { > MessageBox.Show ("Button Clicked!"); > } > } > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > > From lluis at ximian.com Fri Jul 6 13:00:30 2007 From: lluis at ximian.com (Lluis Sanchez) Date: Fri, 06 Jul 2007 19:00:30 +0200 Subject: [Mono-list] ANNOUNCE: Mono.Addins 0.2 Message-ID: <1183741230.4539.32.camel@portador.site> Hi, I'm pleased to announce the release of Mono.Addins 0.2. Mono.Addins is a generic framework for creating extensible applications, and for creating libraries which extend those applications. The 0.2 release comes with many bug fixes and some improvements and new features: * Assemblies registered in the GAC can now be referenced from .addins files (http://www.mono-project.com/Mono.Addins_Reference_Manual#Add-ins_in_the_GAC). * Add-ins now have a private data path which can be used by extensions to store arbitrary data files at run time (http://www.mono-project.com/Mono.Addins_Reference_Manual#The_private_data_directory). * Added support for add-ins which are disabled by default. * The core library no longer depends on Mono.Posix. * The assemblies are n