From milosz at mindtouchsoftware.com Sun Oct 1 15:28:21 2006 From: milosz at mindtouchsoftware.com (Milosz Tanski) Date: Sun, 01 Oct 2006 15:28:21 -0400 Subject: [Mono-list] C# and Aspect Oriented Programing Message-ID: <452016D5.1000907@mindtouchsoftware.com> Does anyone know of any Aspect Oriented frameworks that work with mono? I've looked at AspectSharp from Castle Rock, but according to them it doesn't work with mono? At my school one the interesting on-going projects is a AOP project... So far the people i talked to told me to use AspectJ. I'm not a Java guy, nor ever was I, so I'm looking for a solution that works with C#/mono so I'm not forced to use Java/Eclipse. Thanks in advance. From uncertain.genius at gmail.com Sun Oct 1 18:16:29 2006 From: uncertain.genius at gmail.com (Rob Brown-Bayliss) Date: Mon, 2 Oct 2006 11:16:29 +1300 Subject: [Mono-list] RSS readers Message-ID: <46f4900d0610011516l71ef75bao51401ee10464d608@mail.gmail.com> Hi, I am using a dll called Rss.NET from http://rss-net.sourceforge.net/ I can't find any contact on their web site so I thought I would ask here: I have this sample of an rss feed: // // Sun, 01 Oct 2006 20:06:41 GMT // M 2.7, Southern California // October 01, 2006 20:06:41 GMT // - // // http://earthquake.usgs.gov/eqcenter/recenteqsww/Quakes/ci14254252.php // // 33.2446 // -116.1261 // 2 // pasthour // 3.50 km // ci14254252 // and this snipet of code: private void ListQuakes() { Console.WriteLine (this.channel.Title); items = this.channel.Items; IEnumerator enu = this.items.GetEnumerator(); while (enu.MoveNext ()) { Rss.RssItem item = (Rss.RssItem) enu.Current; Console.WriteLine (item.Title); Console.WriteLine (item.Description); } } which works, but I cant seem to find any way of extracting the Message-ID: <000d01c6e5a9$a2ddb3b0$1c00a8c0@workstation8> You could do string comparison or parse it as XML. It looks like you are getting valid XML. -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Rob Brown-Bayliss Sent: Sunday, October 01, 2006 5:16 PM To: Mono-list at lists.ximian.com Subject: [Mono-list] RSS readers Hi, I am using a dll called Rss.NET from http://rss-net.sourceforge.net/ I can't find any contact on their web site so I thought I would ask here: I have this sample of an rss feed: // // Sun, 01 Oct 2006 20:06:41 GMT // M 2.7, Southern California // October 01, 2006 20:06:41 GMT // - // // http://earthquake.usgs.gov/eqcenter/recenteqsww/Quakes/ci14254252.php // // 33.2446 // -116.1261 // 2 // pasthour // 3.50 km // ci14254252 // and this snipet of code: private void ListQuakes() { Console.WriteLine (this.channel.Title); items = this.channel.Items; IEnumerator enu = this.items.GetEnumerator(); while (enu.MoveNext ()) { Rss.RssItem item = (Rss.RssItem) enu.Current; Console.WriteLine (item.Title); Console.WriteLine (item.Description); } } which works, but I cant seem to find any way of extracting the References: <452016D5.1000907@mindtouchsoftware.com> Message-ID: <4520B06E.9070705@gmail.com> Milosz Tanski escribi?: > Does anyone know of any Aspect Oriented frameworks that work with mono? > I've looked at AspectSharp from Castle Rock, but according to them it > doesn't work with mono? At my school one the interesting on-going > projects is a AOP project... So far the people i talked to told me to > use AspectJ. I'm not a Java guy, nor ever was I, so I'm looking for a > solution that works with C#/mono so I'm not forced to use Java/Eclipse. I think Spring.NET implements AOP[1], but don't know if anyone has already tested it with Mono. Regards, Andr?s [ knocte ] [1] http://www.springframework.net/doc/reference/html/aop.html -- From gburger at cs.up.ac.za Mon Oct 2 07:51:24 2006 From: gburger at cs.up.ac.za (Gert Burger) Date: Mon, 02 Oct 2006 13:51:24 +0200 Subject: [Mono-list] SerialPort access Message-ID: <4520FD3C.6000807@cs.up.ac.za> Hi I am required to access a serial port from our mono app which will run on both linux and windows. Is there any support for this? I have looked at the System.IO.Ports but have failed to incorporate it with out app(a combination of monodevelop and mcs crashes). Are there any other method to do this or have someone incorporated System.IO.Ports into an .NET v1.x app? Thanks -- Gert Burger TechTeam Computer Science Department University of Pretoria From kornelpal at gmail.com Mon Oct 2 08:11:33 2006 From: kornelpal at gmail.com (=?iso-8859-1?B?S29ybulsIFDhbA==?=) Date: Mon, 2 Oct 2006 14:11:33 +0200 Subject: [Mono-list] SerialPort access References: <4520FD3C.6000807@cs.up.ac.za> Message-ID: <000c01c6e61b$e7dccab0$0100a8c0@kornelpal.hu> > I have looked at the System.IO.Ports but have failed to incorporate it > with out app(a combination of monodevelop and mcs crashes). > Are there any other method to do this or have someone incorporated > System.IO.Ports into an .NET v1.x app? Why don't you use profile 2.0? That way you can use System.IO.Ports on Mono and MS.NET as well without any hacks. Korn?l From gburger at cs.up.ac.za Mon Oct 2 08:14:24 2006 From: gburger at cs.up.ac.za (Gert Burger) Date: Mon, 02 Oct 2006 14:14:24 +0200 Subject: [Mono-list] SerialPort access In-Reply-To: <000c01c6e61b$e7dccab0$0100a8c0@kornelpal.hu> References: <4520FD3C.6000807@cs.up.ac.za> <000c01c6e61b$e7dccab0$0100a8c0@kornelpal.hu> Message-ID: <452102A0.8080606@cs.up.ac.za> Korn?l P?l wrote: >> I have looked at the System.IO.Ports but have failed to incorporate it >> with out app(a combination of monodevelop and mcs crashes). >> Are there any other method to do this or have someone incorporated >> System.IO.Ports into an .NET v1.x app? > > Why don't you use profile 2.0? > > That way you can use System.IO.Ports on Mono and MS.NET as well > without any hacks. > > Korn?l I tried this and it seems not to complain. For some reason I did not know about the 'profiles' in monodevelop. Thanks, all sorted, for now. -- Gert Burger TechTeam Computer Science Department University of Pretoria From listmono at gmail.com Mon Oct 2 08:36:22 2006 From: listmono at gmail.com (LC) Date: Mon, 2 Oct 2006 20:36:22 +0800 Subject: [Mono-list] mono installation on CentOS 4.4 Message-ID: <02c401c6e61f$60346920$0201a8c0@d1> Hi List, I am runinng a CentOS 4.4 i386 system and I wont like to have mono run with the shipped apache 2.0.52. What are the rpms I would need to run mono properly. Thanks and best regards From miguel at ximian.com Mon Oct 2 08:49:39 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Mon, 02 Oct 2006 08:49:39 -0400 Subject: [Mono-list] Vault on Mono not working in 1.1.13.8 In-Reply-To: <451D1E47.8010607@sourcegear.com> References: <451D1E47.8010607@sourcegear.com> Message-ID: <1159793379.13059.34.camel@erandi.dom> Hello, > I'm looking for information related to the latest release of Mono. It > seems something may have changed which breaks the Vault command line client. > > Previous versions of mono (1.1.12.x) with the vault.exe had no problems > but in 1.1.13.8 we have users reporting the following error: Seems like you are just missing one of the libraries, make sure the proper RPM is installed (I forget where it goes). Miguel From rpbrown at GAIC.COM Mon Oct 2 08:52:10 2006 From: rpbrown at GAIC.COM (Brown, Robert) Date: Mon, 2 Oct 2006 08:52:10 -0400 Subject: [Mono-list] SerialPort access Message-ID: <870BD6A2013B444F9A41ABC3DFE1B1230AD35121@CVGEXCEMAIL001.ga.afginc.com> What is profile 2.0? -=Robert -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Gert Burger Sent: Monday, October 02, 2006 8:14 AM To: Korn?l P?l Cc: mono-list at lists.ximian.com Subject: Re: [Mono-list] SerialPort access Korn?l P?l wrote: >> I have looked at the System.IO.Ports but have failed to incorporate >> it with out app(a combination of monodevelop and mcs crashes). >> Are there any other method to do this or have someone incorporated >> System.IO.Ports into an .NET v1.x app? > > Why don't you use profile 2.0? > > That way you can use System.IO.Ports on Mono and MS.NET as well > without any hacks. > > Korn?l I tried this and it seems not to complain. For some reason I did not know about the 'profiles' in monodevelop. Thanks, all sorted, for now. -- Gert Burger TechTeam Computer Science Department University of Pretoria _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ************************************************************************************ The content of this e-mail message and any attachments are confidential and may be legally privileged, intended solely for the addressee. If you are not the intended recipient, be advised that any use, dissemination, distribution, or copying of this e-mail is strictly prohibited. If you receive this message in error, please notify the sender immediately by reply email and destroy the message and its attachments. ************************************************************************************ From antonello at deveel.com Mon Oct 2 08:57:01 2006 From: antonello at deveel.com (Antonello Provenzano) Date: Mon, 2 Oct 2006 14:57:01 +0200 Subject: [Mono-list] Internal Server Error 500 caused by mod-mono-server Message-ID: Hi guys, In the past week-end I posted a problem I had with mono_mono. Maybe because of the week-end time, nobody answered me and I'm scared the post was "lost", so I decided to post it again. I set up a test environment on my Ubuntu 6.0 with Apache 2.0 and Mono 1.1.13.6 (the latest found on repository http://people.debian.org/~formoer/mono). The first tests I've made on the website were successful and very good (I also launched a flood test to check the response time and the memory load with excellent results), using the following configuration (in the /etc/apache2/sites-enabled/default configuration file): DocumentRoot /path/to/the/web/site Options FollowSymLinks AllowOverride None MonoApplications default "/:/path/to/the/web/site" Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all SetHandler mono As you can see, I stripped any advanced configuration to mod_mono (eg. MonoMaxMemory or MonoCPUTime). Anyway, after a while I started having some troubles, since the site begun responding with a 500 error code (internal server error). I checked the Apache error files log and this is what I found: [Sat Sep 30 16:12:58 2006] [notice] Apache/2.0.55 (Ubuntu) mod_mono/1.1.10 configured -- resuming normal operations Another mod-mono-server with the same arguments is already running. Another mod-mono-server with the same arguments is already running. I tried killing all the mod-mono-server processes pointing to /path/to/the/web/site and restarting Apache, but with the same result. Anyone could explain me how to fix this permanently or what configuration should I adopt to avoid such this error in production? Thanks Antonello From gburger at cs.up.ac.za Mon Oct 2 09:01:31 2006 From: gburger at cs.up.ac.za (Gert Burger) Date: Mon, 02 Oct 2006 15:01:31 +0200 Subject: [Mono-list] SerialPort access In-Reply-To: <870BD6A2013B444F9A41ABC3DFE1B1230AD35121@CVGEXCEMAIL001.ga.afginc.com> References: <870BD6A2013B444F9A41ABC3DFE1B1230AD35121@CVGEXCEMAIL001.ga.afginc.com> Message-ID: <45210DAB.9040600@cs.up.ac.za> Brown, Robert wrote: > What is profile 2.0? > > -=Robert > > -----Original Message----- > From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Gert Burger > Sent: Monday, October 02, 2006 8:14 AM > To: Korn?l P?l > Cc: mono-list at lists.ximian.com > Subject: Re: [Mono-list] SerialPort access > > Korn?l P?l wrote: > >>> I have looked at the System.IO.Ports but have failed to incorporate >>> it with out app(a combination of monodevelop and mcs crashes). >>> Are there any other method to do this or have someone incorporated >>> System.IO.Ports into an .NET v1.x app? >>> >> Why don't you use profile 2.0? >> >> That way you can use System.IO.Ports on Mono and MS.NET as well >> without any hacks. >> >> Korn?l >> > I tried this and it seems not to complain. For some reason I did not know about the 'profiles' in monodevelop. > > Thanks, all sorted, for now. > > -- > Gert Burger > > TechTeam > Computer Science Department > University of Pretoria > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list > > ************************************************************************************ > The content of this e-mail message and any attachments are confidential > and may be legally privileged, intended solely for the addressee. If you > are not the intended recipient, be advised that any use, dissemination, > distribution, or copying of this e-mail is strictly prohibited. If you > receive this message in error, please notify the sender immediately by > reply email and destroy the message and its attachments. > ************************************************************************************ > The terminology might be wrong, but as I understand he was referring to using the 2.0 runtime instead of the 1.1 runtime. -- Gert Burger TechTeam Computer Science Department University of Pretoria From kornelpal at gmail.com Mon Oct 2 09:07:44 2006 From: kornelpal at gmail.com (=?iso-8859-1?B?S29ybulsIFDhbA==?=) Date: Mon, 2 Oct 2006 15:07:44 +0200 Subject: [Mono-list] SerialPort access References: <870BD6A2013B444F9A41ABC3DFE1B1230AD35121@CVGEXCEMAIL001.ga.afginc.com> Message-ID: <001001c6e623$c0e959c0$0100a8c0@kornelpal.hu> Microsoft .NET Framework has releases: 1.0, 1.1, 2.0. Note that 3.0 is exactly the same as 2.0 but contains some more components. Each release has different set of functionality. Mono is released as a single product that contains support multible framework versions. Profile 1.0 is intended to be compatible with MS.NET 1.1 and profile 2.0 is intended to be compatible with MS.NET 2.0. If you compile you code using MS csc 1.0, 1.1 or Mono mcs it will use profile 1.0. If you compiler your code using MS csc 2.0 or gmcs it will use profile 2.0. Also note that you can use .config files to override this default behavior. Korn?l ----- Original Message ----- From: "Brown, Robert" To: "Gert Burger" ; "Korn?l P?l" Cc: Sent: Monday, October 02, 2006 2:52 PM Subject: RE: [Mono-list] SerialPort access What is profile 2.0? -=Robert -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Gert Burger Sent: Monday, October 02, 2006 8:14 AM To: Korn?l P?l Cc: mono-list at lists.ximian.com Subject: Re: [Mono-list] SerialPort access Korn?l P?l wrote: >> I have looked at the System.IO.Ports but have failed to incorporate >> it with out app(a combination of monodevelop and mcs crashes). >> Are there any other method to do this or have someone incorporated >> System.IO.Ports into an .NET v1.x app? > > Why don't you use profile 2.0? > > That way you can use System.IO.Ports on Mono and MS.NET as well > without any hacks. > > Korn?l I tried this and it seems not to complain. For some reason I did not know about the 'profiles' in monodevelop. Thanks, all sorted, for now. -- Gert Burger TechTeam Computer Science Department University of Pretoria _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ************************************************************************************ The content of this e-mail message and any attachments are confidential and may be legally privileged, intended solely for the addressee. If you are not the intended recipient, be advised that any use, dissemination, distribution, or copying of this e-mail is strictly prohibited. If you receive this message in error, please notify the sender immediately by reply email and destroy the message and its attachments. ************************************************************************************ From rpbrown at GAIC.COM Mon Oct 2 10:34:47 2006 From: rpbrown at GAIC.COM (Brown, Robert) Date: Mon, 2 Oct 2006 10:34:47 -0400 Subject: [Mono-list] SerialPort access Message-ID: <870BD6A2013B444F9A41ABC3DFE1B1230ADE651C@CVGEXCEMAIL001.ga.afginc.com> Thanks that cleared things up. -=Robert -----Original Message----- From: Korn?l P?l [mailto:kornelpal at gmail.com] Sent: Monday, October 02, 2006 9:08 AM To: Brown, Robert; Gert Burger Cc: mono-list at lists.ximian.com Subject: Re: [Mono-list] SerialPort access Microsoft .NET Framework has releases: 1.0, 1.1, 2.0. Note that 3.0 is exactly the same as 2.0 but contains some more components. Each release has different set of functionality. Mono is released as a single product that contains support multible framework versions. Profile 1.0 is intended to be compatible with MS.NET 1.1 and profile 2.0 is intended to be compatible with MS.NET 2.0. If you compile you code using MS csc 1.0, 1.1 or Mono mcs it will use profile 1.0. If you compiler your code using MS csc 2.0 or gmcs it will use profile 2.0. Also note that you can use .config files to override this default behavior. Korn?l ----- Original Message ----- From: "Brown, Robert" To: "Gert Burger" ; "Korn?l P?l" Cc: Sent: Monday, October 02, 2006 2:52 PM Subject: RE: [Mono-list] SerialPort access What is profile 2.0? -=Robert -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Gert Burger Sent: Monday, October 02, 2006 8:14 AM To: Korn?l P?l Cc: mono-list at lists.ximian.com Subject: Re: [Mono-list] SerialPort access Korn?l P?l wrote: >> I have looked at the System.IO.Ports but have failed to incorporate >> it with out app(a combination of monodevelop and mcs crashes). >> Are there any other method to do this or have someone incorporated >> System.IO.Ports into an .NET v1.x app? > > Why don't you use profile 2.0? > > That way you can use System.IO.Ports on Mono and MS.NET as well > without any hacks. > > Korn?l I tried this and it seems not to complain. For some reason I did not know about the 'profiles' in monodevelop. Thanks, all sorted, for now. -- Gert Burger TechTeam Computer Science Department University of Pretoria _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ************************************************************************************ The content of this e-mail message and any attachments are confidential and may be legally privileged, intended solely for the addressee. If you are not the intended recipient, be advised that any use, dissemination, distribution, or copying of this e-mail is strictly prohibited. If you receive this message in error, please notify the sender immediately by reply email and destroy the message and its attachments. ************************************************************************************ ************************************************************************************ The content of this e-mail message and any attachments are confidential and may be legally privileged, intended solely for the addressee. If you are not the intended recipient, be advised that any use, dissemination, distribution, or copying of this e-mail is strictly prohibited. If you receive this message in error, please notify the sender immediately by reply email and destroy the message and its attachments. ************************************************************************************ From jeffc at sourcegear.com Mon Oct 2 16:11:01 2006 From: jeffc at sourcegear.com (jeff clausius) Date: Mon, 02 Oct 2006 15:11:01 -0500 Subject: [Mono-list] Vault on Mono not working in 1.1.13.8 In-Reply-To: <1159793379.13059.34.camel@erandi.dom> References: <451D1E47.8010607@sourcegear.com> <1159793379.13059.34.camel@erandi.dom> Message-ID: <45217255.3030501@sourcegear.com> Aha! I took a wild stab and either the mono-winforms or mono-extras seems to contain the System.Management.* calls. Thanks, Jeff SourceGear Miguel de Icaza wrote: > Hello, > >> I'm looking for information related to the latest release of Mono. It >> seems something may have changed which breaks the Vault command line client. >> >> Previous versions of mono (1.1.12.x) with the vault.exe had no problems >> but in 1.1.13.8 we have users reporting the following error: > > Seems like you are just missing one of the libraries, make sure the > proper RPM is installed (I forget where it goes). > > Miguel > From miguel at ximian.com Mon Oct 2 17:23:50 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Mon, 02 Oct 2006 17:23:50 -0400 Subject: [Mono-list] Mono Meeting: Venue Update, second update. Message-ID: <1159824230.21416.61.camel@erandi.dom> Hello, Folks, we found a cheaper hotel to organize the event for the Mono Meeting, so it will now be hosted closer to the Novell offices in Cambridge (close to the original location). The updated location is: Royal Sonesta Hotel Cambridge MA This is the hotel: http://www.royalsonestaboston.com/ Miguel. From peter at wingsofdeath.nu Tue Oct 3 05:22:50 2006 From: peter at wingsofdeath.nu (Peter Hagen) Date: Tue, 03 Oct 2006 11:22:50 +0200 Subject: [Mono-list] xsp Webservice Message-ID: <1159867370.2496.4.camel@DJMIA-PH-Workstation.DJM.local> Hi I'm running a mono 1.1.17.1(/2?) installation. I created a asp.net website, with a webservice in it. Nothing special. If i open the webservice page, I get the Overview, Service Description and the Client Proxy. When I click the Client Proxy, i get the following message: Description: Error processing request. Error Message: HTTP 500. Stack Trace: System.InvalidOperationException: A schema with the namespace 'http://tempuri.org/' has already been added. at System.Xml.Serialization.XmlSchemas.OnInsert (Int32 index, System.Object value) [0x00000] at System.Collections.CollectionBase.System.Collections.IList.Insert (Int32 index, System.Object value) [0x00000] at System.Xml.Serialization.XmlSchemas.Insert (Int32 index, System.Xml.Schema.XmlSchema schema) [0x00000] at System.Xml.Serialization.XmlSchemas.Add (System.Xml.Schema.XmlSchema schema) [0x00000] at ASP.DefaultWsdlHelpGenerator_aspx.GetProxyCode () [0x00000] at ASP.DefaultWsdlHelpGenerator_aspx.__RenderTree (System.Web.UI.HtmlTextWriter __output, System.Web.UI.Control parameterContainer) [0x00000] at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_HtmlTextWriter_Control (System.Web.UI.HtmlTextWriter,System.Web.UI.Control) at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer) [0x00000] at System.Web.UI.Page.InternalProcessRequest () [0x00000] at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] If i alter the namespace, i get the same message, only with my namespace in it. If I run this same site in 1.1.13.6 on another server, it works flawless. So, I guess I have found a bug in the 1.1.17 distribution? or am I doing something wrong? greetings Peter From informatique.internet at fiducial.fr Tue Oct 3 06:28:48 2006 From: informatique.internet at fiducial.fr (Hubert FONGARNAND) Date: Tue, 03 Oct 2006 12:28:48 +0200 Subject: [Mono-list] xsp Webservice In-Reply-To: <1159867370.2496.4.camel@DJMIA-PH-Workstation.DJM.local> References: <1159867370.2496.4.camel@DJMIA-PH-Workstation.DJM.local> Message-ID: <1159871328.17522.5.camel@hublinux.fidudev.fr> I noticed the same problem, I don't if there's a bug report for it Le mardi 03 octobre 2006 ?? 11:22 +0200, Peter Hagen a ??crit : > Hi > > I'm running a mono 1.1.17.1(/2?) installation. I created a asp.net > website, with a webservice in it. Nothing special. If i open the > webservice page, I get the Overview, Service Description and the Client > Proxy. When I click the Client Proxy, i get the following message: > > Description: Error processing request. > > Error Message: HTTP 500. > > Stack Trace: > > System.InvalidOperationException: A schema with the namespace > 'http://tempuri.org/' has already been added. > at System.Xml.Serialization.XmlSchemas.OnInsert (Int32 index, > System.Object value) [0x00000] > at System.Collections.CollectionBase.System.Collections.IList.Insert > (Int32 index, System.Object value) [0x00000] > at System.Xml.Serialization.XmlSchemas.Insert (Int32 index, > System.Xml.Schema.XmlSchema schema) [0x00000] > at System.Xml.Serialization.XmlSchemas.Add > (System.Xml.Schema.XmlSchema schema) [0x00000] > at ASP.DefaultWsdlHelpGenerator_aspx.GetProxyCode () [0x00000] > at ASP.DefaultWsdlHelpGenerator_aspx.__RenderTree > (System.Web.UI.HtmlTextWriter __output, System.Web.UI.Control > parameterContainer) [0x00000] > at (wrapper delegate-invoke) > System.MulticastDelegate:invoke_void_HtmlTextWriter_Control > (System.Web.UI.HtmlTextWriter,System.Web.UI.Control) > at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter > writer) [0x00000] > at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) > [0x00000] > at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter > writer) [0x00000] > at System.Web.UI.Page.InternalProcessRequest () [0x00000] > at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) > [0x00000] > > > If i alter the namespace, i get the same message, only with my namespace > in it. If I run this same site in 1.1.13.6 on another server, it works > flawless. So, I guess I have found a bug in the 1.1.17 distribution? or > am I doing something wrong? > > greetings > > Peter > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Ce message et les ?ventuels documents joints peuvent contenir des informations confidentielles. Au cas o? il ne vous serait pas destin?, nous vous remercions de bien vouloir le supprimer et en aviser imm?diatement l'exp?diteur. Toute utilisation de ce message non conforme ? sa destination, toute diffusion ou publication, totale ou partielle et quel qu'en soit le moyen est formellement interdite. Les communications sur internet n'?tant pas s?curis?es, l'int?grit? de ce message n'est pas assur?e et la soci?t? ?mettrice ne peut ?tre tenue pour responsable de son contenu. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061003/e057754e/attachment.html From glen.ford at spinvox.com Tue Oct 3 06:33:31 2006 From: glen.ford at spinvox.com (Glen Ford) Date: Tue, 03 Oct 2006 11:33:31 +0100 Subject: [Mono-list] xsp Webservice In-Reply-To: <1159871328.17522.5.camel@hublinux.fidudev.fr> References: <1159867370.2496.4.camel@DJMIA-PH-Workstation.DJM.local> <1159871328.17522.5.camel@hublinux.fidudev.fr> Message-ID: <45223C7B.6040609@spinvox.com> I have seen a similar issue on 1.1.16.1 Regards, Glen Hubert FONGARNAND wrote: > I noticed the same problem, I don't if there's a bug report for it > > Le mardi 03 octobre 2006 ? 11:22 +0200, Peter Hagen a ?crit : >> Hi >> >> I'm running a mono 1.1.17.1(/2?) installation. I created a asp.net >> website, with a webservice in it. Nothing special. If i open the >> webservice page, I get the Overview, Service Description and the Client >> Proxy. When I click the Client Proxy, i get the following message: >> >> Description: Error processing request. >> >> Error Message: HTTP 500. >> >> Stack Trace: >> >> System.InvalidOperationException: A schema with the namespace >> 'http://tempuri.org/' has already been added. >> at System.Xml.Serialization.XmlSchemas.OnInsert (Int32 index, >> System.Object value) [0x00000] >> at System.Collections.CollectionBase.System.Collections.IList.Insert >> (Int32 index, System.Object value) [0x00000] >> at System.Xml.Serialization.XmlSchemas.Insert (Int32 index, >> System.Xml.Schema.XmlSchema schema) [0x00000] >> at System.Xml.Serialization.XmlSchemas.Add >> (System.Xml.Schema.XmlSchema schema) [0x00000] >> at ASP.DefaultWsdlHelpGenerator_aspx.GetProxyCode () [0x00000] >> at ASP.DefaultWsdlHelpGenerator_aspx.__RenderTree >> (System.Web.UI.HtmlTextWriter __output, System.Web.UI.Control >> parameterContainer) [0x00000] >> at (wrapper delegate-invoke) >> System.MulticastDelegate:invoke_void_HtmlTextWriter_Control >> (System.Web.UI.HtmlTextWriter,System.Web.UI.Control) >> at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter >> writer) [0x00000] >> at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer) >> [0x00000] >> at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter >> writer) [0x00000] >> at System.Web.UI.Page.InternalProcessRequest () [0x00000] >> at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) >> [0x00000] >> >> >> If i alter the namespace, i get the same message, only with my namespace >> in it. If I run this same site in 1.1.13.6 on another server, it works >> flawless. So, I guess I have found a bug in the 1.1.17 distribution? or >> am I doing something wrong? >> >> greetings >> >> Peter >> >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> > _______________________________________________ > Ce message et les ?ventuels documents joints peuvent contenir des > informations confidentielles. > Au cas o? il ne vous serait pas destin?, nous vous remercions de bien > vouloir le supprimer et en aviser imm?diatement l'exp?diteur. Toute > utilisation de ce message non conforme ? sa destination, toute > diffusion ou publication, totale ou partielle et quel qu'en soit le > moyen est formellement interdite. > Les communications sur internet n'?tant pas s?curis?es, l'int?grit? de > ce message n'est pas assur?e et la soci?t? ?mettrice ne peut ?tre > tenue pour responsable de son contenu. > ------------------------------------------------------------------------ > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- ------------------------------------------------------------------------- Glen Ford Infrastructure Software Development Manager SPINVOX LTD ------------------------------------------------------------------------- t: +44 (0)20 7965 2000 f: +44 (0)20 7965 2001 e: glen.ford at spinvox.com w: www.spinvox.com ------------------------------------------------------------------------- ** SPINVOX: AWARD WINNING PATENTED TECHNOLOGY ** 'Science & Technology Entrepreneur of the Year 2006' - Ernst & Young Entrepreneur of the Year Awards 'Biggest Impact of Mobile Messaging 2006' - Mobile Messaging Awards 'Red Herring 100 Europe Award 2006' - Most promising firms driving the future of technology 'Mobile Innovation Award 2006' - 3GSM World Congress Go to www.spinvox.com/news/awards to find out more. This electronic message and any attachments are intended solely for the named addressee(s). Any other recipient should be aware that its contents may be legally privileged and/or confidential and that its disclosure, copying or distribution may be unlawful. Unless you are a named addressee, please delete this message and immediately notify the sender. SpinVox has taken steps to prevent the transmission of computer viruses with electronic mail, but the responsibility for screening incoming messages and the risk of such transmission and its consequences lies with the recipient. Any views expressed in, or files attached to, this message are those of the individual sender, unless stated otherwise. SpinVox can not guarantee the integrity of this message across the Internet. SpinVox shall (will) not therefore be liable for the message if modified. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061003/53496925/attachment-0001.html From robertj at gmx.net Tue Oct 3 07:47:08 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 03 Oct 2006 13:47:08 +0200 Subject: [Mono-list] xsp Webservice In-Reply-To: <1159867370.2496.4.camel@DJMIA-PH-Workstation.DJM.local> References: <1159867370.2496.4.camel@DJMIA-PH-Workstation.DJM.local> Message-ID: Peter Hagen wrote: > I'm running a mono 1.1.17.1(/2?) installation. I created a asp.net > website, with a webservice in it. Nothing special. If i open the > webservice page, I get the Overview, Service Description and the Client > Proxy. When I click the Client Proxy, i get the following message: > > Description: Error processing request. > > Error Message: HTTP 500. That's just a bug of the ASP.NET/HTML interface. The web service is not affected by this bug and you still can generate a proxy using wsdl. Please file a bug in the category System.Web.Services, though I think I already filed one. Robert From damien.churchill at ukplc.net Tue Oct 3 10:19:25 2006 From: damien.churchill at ukplc.net (Damien Churchill) Date: Tue, 3 Oct 2006 15:19:25 +0100 Subject: [Mono-list] xsp/app_code Message-ID: I was just curious if anyone knows anything about when app_code was going to get magical? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061003/173dde52/attachment.html From wberrier at novell.com Tue Oct 3 14:16:35 2006 From: wberrier at novell.com (Wade Berrier) Date: Tue, 03 Oct 2006 12:16:35 -0600 Subject: [Mono-list] Where do we package System.Management? In-Reply-To: <1159822283.21416.56.camel@erandi.dom> References: <1159822283.21416.56.camel@erandi.dom> Message-ID: <1159899395.22977.1.camel@wberrier.site> System.Management is indeed in mono-extras. Here's the filelist: /usr/lib/mono/gac/System.Management /usr/lib/mono/1.0/System.Management.dll /usr/lib/mono/2.0/System.Management.dll /usr/lib/mono/gac/System.Messaging /usr/lib/mono/1.0/System.Messaging.dll /usr/lib/mono/2.0/System.Messaging.dll /usr/lib/mono/gac/System.ServiceProcess /usr/lib/mono/1.0/System.ServiceProcess.dll /usr/lib/mono/2.0/System.ServiceProcess.dll /usr/bin/mono-service /usr/lib/mono/1.0/mono-service.exe /usr/lib/mono/1.0/mono-service.exe.mdb /usr/share/man/man1/mono-service.1* /usr/lib/mono/gac/System.Configuration.Install /usr/lib/mono/1.0/System.Configuration.Install.dll /usr/lib/mono/2.0/System.Configuration.Install.dll /usr/lib/mono/gac/Microsoft.Vsa /usr/lib/mono/1.0/Microsoft.Vsa.dll /usr/lib/mono/2.0/Microsoft.Vsa.dll Does it make sense to be somewhere else? Wade On Mon, 2006-10-02 at 16:51 -0400, Miguel de Icaza wrote: > Any RPM of ours ships System.Management.dll? > email message attachment, "Forwarded message - Re: [Mono-list] Vault > on Mono not working in 1.1.13.8" > > -------- Forwarded Message -------- > > From: jeff clausius > > To: Miguel de Icaza > > Cc: mono-list at lists.ximian.com > > Subject: Re: [Mono-list] Vault on Mono not working in 1.1.13.8 > > Date: Mon, 02 Oct 2006 15:11:01 -0500 > > > > Aha! > > > > I took a wild stab and either the mono-winforms or mono-extras seems to > > contain the System.Management.* calls. > > > > Thanks, > > Jeff > > SourceGear > > > > > > Miguel de Icaza wrote: > > > Hello, > > > > > >> I'm looking for information related to the latest release of Mono. It > > >> seems something may have changed which breaks the Vault command line client. > > >> > > >> Previous versions of mono (1.1.12.x) with the vault.exe had no problems > > >> but in 1.1.13.8 we have users reporting the following error: > > > > > > Seems like you are just missing one of the libraries, make sure the > > > proper RPM is installed (I forget where it goes). > > > > > > Miguel > > > > > -- Wade Berrier Mono Team wberrier at novell.com 801-861-5132 Novell, Inc. SUSE? Linux Enterprise 10 Your Linux is ready http://www.novell.com/linux -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.ximian.com/pipermail/mono-list/attachments/20061003/73a43a07/attachment.bin From lots.of.mailing.lists at gmail.com Tue Oct 3 15:51:48 2006 From: lots.of.mailing.lists at gmail.com (Alex Mac) Date: Tue, 3 Oct 2006 20:51:48 +0100 Subject: [Mono-list] possible bug with FileSystemWatcher Message-ID: <1b420d380610031251p646c64fbvb0312a7fc3ad7ea0@mail.gmail.com> I'm trying to monitor /dev using the FileSystemWatcher however my app seems to hang at the point when i call "watcher.IncludeSubdirectories = true" without that line the code runs fine. Monitoring /tmp with that option turned on does work... Also if i try running the code with "MONO_MANAGED_WATCHER=1" then I get the following error message continuously appearing: ** Message: Unknown errno: Too many levels of symbolic links FYI I'm running ubuntu edgy with their latest version of mono as of today. Here is the app: using System; using System.IO; namespace test { public class foo { public static void delete_handler (object sender, FileSystemEventArgs e) { Console.WriteLine("delete_handler: " + e.Name + ", " + e.FullPath); } public static void changed_handler (object sender, FileSystemEventArgs e) { Console.WriteLine("changed_handler: " + e.Name + ", " + e.FullPath); } public static void created_handler (object sender, FileSystemEventArgs e) { Console.WriteLine("created_handler: " + e.Name + ", " + e.FullPath); } public static void renamed_handler (object sender, RenamedEventArgs e) { Console.WriteLine("renamed_handler: " + e.Name + ", " + e.FullPath); } public static void Main(string[] args) { Console.WriteLine("Testing FileSystemWatcher..."); FileSystemWatcher watcher = new FileSystemWatcher("/dev"); watcher.EnableRaisingEvents = true; watcher.IncludeSubdirectories = true; watcher.Deleted += new FileSystemEventHandler(delete_handler); watcher.Changed += new FileSystemEventHandler(changed_handler); watcher.Created += new FileSystemEventHandler(created_handler); watcher.Renamed += new RenamedEventHandler(renamed_handler); Console.WriteLine("waiting..."); Console.ReadLine(); } } } From gonzalo at novell.com Tue Oct 3 16:57:48 2006 From: gonzalo at novell.com (Gonzalo Paniagua Javier) Date: Tue, 03 Oct 2006 16:57:48 -0400 Subject: [Mono-list] possible bug with FileSystemWatcher In-Reply-To: <1b420d380610031251p646c64fbvb0312a7fc3ad7ea0@mail.gmail.com> References: <1b420d380610031251p646c64fbvb0312a7fc3ad7ea0@mail.gmail.com> Message-ID: <1159909068.10663.0.camel@lalo.micasa> On Tue, 2006-10-03 at 20:51 +0100, Alex Mac wrote: > I'm trying to monitor /dev using the FileSystemWatcher however my app > seems to hang at the point when i call "watcher.IncludeSubdirectories > = true" without that line the code runs fine. Monitoring /tmp with > that option turned on does work... What version of mono are you using? I get an error when it tries to watch a directory for which my user does not have permission. -Gonzalo From lots.of.mailing.lists at gmail.com Tue Oct 3 17:36:46 2006 From: lots.of.mailing.lists at gmail.com (Alex Mac) Date: Tue, 3 Oct 2006 22:36:46 +0100 Subject: [Mono-list] possible bug with FileSystemWatcher In-Reply-To: <1159909068.10663.0.camel@lalo.micasa> References: <1b420d380610031251p646c64fbvb0312a7fc3ad7ea0@mail.gmail.com> <1159909068.10663.0.camel@lalo.micasa> Message-ID: <1b420d380610031436x6a16c39n662ac146eeed1faa@mail.gmail.com> On 03/10/06, Gonzalo Paniagua Javier wrote: > On Tue, 2006-10-03 at 20:51 +0100, Alex Mac wrote: > > I'm trying to monitor /dev using the FileSystemWatcher however my app > > seems to hang at the point when i call "watcher.IncludeSubdirectories > > = true" without that line the code runs fine. Monitoring /tmp with > > that option turned on does work... > > What version of mono are you using? I get an error when it tries to > watch a directory for which my user does not have permission. > > -Gonzalo I'm using the latest version (1.1.17.1-1ubuntu6) My user account has read/execute permissions on all of /dev except for some sub dirs. Is there not a way to monitor a dir recursively but only the dirs i can read? Anyway the code just hangs rather than giving some kind of useful error... From robertj at gmx.net Tue Oct 3 17:56:06 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 03 Oct 2006 23:56:06 +0200 Subject: [Mono-list] possible bug with FileSystemWatcher In-Reply-To: <1b420d380610031251p646c64fbvb0312a7fc3ad7ea0@mail.gmail.com> References: <1b420d380610031251p646c64fbvb0312a7fc3ad7ea0@mail.gmail.com> Message-ID: Alex Mac wrote: > I'm trying to monitor /dev using the FileSystemWatcher however my app > seems to hang at the point when i call "watcher.IncludeSubdirectories > = true" without that line the code runs fine. Monitoring /tmp with > that option turned on does work... > > Also if i try running the code with "MONO_MANAGED_WATCHER=1" then I > get the following error message continuously appearing: > > ** Message: Unknown errno: Too many levels of symbolic links The message is probably harmless. It gets emitted because ELOOP has no Win32 error code. Robert From lots.of.mailing.lists at gmail.com Tue Oct 3 18:10:33 2006 From: lots.of.mailing.lists at gmail.com (Alex Mac) Date: Tue, 3 Oct 2006 23:10:33 +0100 Subject: [Mono-list] possible bug with FileSystemWatcher In-Reply-To: References: <1b420d380610031251p646c64fbvb0312a7fc3ad7ea0@mail.gmail.com> Message-ID: <1b420d380610031510p7e20b29bn49b42bc0506b47ce@mail.gmail.com> On 03/10/06, Robert Jordan wrote: > Alex Mac wrote: > > I'm trying to monitor /dev using the FileSystemWatcher however my app > > seems to hang at the point when i call "watcher.IncludeSubdirectories > > = true" without that line the code runs fine. Monitoring /tmp with > > that option turned on does work... > > > > Also if i try running the code with "MONO_MANAGED_WATCHER=1" then I > > get the following error message continuously appearing: > > > > ** Message: Unknown errno: Too many levels of symbolic links > > The message is probably harmless. It gets emitted because > ELOOP has no Win32 error code. > > Robert It might be harmless but mono seems to be stuck in a loop emitting that message continuously which can't be right. From miguel at ximian.com Tue Oct 3 18:52:17 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Tue, 03 Oct 2006 18:52:17 -0400 Subject: [Mono-list] possible bug with FileSystemWatcher In-Reply-To: <1b420d380610031251p646c64fbvb0312a7fc3ad7ea0@mail.gmail.com> References: <1b420d380610031251p646c64fbvb0312a7fc3ad7ea0@mail.gmail.com> Message-ID: <1159915937.19796.72.camel@erandi.dom> Hello, > I'm trying to monitor /dev using the FileSystemWatcher however my app > seems to hang at the point when i call "watcher.IncludeSubdirectories > = true" without that line the code runs fine. Monitoring /tmp with > that option turned on does work... > > Also if i try running the code with "MONO_MANAGED_WATCHER=1" then I > get the following error message continuously appearing: One of the problems that we ran into while trying to debug this problem is that it seems that /dev/fd/6 is a symlink that points to a non-existant file called "inotify" The file is special in that if you access /dev/fd/6 you get a valid file handle, reporting that its a directory, but if you try to follow the symlink you get a failure (because "inotify" does not exist). We are quite puzzled about this, not sure quite what to do, because Mono determines that we have a directory, and when we look for it, it tells us that its not a directory. Miguel. From wberrier at novell.com Wed Oct 4 00:45:36 2006 From: wberrier at novell.com (Wade Berrier) Date: Tue, 03 Oct 2006 22:45:36 -0600 Subject: [Mono-list] Downloads on mono-project.com Message-ID: <1159937136.9458.1.camel@berrier.site> Hi, Downloads have been renamed a bit. Previously: stable -> 1.1.13.8 latest -> 1.1.17.1 Now: maintenance -> 1.1.13.8 stable -> 1.1.17.1 Wade From lots.of.mailing.lists at gmail.com Wed Oct 4 04:51:29 2006 From: lots.of.mailing.lists at gmail.com (Alex Mac) Date: Wed, 4 Oct 2006 09:51:29 +0100 Subject: [Mono-list] possible bug with FileSystemWatcher In-Reply-To: <1159915937.19796.72.camel@erandi.dom> References: <1b420d380610031251p646c64fbvb0312a7fc3ad7ea0@mail.gmail.com> <1159915937.19796.72.camel@erandi.dom> Message-ID: <1b420d380610040151i41d5338cwaff35a754fbc980f@mail.gmail.com> On 03/10/06, Miguel de Icaza wrote: > Hello, > > > I'm trying to monitor /dev using the FileSystemWatcher however my app > > seems to hang at the point when i call "watcher.IncludeSubdirectories > > = true" without that line the code runs fine. Monitoring /tmp with > > that option turned on does work... > > > > Also if i try running the code with "MONO_MANAGED_WATCHER=1" then I > > get the following error message continuously appearing: > > One of the problems that we ran into while trying to debug this problem > is that it seems that /dev/fd/6 is a symlink that points to a > non-existant file called "inotify" > > The file is special in that if you access /dev/fd/6 you get a valid file > handle, reporting that its a directory, but if you try to follow the > symlink you get a failure (because "inotify" does not exist). > > We are quite puzzled about this, not sure quite what to do, because Mono > determines that we have a directory, and when we look for it, it tells > us that its not a directory. > > Miguel. > I dont have /dev/fd/6 on my system but I guess there must be other "special" dev files... Really I'm just interested in monitoring /dev/dvb but since the FSW cant handle monitoring a directory that might not currently exist I have to monitor /dev recursively. I guess I'll have to just use two watchers one for /dev and one for /dev/dvb when it appears, which is a bit lame. From lots.of.mailing.lists at gmail.com Wed Oct 4 05:05:15 2006 From: lots.of.mailing.lists at gmail.com (Alex Mac) Date: Wed, 4 Oct 2006 10:05:15 +0100 Subject: [Mono-list] possible bug with FileSystemWatcher In-Reply-To: <1b420d380610040151i41d5338cwaff35a754fbc980f@mail.gmail.com> References: <1b420d380610031251p646c64fbvb0312a7fc3ad7ea0@mail.gmail.com> <1159915937.19796.72.camel@erandi.dom> <1b420d380610040151i41d5338cwaff35a754fbc980f@mail.gmail.com> Message-ID: <1b420d380610040205s1e685096u8612c1da53d71728@mail.gmail.com> On 04/10/06, Alex Mac wrote: > On 03/10/06, Miguel de Icaza wrote: > > Hello, > > > > > I'm trying to monitor /dev using the FileSystemWatcher however my app > > > seems to hang at the point when i call "watcher.IncludeSubdirectories > > > = true" without that line the code runs fine. Monitoring /tmp with > > > that option turned on does work... > > > > > > Also if i try running the code with "MONO_MANAGED_WATCHER=1" then I > > > get the following error message continuously appearing: > > > > One of the problems that we ran into while trying to debug this problem > > is that it seems that /dev/fd/6 is a symlink that points to a > > non-existant file called "inotify" > > > > The file is special in that if you access /dev/fd/6 you get a valid file > > handle, reporting that its a directory, but if you try to follow the > > symlink you get a failure (because "inotify" does not exist). > > > > We are quite puzzled about this, not sure quite what to do, because Mono > > determines that we have a directory, and when we look for it, it tells > > us that its not a directory. > > > > Miguel. > > > > I dont have /dev/fd/6 on my system but I guess there must be other > "special" dev files... > > Really I'm just interested in monitoring /dev/dvb but since the FSW > cant handle monitoring a directory that might not currently exist I > have to monitor /dev recursively. > > I guess I'll have to just use two watchers one for /dev and one for > /dev/dvb when it appears, which is a bit lame. Hmm, although that does work I guess there's no guarantee that the second FSW will be created in time to catch the first events to come from /dev/dvb Monitoring /dev recursively would be preferable From miguel at ximian.com Wed Oct 4 06:32:09 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Wed, 04 Oct 2006 06:32:09 -0400 Subject: [Mono-list] possible bug with FileSystemWatcher In-Reply-To: <1b420d380610040151i41d5338cwaff35a754fbc980f@mail.gmail.com> References: <1b420d380610031251p646c64fbvb0312a7fc3ad7ea0@mail.gmail.com> <1159915937.19796.72.camel@erandi.dom> <1b420d380610040151i41d5338cwaff35a754fbc980f@mail.gmail.com> Message-ID: <1159957929.5098.3.camel@erandi.dom> Hello, > I dont have /dev/fd/6 on my system but I guess there must be other > "special" dev files... The file only exists during the time that inotify is being setup on /dev/fd, thats why you have not seen it. From miguel at ximian.com Wed Oct 4 08:25:41 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Wed, 04 Oct 2006 08:25:41 -0400 Subject: [Mono-list] Mono Foundation? Message-ID: <1159964741.5098.47.camel@erandi.dom> Hello, Over the past few years, people have suggested that we should create a foundation to further develop Mono. The idea in general is good, it has worked fairly well for Gnome, and has worked fairly well for Apache. This comes at a time when some third parties would like to see Mono developed in a particular direction and the process that we have at Novell for getting paid for Mono is not optimal (which is to say, today the best thing you can do to fund Mono is buy SUSE, which is not a very direct way of funding Mono). But am not sure that everyone has the same idea about what a Mono foundation would do, I would like such a foundation to be a mechanism to funnel more money into the development of Mono and its ecosystem. A foundation might have other uses, as it does in Gnome and Apache cases (defining release schedules, promotion, opening up the decision making process), but I think that fundamentally it should aim to have a budget that it can use to hire developers to work on particular areas that need to be developed. I think this is a topic that is worth discussing at the upcoming Mono Meeting: are there enough companies that would be willing to fund a non-profit to develop open source software for this particular purpose? A few months ago, just when someone had brought up the idea about a Mono Foundation, I happened to run into Greg Stein from Apache at a conference. He had a few comments: setting up a foundation is a lot of work (I agree); it might be best to reuse an existing foundation (I agree as well); The Apache Foundation *might* be a host for our activities, but does not have a mechanism for paying/funding any activities (which is what I would personally like to see happen). Miguel. From miguel at ximian.com Wed Oct 4 08:54:31 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Wed, 04 Oct 2006 08:54:31 -0400 Subject: [Mono-list] Life after Mono 1.2 Message-ID: <1159966471.5098.75.camel@erandi.dom> Hello, Mono 1.2 is quickly approaching as the bug count in Mono's Windows.Forms is closing. But we are aware that there will be likely bugs in the Winforms implementation that we are not aware of, and that we will be shipping a series of 1.2.1, 1.2.2 releases to address the issues as people use it on larger settings and larger applications. For the next couple of months after Mono 1.2 is released, we will likely not do a forked branch of Mono because this would increase our maintenance overhead. I would like to do the same thing that the kernel folks are doing for a while: keep the "trunk" as stable as possible and issue the 1.2.xx releases from trunk and not from a 1-2 branch for a few releases, probably two or three (which in Mono-terms means 3 to 4 months). This means that for 3-4 months after Mono 1.2 we would not land any of the large refactoring work into the main branch (in particular am thinking of the new linear-il branch, and the new register allocator). I know that this is a little bit painful, but it means that we will have a more solid set of 1.2 releases (by not having to backport every change we do). We will branch though, but it will likely have to be done in February. Miguel. From cdlaforc at centurytel.net Wed Oct 4 14:09:14 2006 From: cdlaforc at centurytel.net (cdlaforc) Date: Wed, 4 Oct 2006 11:09:14 -0700 (PDT) Subject: [Mono-list] mod_mono Permissions Error Message-ID: <6644996.post@talk.nabble.com> I have recently installed all the mono packages from http://go-mono.com/download-stable/fedora-5-i386/ and have been trying to look at some of the example. I have gotten the xsp server working to view the example, but in my attempts to get the mod_mono apache module to work I am receiving 503 service errors. Here are the lines from my error_log: /usr/lib/pkgconfig/../../bin/mod-mono-server: line 2: /usr/bin/mono: Permission denied /usr/lib/pkgconfig/../../bin/mod-mono-server: line 2: exec: /usr/bin/mono: cannot execute: Permission denied I tried to remove the /tmp/.wapi dir as said in another post I have seen and I restarted httpd but it didn't work. Let me know if you can offer me any help on that. Thank, Chris. -- View this message in context: http://www.nabble.com/mod_mono-Permissions-Error-tf2384014.html#a6644996 Sent from the Mono - General mailing list archive at Nabble.com. From lists at ophion.org Thu Oct 5 00:16:12 2006 From: lists at ophion.org (Rafael Ferreira) Date: Wed, 04 Oct 2006 21:16:12 -0700 Subject: [Mono-list] Mono Foundation? In-Reply-To: <1159964741.5098.47.camel@erandi.dom> References: <1159964741.5098.47.camel@erandi.dom> Message-ID: <1160021772.7492.8.camel@stan.ophion.org> I don't particularly think that my vote carries much weight.. but I would personally like the apache name behind Mono and historically the apache foundation has done a good job of not getting in the way. With regards to paying for development, I don't see the apache foundation as being a hindrance; hard to implement tasks will still require an interested party to finance the development.I don't know of any non-profits out there (maybe the eclipse foundation) that are paying for hard core dev work. my 2 cents, - raf On Wed, 2006-10-04 at 08:25 -0400, Miguel de Icaza wrote: > Hello, > > Over the past few years, people have suggested that we should create > a foundation to further develop Mono. The idea in general is good, it > has worked fairly well for Gnome, and has worked fairly well for > Apache. > > This comes at a time when some third parties would like to see Mono > developed in a particular direction and the process that we have at > Novell for getting paid for Mono is not optimal (which is to say, today > the best thing you can do to fund Mono is buy SUSE, which is not a very > direct way of funding Mono). > > But am not sure that everyone has the same idea about what a Mono > foundation would do, I would like such a foundation to be a mechanism to > funnel more money into the development of Mono and its ecosystem. > > A foundation might have other uses, as it does in Gnome and Apache > cases (defining release schedules, promotion, opening up the decision > making process), but I think that fundamentally it should aim to have a > budget that it can use to hire developers to work on particular areas > that need to be developed. > > I think this is a topic that is worth discussing at the upcoming > Mono Meeting: are there enough companies that would be willing to fund a > non-profit to develop open source software for this particular purpose? > > A few months ago, just when someone had brought up the idea about a > Mono Foundation, I happened to run into Greg Stein from Apache at a > conference. He had a few comments: setting up a foundation is a lot of > work (I agree); it might be best to reuse an existing foundation (I > agree as well); The Apache Foundation *might* be a host for our > activities, but does not have a mechanism for paying/funding any > activities (which is what I would personally like to see happen). > > Miguel. > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From twostepted at yahoo.com Thu Oct 5 01:28:27 2006 From: twostepted at yahoo.com (Travis Staloch) Date: Wed, 4 Oct 2006 22:28:27 -0700 (PDT) Subject: [Mono-list] mkbundle on windows Message-ID: <20061005052827.25791.qmail@web30608.mail.mud.yahoo.com> Does anyone have any idea what this mono error message means on my Fedora 5 box? >Corlib not in sync with this runtime: expected corlib version 49, found 54. I see the message when I try running an app I mkbundled on the same box. At one time, I had a previous version of mono installed (1.13 I think) and then reinstalled by compiling from 1.1.17 source. Thanks for any advice, --Travis Travis Staloch wrote: Robert, Thanks again for your help. mkbundle was able to complete on my linux box, creating an .out file which I renamed to .exe and tried to run it. I get an error relating to the expected mscorlib version. Here it is > ./MyInstallerBundle.exe Corlib not in sync with this runtime: expected corlib version 49, found 54. Download a newer corlib or a newer runtime at http://www.go-mono.com/daily. Any ideas? --Travis Robert Jordan wrote: Hi Travis, I'm not sure whether any non-critical (critical as in security, data loss, etc.) patches will be accepted for the stable (1.1.13) branch, but I'll try to get them in. Robert Travis Staloch wrote: > Thanks alot Robert. I was wondering if I should use that one. BTW, > did you mention when that version of mkbundle.exe will be applied to > the current stable mono branch? > > --Travis > > Robert Jordan wrote: Hi Travis, > > That's the same problem like in Windows. Copy mkbundle.exe I sent you > in the folder with the assemblies you want to bundle and call it like > this: > > mono mkbundle.exe ... > > Robert > > Travis Staloch wrote: >> Hey Robert, >> >> I've been trying to use mkbundle now on my linux FC5 box and seem >> to be getting an error with it. The app itself runs fine on linux >> after making some changes to the dllmap entries in >> /usr/local/etc/mono/config. However when I use try to run the >> mkbundle command below, I get the error listed below. (The error >> says that it can't seem to find my InstallerCommon.dll which is in >> the same directory as MyInstaller.exe). >> >> Thanks for any advice. >> >> --Travis >> >> >>> mono /usr/local/lib/mono/1.0/mkbundle.exe -z --deps --config-dir >>> . MyInstaller.exe >> (BTW, I've tried leaving off the '--config-dir .' switch too). >> >> Unhandled Exception: System.IO.FileNotFoundException: >> InstallerCommon, Version=1.0.2336.677, Culture=neutral : >> InstallerCommon, Version=1.0.2336.677, Culture=neutral at <0x00000> >> at (wrapper managed-to-native) System.AppDomain:LoadAssembly >> (string,System.Security.Policy.Evidence,bool) at >> System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, >> System.Security.Policy.Evidence assemblySecurity) [0x00000] at >> (wrapper remoting-invoke-with-check) System.AppDomain:Load >> (System.Reflection.AssemblyName,System.Security.Policy.Evidence) at >> System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) >> [0x00000] at (wrapper remoting-invoke-with-check) >> System.AppDomain:Load (System.Reflection.AssemblyName) at >> System.Reflection.Assembly.Load (System.Reflection.AssemblyName >> assemblyRef) [0x00000] at MakeBundle.QueueAssembly >> (System.Collections.ArrayList files, System.String codebase) >> [0x00000] at MakeBundle.Main (System.String[] args) [0x00000] >> >> >> Robert Jordan wrote: Hi, >> >> If you bundle you app on a Linux 2.4 system, the binary should work >> an all systems. >> >> The problem on Linux are the native dependencies (GLib, GTK) that >> you have to deliver. I can't help you with that, because I never >> did it myself. >> >> You may try to put them in the private "lib" dir of your >> application and change LD_LIBRARY_PATH from inside of a launcher >> script to point to this lib dir. >> >> Robert >> >> --------------------------------- Get your own web address for just >> $1.99/1st yr. We'll help. Yahoo! Small Business. > > > > --------------------------------- Talk is cheap. Use Yahoo! > Messenger to make PC-to-Phone calls. Great rates starting at 1???/min. --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail. --------------------------------- All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061004/05868a94/attachment-0001.html From robertj at gmx.net Thu Oct 5 04:05:10 2006 From: robertj at gmx.net (Robert Jordan) Date: Thu, 05 Oct 2006 10:05:10 +0200 Subject: [Mono-list] mkbundle on windows In-Reply-To: <20061005052827.25791.qmail@web30608.mail.mud.yahoo.com> References: <20061005052827.25791.qmail@web30608.mail.mud.yahoo.com> Message-ID: Hi, Your bundled application seems to load libmono.so of 1.1.13. Assure that the old Mono is not in the way (by setting LD_LIBRARY_PATH or uninstalling it). Robert Travis Staloch wrote: > Does anyone have any idea what this mono error message means on my > Fedora 5 box? >> Corlib not in sync with this runtime: expected corlib version 49, >> found 54. > > I see the message when I try running an app I mkbundled on the same > box. > > At one time, I had a previous version of mono installed (1.13 I > think) and then reinstalled by compiling from 1.1.17 source. > > Thanks for any advice, > > --Travis > > > Travis Staloch wrote: Robert, > > Thanks again for your help. mkbundle was able to complete on my > linux box, creating an .out file which I renamed to .exe and tried to > run it. I get an error relating to the expected mscorlib version. > Here it is >> ./MyInstallerBundle.exe > Corlib not in sync with this runtime: expected corlib version 49, > found 54. Download a newer corlib or a newer runtime at > http://www.go-mono.com/daily. > > Any ideas? > > --Travis > > Robert Jordan wrote: Hi Travis, > > I'm not sure whether any non-critical (critical as in security, data > loss, etc.) patches will be accepted for the stable (1.1.13) branch, > but I'll try to get them in. > > Robert > > Travis Staloch wrote: >> Thanks alot Robert. I was wondering if I should use that one. >> BTW, did you mention when that version of mkbundle.exe will be >> applied to the current stable mono branch? >> >> --Travis >> >> Robert Jordan wrote: Hi Travis, >> >> That's the same problem like in Windows. Copy mkbundle.exe I sent >> you in the folder with the assemblies you want to bundle and call >> it like this: >> >> mono mkbundle.exe ... >> >> Robert >> >> Travis Staloch wrote: >>> Hey Robert, >>> >>> I've been trying to use mkbundle now on my linux FC5 box and seem >>> to be getting an error with it. The app itself runs fine on >>> linux after making some changes to the dllmap entries in >>> /usr/local/etc/mono/config. However when I use try to run the >>> mkbundle command below, I get the error listed below. (The error >>> says that it can't seem to find my InstallerCommon.dll which is >>> in the same directory as MyInstaller.exe). >>> >>> Thanks for any advice. >>> >>> --Travis >>> >>> >>>> mono /usr/local/lib/mono/1.0/mkbundle.exe -z --deps >>>> --config-dir . MyInstaller.exe >>> (BTW, I've tried leaving off the '--config-dir .' switch too). >>> >>> Unhandled Exception: System.IO.FileNotFoundException: >>> InstallerCommon, Version=1.0.2336.677, Culture=neutral : >>> InstallerCommon, Version=1.0.2336.677, Culture=neutral at >>> <0x00000> at (wrapper managed-to-native) >>> System.AppDomain:LoadAssembly >>> (string,System.Security.Policy.Evidence,bool) at >>> System.AppDomain.Load (System.Reflection.AssemblyName >>> assemblyRef, System.Security.Policy.Evidence assemblySecurity) >>> [0x00000] at (wrapper remoting-invoke-with-check) >>> System.AppDomain:Load >>> (System.Reflection.AssemblyName,System.Security.Policy.Evidence) >>> at System.AppDomain.Load (System.Reflection.AssemblyName >>> assemblyRef) [0x00000] at (wrapper remoting-invoke-with-check) >>> System.AppDomain:Load (System.Reflection.AssemblyName) at >>> System.Reflection.Assembly.Load (System.Reflection.AssemblyName >>> assemblyRef) [0x00000] at MakeBundle.QueueAssembly >>> (System.Collections.ArrayList files, System.String codebase) >>> [0x00000] at MakeBundle.Main (System.String[] args) [0x00000] >>> >>> >>> Robert Jordan wrote: Hi, >>> >>> If you bundle you app on a Linux 2.4 system, the binary should >>> work an all systems. >>> >>> The problem on Linux are the native dependencies (GLib, GTK) that >>> you have to deliver. I can't help you with that, because I never >>> did it myself. >>> >>> You may try to put them in the private "lib" dir of your >>> application and change LD_LIBRARY_PATH from inside of a launcher >>> script to point to this lib dir. >>> >>> Robert >>> >>> --------------------------------- Get your own web address for >>> just $1.99/1st yr. We'll help. Yahoo! Small Business. >> >> >> --------------------------------- Talk is cheap. Use Yahoo! >> Messenger to make PC-to-Phone calls. Great rates starting at >> 1???/min. > > > > --------------------------------- Do you Yahoo!? Get on board. You're > invited to try the new Yahoo! Mail. > > --------------------------------- All-new Yahoo! Mail - Fire up a > more powerful email and get things done faster. > > > ------------------------------------------------------------------------ > > > _______________________________________________ Mono-list maillist - > Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From cdlaforc at centurytel.net Wed Oct 4 14:09:14 2006 From: cdlaforc at centurytel.net (cdlaforc) Date: Wed, 4 Oct 2006 11:09:14 -0700 (PDT) Subject: [Mono-list] mod_mono Permissions Error Message-ID: <6644996.post@talk.nabble.com> I have recently installed all the mono packages from http://go-mono.com/download-stable/fedora-5-i386/ and have been trying to look at some of the example. I have gotten the xsp server working to view the example, but in my attempts to get the mod_mono apache module to work I am receiving 503 service errors. Here are the lines from my error_log: /usr/lib/pkgconfig/../../bin/mod-mono-server: line 2: /usr/bin/mono: Permission denied /usr/lib/pkgconfig/../../bin/mod-mono-server: line 2: exec: /usr/bin/mono: cannot execute: Permission denied I tried to remove the /tmp/.wapi dir as said in another post I have seen and I restarted httpd but it didn't work. Let me know if you can offer me any help on that. Thank, Chris. -- View this message in context: http://www.nabble.com/mod_mono-Permissions-Error-tf2384014.html#a6644996 Sent from the Mono - General mailing list archive at Nabble.com. From twostepted at yahoo.com Thu Oct 5 06:56:08 2006 From: twostepted at yahoo.com (Travis Staloch) Date: Thu, 5 Oct 2006 03:56:08 -0700 (PDT) Subject: [Mono-list] mkbundle on windows Message-ID: <20061005105608.22628.qmail@web30605.mail.mud.yahoo.com> Robert, I've created a shell script to set the LD_LIBRARY_PATH environment var before running my bundled app. Here's how I set LD_LIBRARY_PATH: #!/bin/sh LD_LIBRARY_PATH=/usr/lib/mono/1.0 export LD_LIBRARY_PATH ... I also tried to make another shell script which similarly sets LD_LIBRARY_PATH before mkbundling. In both cases, I'm still getting the same error message reported. I guess I'll try to verify that the 1.13 version is uninstalled. Thanks, --Travis Robert Jordan robertj at gmx.net Thu Oct 5 04:05:10 EDT 2006 Hi, Your bundled application seems to load libmono.so of 1.1.13. Assure that the old Mono is not in the way (by setting LD_LIBRARY_PATH or uninstalling it). Robert Travis Staloch wrote: Does anyone have any idea what this mono error message means on my Fedora 5 box? >Corlib not in sync with this runtime: expected corlib version 49, found 54. I see the message when I try running an app I mkbundled on the same box. At one time, I had a previous version of mono installed (1.13 I think) and then reinstalled by compiling from 1.1.17 source. Thanks for any advice, --Travis Travis Staloch wrote: Robert, Thanks again for your help. mkbundle was able to complete on my linux box, creating an .out file which I renamed to .exe and tried to run it. I get an error relating to the expected mscorlib version. Here it is > ./MyInstallerBundle.exe Corlib not in sync with this runtime: expected corlib version 49, found 54. Download a newer corlib or a newer runtime at http://www.go-mono.com/daily. Any ideas? --Travis Robert Jordan wrote: Hi Travis, I'm not sure whether any non-critical (critical as in security, data loss, etc.) patches will be accepted for the stable (1.1.13) branch, but I'll try to get them in. Robert Travis Staloch wrote: > Thanks alot Robert. I was wondering if I should use that one. BTW, > did you mention when that version of mkbundle.exe will be applied to > the current stable mono branch? > > --Travis > > Robert Jordan wrote: Hi Travis, > > That's the same problem like in Windows. Copy mkbundle.exe I sent you > in the folder with the assemblies you want to bundle and call it like > this: > > mono mkbundle.exe ... > > Robert > > Travis Staloch wrote: >> Hey Robert, >> >> I've been trying to use mkbundle now on my linux FC5 box and seem >> to be getting an error with it. The app itself runs fine on linux >> after making some changes to the dllmap entries in >> /usr/local/etc/mono/config. However when I use try to run the >> mkbundle command below, I get the error listed below. (The error >> says that it can't seem to find my InstallerCommon.dll which is in >> the same directory as MyInstaller.exe). >> >> Thanks for any advice. >> >> --Travis >> >> >>> mono /usr/local/lib/mono/1.0/mkbundle.exe -z --deps --config-dir >>> . MyInstaller.exe >> (BTW, I've tried leaving off the '--config-dir .' switch too). >> >> Unhandled Exception: System.IO.FileNotFoundException: >> InstallerCommon, Version=1.0.2336.677, Culture=neutral : >> InstallerCommon, Version=1.0.2336.677, Culture=neutral at <0x00000> >> at (wrapper managed-to-native) System.AppDomain:LoadAssembly >> (string,System.Security.Policy.Evidence,bool) at >> System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, >> System.Security.Policy.Evidence assemblySecurity) [0x00000] at >> (wrapper remoting-invoke-with-check) System.AppDomain:Load >> (System.Reflection.AssemblyName,System.Security.Policy.Evidence) at >> System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) >> [0x00000] at (wrapper remoting-invoke-with-check) >> System.AppDomain:Load (System.Reflection.AssemblyName) at >> System.Reflection.Assembly.Load (System.Reflection.AssemblyName >> assemblyRef) [0x00000] at MakeBundle.QueueAssembly >> (System.Collections.ArrayList files, System.String codebase) >> [0x00000] at MakeBundle.Main (System.String[] args) [0x00000] >> >> >> Robert Jordan wrote: Hi, >> >> If you bundle you app on a Linux 2.4 system, the binary should work >> an all systems. >> >> The problem on Linux are the native dependencies (GLib, GTK) that >> you have to deliver. I can't help you with that, because I never >> did it myself. >> >> You may try to put them in the private "lib" dir of your >> application and change LD_LIBRARY_PATH from inside of a launcher >> script to point to this lib dir. >> >> Robert >> >> --------------------------------- Get your own web address for just >> $1.99/1st yr. We'll help. Yahoo! Small Business. > > > > --------------------------------- Talk is cheap. Use Yahoo! > Messenger to make PC-to-Phone calls. Great rates starting at 1???/min. --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail. --------------------------------- All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. --------------------------------- Get your email and more, right on the new Yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061005/af6ca7e1/attachment.html From robertj at gmx.net Thu Oct 5 07:15:28 2006 From: robertj at gmx.net (Robert Jordan) Date: Thu, 05 Oct 2006 13:15:28 +0200 Subject: [Mono-list] mkbundle on windows In-Reply-To: <20061005105608.22628.qmail@web30605.mail.mud.yahoo.com> References: <20061005105608.22628.qmail@web30605.mail.mud.yahoo.com> Message-ID: Hi Travis, LD_LIBRARY_PATH=/usr/lib/mono/1.0 is wrong. It should be $prefix/lib of your 1.1.17 installation, probably /usr/lib. Robert Travis Staloch wrote: > Robert, > > I've created a shell script to set the LD_LIBRARY_PATH > environment var before running my bundled app. Here's > how I set LD_LIBRARY_PATH: > > #!/bin/sh > LD_LIBRARY_PATH=/usr/lib/mono/1.0 > export LD_LIBRARY_PATH > ... > > I also tried to make another shell script which similarly > sets LD_LIBRARY_PATH before mkbundling. > > In both cases, I'm still getting the same error message > reported. I guess I'll try to verify that the 1.13 > version is uninstalled. > > Thanks, > > --Travis > > > Robert Jordan > robertj at gmx.net > Thu Oct 5 04:05:10 EDT 2006 > > Hi, > > Your bundled application seems to load libmono.so of 1.1.13. > Assure that the old Mono is not in the way (by setting LD_LIBRARY_PATH > or uninstalling it). > > Robert > > > Travis Staloch wrote: Does anyone have any idea what this mono error message means on my Fedora 5 box? >> Corlib not in sync with this runtime: expected corlib version 49, found 54. > > I see the message when I try running an app I mkbundled on the same box. > > At one time, I had a previous version of mono installed (1.13 I think) and then reinstalled by compiling from 1.1.17 source. > > Thanks for any advice, > > --Travis > > > Travis Staloch wrote: Robert, > > Thanks again for your help. mkbundle was able to complete on my linux box, creating an .out file which I renamed to .exe and tried to run it. I get an error relating to the expected mscorlib version. Here it is >> ./MyInstallerBundle.exe > Corlib not in sync with this runtime: expected corlib version 49, found 54. > Download a newer corlib or a newer runtime at http://www.go-mono.com/daily. > > Any ideas? > > --Travis > > Robert Jordan wrote: Hi Travis, > > I'm not sure whether any non-critical (critical as in security, > data loss, etc.) patches will be accepted for the stable (1.1.13) > branch, but I'll try to get them in. > > Robert > > Travis Staloch wrote: >> Thanks alot Robert. I was wondering if I should use that one. BTW, >> did you mention when that version of mkbundle.exe will be applied to >> the current stable mono branch? >> >> --Travis >> >> Robert Jordan wrote: Hi Travis, >> >> That's the same problem like in Windows. Copy mkbundle.exe I sent you >> in the folder with the assemblies you want to bundle and call it like >> this: >> >> mono mkbundle.exe ... >> >> Robert >> >> Travis Staloch wrote: >>> Hey Robert, >>> >>> I've been trying to use mkbundle now on my linux FC5 box and seem >>> to be getting an error with it. The app itself runs fine on linux >>> after making some changes to the dllmap entries in >>> /usr/local/etc/mono/config. However when I use try to run the >>> mkbundle command below, I get the error listed below. (The error >>> says that it can't seem to find my InstallerCommon.dll which is in >>> the same directory as MyInstaller.exe). >>> >>> Thanks for any advice. >>> >>> --Travis >>> >>> >>>> mono /usr/local/lib/mono/1.0/mkbundle.exe -z --deps --config-dir >>>> . MyInstaller.exe >>> (BTW, I've tried leaving off the '--config-dir .' switch too). >>> >>> Unhandled Exception: System.IO.FileNotFoundException: >>> InstallerCommon, Version=1.0.2336.677, Culture=neutral : >>> InstallerCommon, Version=1.0.2336.677, Culture=neutral at <0x00000> >>> at (wrapper managed-to-native) System.AppDomain:LoadAssembly >>> (string,System.Security.Policy.Evidence,bool) at >>> System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, >>> System.Security.Policy.Evidence assemblySecurity) [0x00000] at >>> (wrapper remoting-invoke-with-check) System.AppDomain:Load >>> (System.Reflection.AssemblyName,System.Security.Policy.Evidence) at >>> System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) >>> [0x00000] at (wrapper remoting-invoke-with-check) >>> System.AppDomain:Load (System.Reflection.AssemblyName) at >>> System.Reflection.Assembly.Load (System.Reflection.AssemblyName >>> assemblyRef) [0x00000] at MakeBundle.QueueAssembly >>> (System.Collections.ArrayList files, System.String codebase) >>> [0x00000] at MakeBundle.Main (System.String[] args) [0x00000] >>> >>> >>> Robert Jordan wrote: Hi, >>> >>> If you bundle you app on a Linux 2.4 system, the binary should work >>> an all systems. >>> >>> The problem on Linux are the native dependencies (GLib, GTK) that >>> you have to deliver. I can't help you with that, because I never >>> did it myself. >>> >>> You may try to put them in the private "lib" dir of your >>> application and change LD_LIBRARY_PATH from inside of a launcher >>> script to point to this lib dir. >>> >>> Robert >>> >>> --------------------------------- Get your own web address for just >>> $1.99/1st yr. We'll help. Yahoo! Small Business. >> >> >> --------------------------------- Talk is cheap. Use Yahoo! >> Messenger to make PC-to-Phone calls. Great rates starting at 1???/min. > > > > --------------------------------- > Do you Yahoo!? > Get on board. You're invited to try the new Yahoo! Mail. > > > --------------------------------- > All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. > > > --------------------------------- > Get your email and more, right on the new Yahoo.com > > > ------------------------------------------------------------------------ > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From gonzalo at novell.com Thu Oct 5 08:10:59 2006 From: gonzalo at novell.com (Gonzalo Paniagua Javier) Date: Thu, 05 Oct 2006 08:10:59 -0400 Subject: [Mono-list] mod_mono Permissions Error In-Reply-To: <6644996.post@talk.nabble.com> References: <6644996.post@talk.nabble.com> Message-ID: <1160050260.4039.11.camel@lalo.micasa> On Wed, 2006-10-04 at 11:09 -0700, cdlaforc wrote: > I have recently installed all the mono packages from > http://go-mono.com/download-stable/fedora-5-i386/ and have been trying to > look at some of the example. I have gotten the xsp server working to view > the example, but in my attempts to get the mod_mono apache module to work I > am receiving 503 service errors. Here are the lines from my error_log: > > /usr/lib/pkgconfig/../../bin/mod-mono-server: line 2: /usr/bin/mono: > Permission denied > /usr/lib/pkgconfig/../../bin/mod-mono-server: line 2: exec: /usr/bin/mono: > cannot execute: Permission denied > > I tried to remove the /tmp/.wapi dir as said in another post I have seen and > I restarted httpd but it didn't work. Let me know if you can offer me any > help on that. Looks like the package for mod_mono has not been updated. -Gonzalo From cdlaforc at centurytel.net Thu Oct 5 09:35:58 2006 From: cdlaforc at centurytel.net (cdlaforc) Date: Thu, 5 Oct 2006 06:35:58 -0700 (PDT) Subject: [Mono-list] mod_mono Permissions Error In-Reply-To: <1160050260.4039.11.camel@lalo.micasa> References: <6644996.post@talk.nabble.com> <1160050260.4039.11.camel@lalo.micasa> Message-ID: <6658648.post@talk.nabble.com> Gonzalo Paniagua Javier-4 wrote: > > On Wed, 2006-10-04 at 11:09 -0700, cdlaforc wrote: >> I have recently installed all the mono packages from >> http://go-mono.com/download-stable/fedora-5-i386/ and have been trying to >> look at some of the example. I have gotten the xsp server working to >> view >> the example, but in my attempts to get the mod_mono apache module to work >> I >> am receiving 503 service errors. Here are the lines from my error_log: >> >> /usr/lib/pkgconfig/../../bin/mod-mono-server: line 2: /usr/bin/mono: >> Permission denied >> /usr/lib/pkgconfig/../../bin/mod-mono-server: line 2: exec: >> /usr/bin/mono: >> cannot execute: Permission denied >> >> I tried to remove the /tmp/.wapi dir as said in another post I have seen >> and >> I restarted httpd but it didn't work. Let me know if you can offer me >> any >> help on that. > > Looks like the package for mod_mono has not been updated. > > -Gonzalo > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > I think I had gotten that update yesterday. I ran the update this morning just to make sure, but mod_mono was not one of the packages and I am having the same problems. Any other ideas? Could this be Selinux causing problems? Thanks, Chris. -- View this message in context: http://www.nabble.com/mod_mono-Permissions-Error-tf2384014.html#a6658648 Sent from the Mono - General mailing list archive at Nabble.com. From cdlaforc at centurytel.net Thu Oct 5 09:44:25 2006 From: cdlaforc at centurytel.net (cdlaforc) Date: Thu, 5 Oct 2006 06:44:25 -0700 (PDT) Subject: [Mono-list] mod_mono Permissions Error In-Reply-To: <6658648.post@talk.nabble.com> References: <6644996.post@talk.nabble.com> <1160050260.4039.11.camel@lalo.micasa> <6658648.post@talk.nabble.com> Message-ID: <6658794.post@talk.nabble.com> cdlaforc wrote: > > > > Gonzalo Paniagua Javier-4 wrote: >> >> On Wed, 2006-10-04 at 11:09 -0700, cdlaforc wrote: >>> I have recently installed all the mono packages from >>> http://go-mono.com/download-stable/fedora-5-i386/ and have been trying >>> to >>> look at some of the example. I have gotten the xsp server working to >>> view >>> the example, but in my attempts to get the mod_mono apache module to >>> work I >>> am receiving 503 service errors. Here are the lines from my error_log: >>> >>> /usr/lib/pkgconfig/../../bin/mod-mono-server: line 2: /usr/bin/mono: >>> Permission denied >>> /usr/lib/pkgconfig/../../bin/mod-mono-server: line 2: exec: >>> /usr/bin/mono: >>> cannot execute: Permission denied >>> >>> I tried to remove the /tmp/.wapi dir as said in another post I have seen >>> and >>> I restarted httpd but it didn't work. Let me know if you can offer me >>> any >>> help on that. >> >> Looks like the package for mod_mono has not been updated. >> >> -Gonzalo >> >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> > > I think I had gotten that update yesterday. I ran the update this morning > just to make sure, but mod_mono was not one of the packages and I am > having the same problems. Any other ideas? Could this be Selinux causing > problems? > Thanks, > > Chris. > > So I stayed with my selinux thought and found this line to disable selinux for the httpd dameon: setsebool -P httpd_disable_trans 1 and restarted httpd service restart httpd and now it works fine. I don't know if this is the best solution, but let me know if anyone has anything better. Thanks, Chris. -- View this message in context: http://www.nabble.com/mod_mono-Permissions-Error-tf2384014.html#a6658794 Sent from the Mono - General mailing list archive at Nabble.com. From monodanmorg at yahoo.com Thu Oct 5 15:21:47 2006 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Thu, 5 Oct 2006 12:21:47 -0700 (PDT) Subject: [Mono-list] Portability Layer and MonoDevelop Message-ID: <20061005192147.75237.qmail@web30808.mail.mud.yahoo.com> After reading monologue, I noticed it mention many Windows programmers fail to use the portability code for paths. I wanted to mention that many Linux programmers do this too with Mono. They hard-code paths such as "\usr\local\bin\somefile" when this does not exist on Windows unless they are running the application under cygwin. Good example of this is MonoDevelop. Good thing Tak cleaned this up. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From lots.of.mailing.lists at gmail.com Thu Oct 5 18:01:26 2006 From: lots.of.mailing.lists at gmail.com (Alex Mac) Date: Thu, 5 Oct 2006 23:01:26 +0100 Subject: [Mono-list] Summer of Code / gstreamer bindings Message-ID: <1b420d380610051501w3f788ed7wdc02bbf39ec15553@mail.gmail.com> Not sure if this has been asked before but what state are the gstreamer bindings in that were being developed for one of the SoC projects. I'd hate to see them stagnate like the last attempt at .net bindings for gstreamer. Are they going to be in a state for release anytime soon? (Not nagging, just keen to play with them :) From xeno at eskimo.com Thu Oct 5 18:39:00 2006 From: xeno at eskimo.com (Xeno Campanoli) Date: Thu, 05 Oct 2006 15:39:00 -0700 Subject: [Mono-list] Unable to compile Stack variable on mcs on Ubuntu: Help Please Message-ID: <45258984.2010509@eskimo.com> I get the following diagnostic trying to compile code I cite at the bottom of this message: xeno at radioflyer:~/study/puzz/cs$ mcs -debug try003.cs ?try003.cs(22,15): error CS8025: Parsing error ?Compilation failed: 1 error(s), 0 warnings xeno at radioflyer:~/study/puzz/cs$ You can also see I have the Generic using line commented out because it yields the following diagnostic when line 22 is commented out: xeno at radioflyer:~/study/puzz/cs$ mcs -debug try003.cs ?try003.cs(5,7): error CS0234: The type or namespace name `Generics' does not exist in the namespace `System.Collections'. Are you missing an assembly reference? try003.cs(5,1): error CS0246: The type or namespace name `System.Collections.Generics' could not be found. Are you missing a using directive or an assembly reference? ?Compilation failed: 2 error(s), 0 warnings xeno at radioflyer:~/study/puzz/cs$ Here is the source file: ----------------------------------------------------------------------- // BTreeTry using System; using System.Collections; //using System.Collections.Generics; using System.Text; namespace BTreeTrySpace { public class BTreeNode { public BTreeNode Left; public BTreeNode Right; public string VALUE; } public class BTreeUtil { // Everything else is at the class level, so same here to be consistent. public const int MAXDEPTH = 32; //public Stack sFlagStack; public stack intStack = new Stack(); // line 22 // public static BTreeNode sNodeStack[]; // public static int sNodeDepth; } class BTreeTry { static void Main() { // Use the system console object System.Console.WriteLine("Hello, Java!"); } } } // end of BTreeTry ----------------------------------------------------------------------------------------------------- -- Support Instant Runoff Voting! YES ON 3: 1. Cut off Mudslinging Politics! 2. Bring back real Democracy! From joncham at gmail.com Thu Oct 5 19:44:32 2006 From: joncham at gmail.com (Jon Chambers) Date: Thu, 5 Oct 2006 19:44:32 -0400 Subject: [Mono-list] Unable to compile Stack variable on mcs on Ubuntu: Help Please In-Reply-To: <45258984.2010509@eskimo.com> References: <45258984.2010509@eskimo.com> Message-ID: <17c2d80b0610051644u7cb75209p7cb714ae78d9be2f@mail.gmail.com> You need to compile using gmcs, not mcs in order to use 2.0 features. Try: gmcs try003.cs Thanks, Jonathan On 10/5/06, Xeno Campanoli wrote: > > I get the following diagnostic trying to compile code I cite at the > bottom of this message: > > xeno at radioflyer:~/study/puzz/cs$ mcs -debug try003.cs > try003.cs(22,15): error CS8025: Parsing error > Compilation failed: 1 error(s), 0 warnings > xeno at radioflyer:~/study/puzz/cs$ > > You can also see I have the Generic using line commented out because it > yields the following diagnostic when line 22 is commented out: > > xeno at radioflyer:~/study/puzz/cs$ mcs -debug try003.cs > try003.cs(5,7): error CS0234: The type or namespace name `Generics' > does not exist in the namespace `System.Collections'. Are you missing an > assembly reference? > try003.cs(5,1): error CS0246: The type or namespace name > `System.Collections.Generics' could not be found. Are you missing a > using directive or an assembly reference? > Compilation failed: 2 error(s), 0 warnings > xeno at radioflyer:~/study/puzz/cs$ > > Here is the source file: > ----------------------------------------------------------------------- > // BTreeTry > > using System; > using System.Collections; > //using System.Collections.Generics; > using System.Text; > > namespace BTreeTrySpace { > > public class BTreeNode > { > public BTreeNode Left; > public BTreeNode Right; > public string VALUE; > } > > public class BTreeUtil > { > // Everything else is at the class level, so same here to be consistent. > public const int MAXDEPTH = 32; > //public Stack sFlagStack; > public stack intStack = new Stack(); // line 22 > // public static BTreeNode sNodeStack[]; > // public static int sNodeDepth; > > } > > class BTreeTry { > static void Main() > { > // Use the system console object > System.Console.WriteLine("Hello, Java!"); > } > } > } > // end of BTreeTry > > ----------------------------------------------------------------------------------------------------- > > -- > Support Instant Runoff Voting! YES ON 3: > 1. Cut off Mudslinging Politics! > 2. Bring back real Democracy! > > _______________________________________________ > 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/20061005/ab3c39a6/attachment.html From xeno at eskimo.com Thu Oct 5 19:51:15 2006 From: xeno at eskimo.com (Xeno Campanoli) Date: Thu, 05 Oct 2006 16:51:15 -0700 Subject: [Mono-list] Unable to compile Stack variable on mcs on Ubuntu: Help Please In-Reply-To: <17c2d80b0610051644u7cb75209p7cb714ae78d9be2f@mail.gmail.com> References: <45258984.2010509@eskimo.com> <17c2d80b0610051644u7cb75209p7cb714ae78d9be2f@mail.gmail.com> Message-ID: <45259A73.10301@eskimo.com> Jon Chambers wrote: > You need to compile using gmcs, not mcs in order to use 2.0 features. Try: > > gmcs try003.cs Here's the results of my try (It did compile and work when I commented out the "using System.Collections.Generics;" line): xeno at radioflyer:~/study/puzz/cs$ gmcs -debug try003.cs ?try003.cs(5,7): error CS0234: The type or namespace name `Generics' does not exist in the namespace `System.Collections'. Are you missing an assembly reference? try003.cs(5,1): error CS0246: The type or namespace name `Collections.Generics' could not be found. Are you missing a using directive or an assembly reference? ?Compilation failed: 2 error(s), 0 warnings xeno at radioflyer:~/study/puzz/cs$ > > Thanks, > Jonathan > > On 10/5/06, *Xeno Campanoli* < xeno at eskimo.com > > wrote: > > I get the following diagnostic trying to compile code I cite at the > bottom of this message: > > xeno at radioflyer:~/study/puzz/cs$ mcs -debug try003.cs > try003.cs(22,15): error CS8025: Parsing error > Compilation failed: 1 error(s), 0 warnings > xeno at radioflyer:~/study/puzz/cs$ > > You can also see I have the Generic using line commented out > because it > yields the following diagnostic when line 22 is commented out: > > xeno at radioflyer:~/study/puzz/cs$ mcs -debug try003.cs > try003.cs(5,7): error CS0234: The type or namespace name `Generics' > does not exist in the namespace `System.Collections'. Are you > missing an > assembly reference? > try003.cs(5,1): error CS0246: The type or namespace name > `System.Collections.Generics' could not be found. Are you missing a > using directive or an assembly reference? > Compilation failed: 2 error(s), 0 warnings > xeno at radioflyer:~/study/puzz/cs$ > > Here is the source file: > ----------------------------------------------------------------------- > > // BTreeTry > > using System; > using System.Collections; > //using System.Collections.Generics; > using System.Text; > > namespace BTreeTrySpace { > > public class BTreeNode > { > public BTreeNode Left; > public BTreeNode Right; > public string VALUE; > } > > public class BTreeUtil > { > // Everything else is at the class level, so same here to be > consistent. > public const int MAXDEPTH = 32; > //public Stack sFlagStack; > public stack intStack = new Stack(); // line 22 > // public static BTreeNode sNodeStack[]; > // public static int sNodeDepth; > > } > > class BTreeTry { > static void Main() > { > // Use the system console object > System.Console.WriteLine("Hello, Java!"); > } > } > } > // end of BTreeTry > ----------------------------------------------------------------------------------------------------- > > > -- > Support Instant Runoff Voting! YES ON 3: > 1. Cut off Mudslinging Politics! > 2. Bring back real Democracy! > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > -- Support Instant Runoff Voting! YES ON 3: 1. Cut off Mudslinging Politics! 2. Bring back real Democracy! From joncham at gmail.com Thu Oct 5 19:55:04 2006 From: joncham at gmail.com (Jon Chambers) Date: Thu, 5 Oct 2006 19:55:04 -0400 Subject: [Mono-list] Unable to compile Stack variable on mcs on Ubuntu: Help Please In-Reply-To: <45259A73.10301@eskimo.com> References: <45258984.2010509@eskimo.com> <17c2d80b0610051644u7cb75209p7cb714ae78d9be2f@mail.gmail.com> <45259A73.10301@eskimo.com> Message-ID: <17c2d80b0610051655s633226acv75682af898c8c864@mail.gmail.com> That should be System.Collections.Generic: http://msdn2.microsoft.com/en-us/library/system.collections.generic.aspx On 10/5/06, Xeno Campanoli wrote: > > Jon Chambers wrote: > > You need to compile using gmcs, not mcs in order to use 2.0 features. > Try: > > > > gmcs try003.cs > Here's the results of my try (It did compile and work when I commented > out the "using System.Collections.Generics;" line): > > xeno at radioflyer:~/study/puzz/cs$ gmcs -debug try003.cs > try003.cs(5,7): error CS0234: The type or namespace name `Generics' > does not exist in the namespace `System.Collections'. Are you missing an > assembly reference? > try003.cs(5,1): error CS0246: The type or namespace name > `Collections.Generics' could not be found. Are you missing a using > directive or an assembly reference? > Compilation failed: 2 error(s), 0 warnings > xeno at radioflyer:~/study/puzz/cs$ > > > > > > Thanks, > > Jonathan > > > > On 10/5/06, *Xeno Campanoli* < xeno at eskimo.com > > > wrote: > > > > I get the following diagnostic trying to compile code I cite at the > > bottom of this message: > > > > xeno at radioflyer:~/study/puzz/cs$ mcs -debug try003.cs > > try003.cs(22,15): error CS8025: Parsing error > > Compilation failed: 1 error(s), 0 warnings > > xeno at radioflyer:~/study/puzz/cs$ > > > > You can also see I have the Generic using line commented out > > because it > > yields the following diagnostic when line 22 is commented out: > > > > xeno at radioflyer:~/study/puzz/cs$ mcs -debug try003.cs > > try003.cs(5,7): error CS0234: The type or namespace name `Generics' > > does not exist in the namespace `System.Collections'. Are you > > missing an > > assembly reference? > > try003.cs(5,1): error CS0246: The type or namespace name > > `System.Collections.Generics' could not be found. Are you missing a > > using directive or an assembly reference? > > Compilation failed: 2 error(s), 0 warnings > > xeno at radioflyer:~/study/puzz/cs$ > > > > Here is the source file: > > > ----------------------------------------------------------------------- > > > > // BTreeTry > > > > using System; > > using System.Collections; > > //using System.Collections.Generics; > > using System.Text; > > > > namespace BTreeTrySpace { > > > > public class BTreeNode > > { > > public BTreeNode Left; > > public BTreeNode Right; > > public string VALUE; > > } > > > > public class BTreeUtil > > { > > // Everything else is at the class level, so same here to be > > consistent. > > public const int MAXDEPTH = 32; > > //public Stack sFlagStack; > > public stack intStack = new Stack(); // line 22 > > // public static BTreeNode sNodeStack[]; > > // public static int sNodeDepth; > > > > } > > > > class BTreeTry { > > static void Main() > > { > > // Use the system console object > > System.Console.WriteLine("Hello, Java!"); > > } > > } > > } > > // end of BTreeTry > > > ----------------------------------------------------------------------------------------------------- > > > > > > -- > > Support Instant Runoff Voting! YES ON 3: > > 1. Cut off Mudslinging Politics! > > 2. Bring back real Democracy! > > > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > > -- > Support Instant Runoff Voting! YES ON 3: > 1. Cut off Mudslinging Politics! > 2. Bring back real Democracy! > > _______________________________________________ > 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/20061005/c19b0f51/attachment.html From carlosble at shidix.com Fri Oct 6 04:19:04 2006 From: carlosble at shidix.com (Carlos Ble) Date: Fri, 06 Oct 2006 09:19:04 +0100 Subject: [Mono-list] Mono Foundation? In-Reply-To: <1159964741.5098.47.camel@erandi.dom> References: <1159964741.5098.47.camel@erandi.dom> Message-ID: <1160122744.5438.21.camel@laptop1> Hi! I think that this is a big step. Maybe the best way to fund Mono is to involve major corporations in it. It is difficult because a lot of them just think in .Net/Java rather than Mono, so a Mono Foundation might be a big step promoting Mono. With good free software projects into the Mono Foundation many companies might be interested in Mono. To talk with "N*" project maintainers like NLog, NHibernate... to welcome them to the Mono Foundation might be a hit. I think that using the Apache Foundation as the host is not a good idea because people thinks in Java when they read "Apache Foundation" but I don't know how much cost to setup up a new foundation. Im a volunteer to help in the Mono Foundation :-) Regards El mi?, 04-10-2006 a las 08:25 -0400, Miguel de Icaza escribi?: > Hello, > > Over the past few years, people have suggested that we should create > a foundation to further develop Mono. The idea in general is good, it > has worked fairly well for Gnome, and has worked fairly well for > Apache. > > This comes at a time when some third parties would like to see Mono > developed in a particular direction and the process that we have at > Novell for getting paid for Mono is not optimal (which is to say, today > the best thing you can do to fund Mono is buy SUSE, which is not a very > direct way of funding Mono). > > But am not sure that everyone has the same idea about what a Mono > foundation would do, I would like such a foundation to be a mechanism to > funnel more money into the development of Mono and its ecosystem. > > A foundation might have other uses, as it does in Gnome and Apache > cases (defining release schedules, promotion, opening up the decision > making process), but I think that fundamentally it should aim to have a > budget that it can use to hire developers to work on particular areas > that need to be developed. > > I think this is a topic that is worth discussing at the upcoming > Mono Meeting: are there enough companies that would be willing to fund a > non-profit to develop open source software for this particular purpose? > > A few months ago, just when someone had brought up the idea about a > Mono Foundation, I happened to run into Greg Stein from Apache at a > conference. He had a few comments: setting up a foundation is a lot of > work (I agree); it might be best to reuse an existing foundation (I > agree as well); The Apache Foundation *might* be a host for our > activities, but does not have a mechanism for paying/funding any > activities (which is what I would personally like to see happen). > > Miguel. > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list -- Carlos Ble Shidix Technologies www.shidix.com/carlosble From alan.mcgovern at gmail.com Fri Oct 6 04:37:05 2006 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Fri, 6 Oct 2006 09:37:05 +0100 Subject: [Mono-list] Unable to compile Stack variable on mcs on Ubuntu: Help Please In-Reply-To: <17c2d80b0610051655s633226acv75682af898c8c864@mail.gmail.com> References: <45258984.2010509@eskimo.com> <17c2d80b0610051644u7cb75209p7cb714ae78d9be2f@mail.gmail.com> <45259A73.10301@eskimo.com> <17c2d80b0610051655s633226acv75682af898c8c864@mail.gmail.com> Message-ID: <117799f00610060137k5483a60aif1c780e6d6f90d9@mail.gmail.com> You need to uncomment the line: 'using System.Collections.Generics;' On 10/6/06, Jon Chambers wrote: > > That should be System.Collections.Generic: > > http://msdn2.microsoft.com/en-us/library/system.collections.generic.aspx > > On 10/5/06, Xeno Campanoli wrote: > > > > Jon Chambers wrote: > > > You need to compile using gmcs, not mcs in order to use 2.0 features. > > Try: > > > > > > gmcs try003.cs > > Here's the results of my try (It did compile and work when I commented > > out the "using System.Collections.Generics;" line): > > > > xeno at radioflyer:~/study/puzz/cs$ gmcs -debug try003.cs > > try003.cs(5,7): error CS0234: The type or namespace name `Generics' > > does not exist in the namespace `System.Collections'. Are you missing an > > > > assembly reference? > > try003.cs(5,1): error CS0246: The type or namespace name > > `Collections.Generics' could not be found. Are you missing a using > > directive or an assembly reference? > > Compilation failed: 2 error(s), 0 warnings > > xeno at radioflyer:~/study/puzz/cs$ > > > > > > > > > > Thanks, > > > Jonathan > > > > > > On 10/5/06, *Xeno Campanoli* < xeno at eskimo.com > > > > wrote: > > > > > > I get the following diagnostic trying to compile code I cite at > > the > > > bottom of this message: > > > > > > xeno at radioflyer:~/study/puzz/cs$ mcs -debug try003.cs > > > try003.cs(22,15): error CS8025: Parsing error > > > Compilation failed: 1 error(s), 0 warnings > > > xeno at radioflyer:~/study/puzz/cs$ > > > > > > You can also see I have the Generic using line commented out > > > because it > > > yields the following diagnostic when line 22 is commented out: > > > > > > xeno at radioflyer:~/study/puzz/cs$ mcs -debug try003.cs > > > try003.cs(5,7): error CS0234: The type or namespace name > > `Generics' > > > does not exist in the namespace `System.Collections'. Are you > > > missing an > > > assembly reference? > > > try003.cs(5,1): error CS0246: The type or namespace name > > > `System.Collections.Generics' could not be found. Are you missing > > a > > > using directive or an assembly reference? > > > Compilation failed: 2 error(s), 0 warnings > > > xeno at radioflyer:~/study/puzz/cs$ > > > > > > Here is the source file: > > > > > ----------------------------------------------------------------------- > > > > > > // BTreeTry > > > > > > using System; > > > using System.Collections; > > > //using System.Collections.Generics; > > > using System.Text; > > > > > > namespace BTreeTrySpace { > > > > > > public class BTreeNode > > > { > > > public BTreeNode Left; > > > public BTreeNode Right; > > > public string VALUE; > > > } > > > > > > public class BTreeUtil > > > { > > > // Everything else is at the class level, so same here to be > > > consistent. > > > public const int MAXDEPTH = 32; > > > //public Stack sFlagStack; > > > public stack intStack = new Stack(); // line 22 > > > // public static BTreeNode sNodeStack[]; > > > // public static int sNodeDepth; > > > > > > } > > > > > > class BTreeTry { > > > static void Main() > > > { > > > // Use the system console object > > > System.Console.WriteLine("Hello, Java!"); > > > } > > > } > > > } > > > // end of BTreeTry > > > > > ----------------------------------------------------------------------------------------------------- > > > > > > > > > > > -- > > > Support Instant Runoff Voting! YES ON 3: > > > 1. Cut off Mudslinging Politics! > > > 2. Bring back real Democracy! > > > > > > _______________________________________________ > > > Mono-list maillist - Mono-list at lists.ximian.com > > > > > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > > > > > > > -- > > Support Instant Runoff Voting! YES ON 3: > > 1. Cut off Mudslinging Politics! > > 2. Bring back real Democracy! > > > > _______________________________________________ > > 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 > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061006/c8548d9c/attachment-0001.html From xeno at eskimo.com Fri Oct 6 12:38:02 2006 From: xeno at eskimo.com (Xeno Campanoli) Date: Fri, 06 Oct 2006 09:38:02 -0700 Subject: [Mono-list] I cannot seem to find a definitive list of standard C# exceptions Message-ID: <4526866A.3070600@eskimo.com> Sorry if this should be obvious, but isn't there a URL somewhere where I can find a list of 20 or so standard exceptions, just like exists for Java? Thank you for any feedback. xc -- Support Instant Runoff Voting! YES ON 3: 1. Cut off Mudslinging Politics! 2. Bring back real Democracy! From mhinks at gmail.com Fri Oct 6 12:41:21 2006 From: mhinks at gmail.com (Martin Hinks) Date: Fri, 6 Oct 2006 17:41:21 +0100 Subject: [Mono-list] I cannot seem to find a definitive list of standard C# exceptions In-Reply-To: <4526866A.3070600@eskimo.com> References: <4526866A.3070600@eskimo.com> Message-ID: <7fb639590610060941m682799ecue7150dea114dc36b@mail.gmail.com> Well, as the point of the Exception class is extendable there is really no "standard" set, but the MSDN reference for each class will tell you what each method will throw. On 10/6/06, Xeno Campanoli wrote: > Sorry if this should be obvious, but isn't there a URL somewhere where I > can find a list of 20 or so standard exceptions, just like exists for Java? > > Thank you for any feedback. > > xc > > -- > Support Instant Runoff Voting! YES ON 3: > 1. Cut off Mudslinging Politics! > 2. Bring back real Democracy! > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Martin Hinks http://www.m-s-d.net From fmoex06 at student.vxu.se Fri Oct 6 16:42:17 2006 From: fmoex06 at student.vxu.se (Francisco Modesto) Date: Fri, 06 Oct 2006 22:42:17 +0200 Subject: [Mono-list] Problems with XMLSerializer Message-ID: <200610062242.17932.fmoex06@student.vxu.se> Hi! It's possible to send an object serialized with XMLSerializer using a NetworkStream without closing the stream? The problem is I need to close the stream after sending, because XMLSerializer.Deserialize(Stream st) waits until the stream close. Thanks From xeno at eskimo.com Fri Oct 6 17:29:49 2006 From: xeno at eskimo.com (Xeno Campanoli) Date: Fri, 06 Oct 2006 14:29:49 -0700 Subject: [Mono-list] An object reference is required? Message-ID: <4526CACD.20206@eskimo.com> I'm sorry if this should be obvious, but i'm not finding how to make such an object reference. It's probably staring me right in the face. I've got an object variable private DoubleLinkedList StartNode; which presumably I'd use a & on in C++, and I want to assign a value to it from a variable that received the results of a new instantiation. The diagnostic is: ?BuildAndTraverseDLL.cs(58,6): error CS0120: `StartNode': An object reference is required for the nonstatic field, method or property BuildAndTraverseDLL.cs(58,6): error CS0131: Left hand of an assignment must be a variable, a property or an indexer from the compile, of course. -- Support Instant Runoff Voting! YES ON 3: 1. Cut off Mudslinging Politics! 2. Bring back real Democracy! From andreas.faerber at web.de Fri Oct 6 17:39:06 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Fri, 6 Oct 2006 23:39:06 +0200 Subject: [Mono-list] An object reference is required? In-Reply-To: <4526CACD.20206@eskimo.com> References: <4526CACD.20206@eskimo.com> Message-ID: Am 06.10.2006 um 23:29 schrieb Xeno Campanoli: > I'm sorry if this should be obvious, but i'm not finding how to make > such an object reference. It's probably staring me right in the face. > I've got an object variable > > private DoubleLinkedList StartNode; > > which presumably I'd use a & on in C++, > > and I want to assign a value to it from a variable that received the > results of a new instantiation. The diagnostic is: > > BuildAndTraverseDLL.cs(58,6): error CS0120: `StartNode': An object > reference is required for the nonstatic field, method or property > BuildAndTraverseDLL.cs(58,6): error CS0131: Left hand of an assignment > must be a variable, a property or an indexer > > from the compile, of course. Most likely you are assigning within a static method - then you need a static field as opposed to an instance field. Andreas From tracker1_lists at theroughnecks.com Fri Oct 6 21:45:21 2006 From: tracker1_lists at theroughnecks.com (Michael J. Ryan) Date: Fri, 06 Oct 2006 18:45:21 -0700 Subject: [Mono-list] Mono Foundation? In-Reply-To: <1159964741.5098.47.camel@erandi.dom> References: <1159964741.5098.47.camel@erandi.dom> Message-ID: <452706B1.50009@theroughnecks.com> Miguel de Icaza wrote: > Over the past few years, people have suggested that we should create > a foundation to further develop Mono. The idea in general is good, it > has worked fairly well for Gnome, and has worked fairly well for > Apache. I think it would be a very good idea. Especially as applications that rely on the mono and gtk# framework become more common in the various Linux distributions. The ties to Novell/SuSE imho somewhat limit funding from other companies (such as Canonical) who are coming to include F-Spot, Beagle and other apps which are written on top of the framework. I'm not sure, and seriously hope that it wouldn't drive a wedge between said Mono organization, and Novell corporation. This is just my own input on the issue. -- Michael J. Ryan - tracker1(at)theroughnecks(dot)com - www.theroughnecks.net icq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email) From tracker1_lists at theroughnecks.com Fri Oct 6 22:01:36 2006 From: tracker1_lists at theroughnecks.com (Michael J. Ryan) Date: Fri, 06 Oct 2006 19:01:36 -0700 Subject: [Mono-list] I cannot seem to find a definitive list of standard C# exceptions In-Reply-To: <4526866A.3070600@eskimo.com> References: <4526866A.3070600@eskimo.com> Message-ID: <45270A80.8060506@theroughnecks.com> Xeno Campanoli wrote: > Sorry if this should be obvious, but isn't there a URL somewhere where I > can find a list of 20 or so standard exceptions, just like exists for Java? > > Thank you for any feedback. In C# you don't need to handle *EVERY* type of exception that a class *might* throw, like Java. For the most part, setup generic handlers at *least* for System.ApplicationException, and possibly System.Exception (depending on your usage, I've had to do this for stuff in windows a few times). From there, if you are dealing with databases, add in handling for the *Exception within your client's namespace. There is generally a base Exception class for a given section of the namespace structure. If you are dealing with threading, System.Threading.ThreadAbortException should be checked for... it really just depends on what you are working with.. 3rd party components will vary though, but the above is a general practice. NOTE: When creating your own project/namespace, you should consider creating a generic exception class for that project/namespace that inherits the System.ApplicationException (for projects/applications) Or System.Exception class when raising exceptions caused from platform libraries (ie P/Invoke) that should probably not allow the application to continue.. -- Michael J. Ryan - tracker1(at)theroughnecks(dot)com - www.theroughnecks.net icq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email) From miguel at novell.com Sat Oct 7 12:09:28 2006 From: miguel at novell.com (Miguel de Icaza) Date: Sat, 07 Oct 2006 12:09:28 -0400 Subject: [Mono-list] SPAM-LOW: [Mono-dev] Talks at Mono Meeting. In-Reply-To: <000d01c6e80e$29cd62b0$6401a8c0@FERRARI> References: <000d01c6e80e$29cd62b0$6401a8c0@FERRARI> Message-ID: <1160237368.18016.55.camel@erandi.dom> Hey, > I'd be happy to talk a bit about NUnit and where it is in terms of > running on Mono out of the box. It wouldn't be a deep-tech talk, just > an experience report of what kinds of things we ran into, what we're > doing about them and what might help us move it along. That would be great, I will add you to the schedule. Miguel. From andreas.faerber at web.de Sun Oct 8 09:55:28 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Sun, 8 Oct 2006 15:55:28 +0200 Subject: [Mono-list] mcs/gmcs crash Message-ID: <40C429CE-9834-4B34-B7C7-3EE29C6089F8@web.de> Hello, When I compile the following code: public class test { public static void Main() { hjk; } } in Mono 1.1.17.1 on OS X (both ppc and i386) using "[g]mcs test.cs [- out:...]" then both mcs and gmcs emit an appropriate error message and exit, but on the console I see that mono crashed, apparently performing an illegal memory access. If I leave out the semicolon in the faulty line (leading to a different error) then there is no crash. Is this a known issue, or should I file a ticket? Andreas From robertj at gmx.net Sun Oct 8 16:11:36 2006 From: robertj at gmx.net (Robert Jordan) Date: Sun, 08 Oct 2006 22:11:36 +0200 Subject: [Mono-list] mcs/gmcs crash In-Reply-To: <40C429CE-9834-4B34-B7C7-3EE29C6089F8@web.de> References: <40C429CE-9834-4B34-B7C7-3EE29C6089F8@web.de> Message-ID: Andreas F?rber wrote: > Hello, > > When I compile the following code: > > public class test { > public static void Main() { > hjk; > } > } > > in Mono 1.1.17.1 on OS X (both ppc and i386) using "[g]mcs test.cs [- > out:...]" then both mcs and gmcs emit an appropriate error message > and exit, but on the console I see that mono crashed, apparently > performing an illegal memory access. > > If I leave out the semicolon in the faulty line (leading to a > different error) then there is no crash. > > Is this a known issue, or should I file a ticket? That's not a mcs crash, see http://bugzilla.ximian.com/show_bug.cgi?id=74869 Disable the dumb Crash Reporter or apply the patch. Robert From andreas.faerber at web.de Sun Oct 8 16:39:45 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Sun, 8 Oct 2006 22:39:45 +0200 Subject: [Mono-list] mcs/gmcs crash In-Reply-To: References: <40C429CE-9834-4B34-B7C7-3EE29C6089F8@web.de> Message-ID: Am 08.10.2006 um 22:11 schrieb Robert Jordan: > Andreas F?rber wrote: >> When I compile the following code: >> >> public class test { >> public static void Main() { >> hjk; >> } >> } >> >> in Mono 1.1.17.1 on OS X (both ppc and i386) using "[g]mcs test.cs [- >> out:...]" then both mcs and gmcs emit an appropriate error message >> and exit, but on the console I see that mono crashed, apparently >> performing an illegal memory access. >> >> If I leave out the semicolon in the faulty line (leading to a >> different error) then there is no crash. >> >> Is this a known issue, or should I file a ticket? > > That's not a mcs crash, see > > http://bugzilla.ximian.com/show_bug.cgi?id=74869 > > Disable the dumb Crash Reporter or apply the patch. Are you certain about the workaround? Such Mach code was part of Cocoa# earlier this year and did not fix NullPointerExceptions for me back then, I even wrote an NUnit test case to show that. I am working on a managed Xcode plugin, so patching my own local Mono is no solution. Andreas From robertj at gmx.net Sun Oct 8 17:36:10 2006 From: robertj at gmx.net (Robert Jordan) Date: Sun, 08 Oct 2006 23:36:10 +0200 Subject: [Mono-list] mcs/gmcs crash In-Reply-To: References: <40C429CE-9834-4B34-B7C7-3EE29C6089F8@web.de> Message-ID: Andreas F?rber wrote: > Am 08.10.2006 um 22:11 schrieb Robert Jordan: > >> Andreas F?rber wrote: >>> When I compile the following code: >>> >>> public class test { >>> public static void Main() { >>> hjk; >>> } >>> } >>> >>> in Mono 1.1.17.1 on OS X (both ppc and i386) using "[g]mcs test.cs [- >>> out:...]" then both mcs and gmcs emit an appropriate error message >>> and exit, but on the console I see that mono crashed, apparently >>> performing an illegal memory access. >>> >>> If I leave out the semicolon in the faulty line (leading to a >>> different error) then there is no crash. >>> >>> Is this a known issue, or should I file a ticket? >> That's not a mcs crash, see >> >> http://bugzilla.ximian.com/show_bug.cgi?id=74869 >> >> Disable the dumb Crash Reporter or apply the patch. > > Are you certain about the workaround? Such Mach code was part of > Cocoa# earlier this year and did not fix NullPointerExceptions for me > back then, I even wrote an NUnit test case to show that. I meant the last "mini.diff" patch against the runtime. > I am working on a managed Xcode plugin, so patching my own local Mono > is no solution. You could try out the patch, especially on x86, and post a follow up to the bug entry. Or build a dylib (derived from the patch's code) and pinvoke it, because I'm not sure if patch will be ever accepted. Robert From xiii29 at free.fr Mon Oct 9 08:18:58 2006 From: xiii29 at free.fr (xiii29 at free.fr) Date: Mon, 09 Oct 2006 14:18:58 +0200 Subject: [Mono-list] [HS] SVN politics Message-ID: <1160396338.452a3e3246a5f@imp7-g19.free.fr> Hi, I'm wondering if there is somewhere a place where I can find the SVN politics of Mono ? That is to say : How are you using SVN and how do you manage version with it ! Thanks in advance From s.scarciglia at hyperphar.com Mon Oct 9 10:22:14 2006 From: s.scarciglia at hyperphar.com (Salvatore Scarciglia) Date: Mon, 9 Oct 2006 16:22:14 +0200 Subject: [Mono-list] [MonoDevelop] where to find a useful list about mono In-Reply-To: <452A5AD2.9070807@libero.it> References: <452A5AD2.9070807@libero.it> Message-ID: <20061009162214.64fefc5d@localhost> On Mon, 09 Oct 2006 16:21:06 +0200 enzo wrote: > Someone know if there is a list about mono, where can I find some help > about use and configure mono tools . > > Regards, Enzo Ciao Enzo, http://lists.ximian.com/mailman/listinfo/mono-list official mono list Bye Salvatore -- LAAS --------------------------<| http://laas.altervista.org ----<| From carlosble at shidix.com Mon Oct 9 10:48:34 2006 From: carlosble at shidix.com (Carlos Ble) Date: Mon, 09 Oct 2006 15:48:34 +0100 Subject: [Mono-list] [HS] SVN politics In-Reply-To: <1160396338.452a3e3246a5f@imp7-g19.free.fr> References: <1160396338.452a3e3246a5f@imp7-g19.free.fr> Message-ID: <1160405314.5457.21.camel@laptop1> http://mono-project.com/SVN El lun, 09-10-2006 a las 14:18 +0200, xiii29 at free.fr escribi?: > Hi, > > I'm wondering if there is somewhere a place where I can find the SVN politics of > Mono ? > > That is to say : How are you using SVN and how do you manage version with it ! > > Thanks in advance > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list -- Carlos Ble Shidix Technologies www.shidix.com/carlosble From andreas.faerber at web.de Mon Oct 9 17:33:46 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Mon, 9 Oct 2006 23:33:46 +0200 Subject: [Mono-list] Mono embedding issue Message-ID: Hello, When embedding Mono 1.1.17.1 on OS X i386, I get an assertion failure in mono_jit_init: ** ERROR **: file threads.c: line 420 (mono_thread_attach): assertion failed: (thread_handle) aborting... It goes on to mention SIGABRT and includes an empty stacktrace. The same code, compiled against the corresponding ppc Mono.framework, works great on PPC. I've looked at the beforementioned source file in SVN head and found no clue. The http://www.mono-project.com/Embedding_Mono Wiki page mentioned including a gc.h before pthread.h but such an include file is not distributed together with Mono, some other include paths on the page might need updating as well (mono/jit/jit.h instead of mono/mini/ jit.h). However, I am not spawning any threads myself, thus not using pthread.h, just calling the mono_jit_init function within my library method. Any ideas? Andreas From miguel at ximian.com Mon Oct 9 19:10:27 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Mon, 09 Oct 2006 19:10:27 -0400 Subject: [Mono-list] mcs/gmcs crash In-Reply-To: References: <40C429CE-9834-4B34-B7C7-3EE29C6089F8@web.de> Message-ID: <1160435427.4966.10.camel@erandi.dom> Hey, > I meant the last "mini.diff" patch against the runtime. > > > I am working on a managed Xcode plugin, so patching my own local Mono > > is no solution. > > You could try out the patch, especially on x86, and post a follow > up to the bug entry. Or build a dylib (derived from the patch's code) > and pinvoke it, because I'm not sure if patch will be ever accepted. I just commited the patch, but I would love to get some feedback from those using MacOS X. From miguel at ximian.com Mon Oct 9 19:11:55 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Mon, 09 Oct 2006 19:11:55 -0400 Subject: [Mono-list] Mono embedding issue In-Reply-To: References: Message-ID: <1160435515.4966.12.camel@erandi.dom> Hello, > When embedding Mono 1.1.17.1 on OS X i386, I get an assertion failure > in mono_jit_init: > ** ERROR **: file threads.c: line 420 (mono_thread_attach): assertion > failed: (thread_handle) > aborting... > It goes on to mention SIGABRT and includes an empty stacktrace. > > The same code, compiled against the corresponding ppc Mono.framework, > works great on PPC. I've looked at the beforementioned source file in > SVN head and found no clue. Is this thread registered with Mono? Mono requires that all threads that will have access to Mono are registered with the GC. From robertj at gmx.net Mon Oct 9 21:19:20 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 10 Oct 2006 03:19:20 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: References: Message-ID: Andreas F?rber wrote: > Hello, > > When embedding Mono 1.1.17.1 on OS X i386, I get an assertion failure > in mono_jit_init: > ** ERROR **: file threads.c: line 420 (mono_thread_attach): assertion > failed: (thread_handle) > aborting... This basically means that io-layer's GetCurrentThread returned NULL, which is completely nonsense because it always returns a constant value != NULL. I suppose MacOS has its own GetCurrentThread function which gets linked and called instead Mono's: http://bugzilla.ximian.com/show_bug.cgi?id=77324 Robert From andreas.faerber at web.de Tue Oct 10 05:24:19 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Tue, 10 Oct 2006 11:24:19 +0200 Subject: [Mono-list] mcs/gmcs crash In-Reply-To: <1160435427.4966.10.camel@erandi.dom> References: <40C429CE-9834-4B34-B7C7-3EE29C6089F8@web.de> <1160435427.4966.10.camel@erandi.dom> Message-ID: Hi Miguel, >> I meant the last "mini.diff" patch against the runtime. >> >>> I am working on a managed Xcode plugin, so patching my own local >>> Mono >>> is no solution. >> >> You could try out the patch, especially on x86, and post a follow >> up to the bug entry. Or build a dylib (derived from the patch's code) >> and pinvoke it, because I'm not sure if patch will be ever accepted. > > I just commited the patch, but I would love to get some feedback from > those using MacOS X. If you could provide me with a ppc binary and instructions for updating my installation (I guess I'll be updating to 1.1.17.2 first, wasn't aware) I'd be happy to test it and report back. Andreas From andreas.faerber at web.de Tue Oct 10 06:29:14 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Tue, 10 Oct 2006 12:29:14 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: References: Message-ID: <1A8C3489-07CE-4D34-BC4D-63FCECC22889@web.de> Hello Robert, Thanks for your quick replies! >> When embedding Mono 1.1.17.1 on OS X i386, I get an assertion failure >> in mono_jit_init: >> ** ERROR **: file threads.c: line 420 (mono_thread_attach): assertion >> failed: (thread_handle) >> aborting... > > This basically means that io-layer's GetCurrentThread returned > NULL, which is completely nonsense because it always returns > a constant value != NULL. > > I suppose MacOS has its own GetCurrentThread function which gets > linked and called instead Mono's: > > http://bugzilla.ximian.com/show_bug.cgi?id=77324 I already read that bug report. It refers to _GetCurrentProcess as opposed to GetCurrentThread. I do get a linker warning only for the _GetCurrentProcess symbol, as mentioned in #77324; my workaround is to add -undefined dynamic_lookup to the linker flags in Xcode, which also eliminates the error for the _environ symbol. The only remaining warning then was Mono.framework not being Universal, which I can safely ignore as I am recompiling on both platforms against the native one installed. Please do note that my code works on ppc, so it's unlikely to be a general OS X API problem. I would of course appreciate some solution to the name conflict, possibly as outlined in the bug comments by Paolo in April. My native code is a Cocoa bundle, linked to Cocoa.framework, DevToolsCore.framework and Mono.framework. The other _GetCurrentProcess seems to originate somewhere from the Cocoa.framework, which is the basis for all object-oriented bundles on OS X. My method calling mono_jit_init is a regular (non-initialize) Objective-C class method. Since yesterday that is to be exact - before that I had the Mono embedding in a separate library's initialization routine, spawning a pthread to avoid deadlock, yielding virtually identical results (ppc worked, i386 didn't). One machine is a Dual Core PowerPC G5, the other an Intel Core Duo, so both dual-core. The only difference I just noticed is OS X v10.4.8 on ppc and v10.4.7 on i386, but both are running Xcode 2.4. Will check on that but I'm not too optimistic... Andreas From andreas.faerber at web.de Tue Oct 10 08:32:37 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Tue, 10 Oct 2006 14:32:37 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: <1A8C3489-07CE-4D34-BC4D-63FCECC22889@web.de> References: <1A8C3489-07CE-4D34-BC4D-63FCECC22889@web.de> Message-ID: Am 10.10.2006 um 12:29 schrieb Andreas F?rber: > >>> When embedding Mono 1.1.17.1 on OS X i386, I get an assertion >>> failure >>> in mono_jit_init: >>> ** ERROR **: file threads.c: line 420 (mono_thread_attach): >>> assertion >>> failed: (thread_handle) >>> aborting... >> >> This basically means that io-layer's GetCurrentThread returned >> NULL, which is completely nonsense because it always returns >> a constant value != NULL. >> >> I suppose MacOS has its own GetCurrentThread function which gets >> linked and called instead Mono's: >> >> http://bugzilla.ximian.com/show_bug.cgi?id=77324 > > I already read that bug report. It refers to _GetCurrentProcess as > opposed to [_]GetCurrentThread. > > I do get a linker warning only for the _GetCurrentProcess symbol, as > mentioned in #77324; my workaround is to add -undefined > dynamic_lookup to the linker flags in Xcode, which also eliminates > the error for the _environ symbol. The only remaining warning then > was Mono.framework not being Universal, which I can safely ignore as > I am recompiling on both platforms against the native one installed. > > Please do note that my code works on ppc, so it's unlikely to be a > general OS X API problem. > > I would of course appreciate some solution to the name conflict, > possibly as outlined in the bug comments by Paolo in April. > My native code is a Cocoa bundle, linked to Cocoa.framework, > DevToolsCore.framework and Mono.framework. The other > _GetCurrentProcess seems to originate somewhere from the > Cocoa.framework, which is the basis for all object-oriented bundles > on OS X. > > My method calling mono_jit_init is a regular (non-initialize) > Objective-C class method. Since yesterday that is to be exact - > before that I had the Mono embedding in a separate library's > initialization routine, spawning a pthread to avoid deadlock, > yielding virtually identical results (ppc worked, i386 didn't). > > One machine is a Dual Core PowerPC G5, the other an Intel Core Duo, > so both dual-core. The only difference I just noticed is OS X v10.4.8 > on ppc and v10.4.7 on i386, but both are running Xcode 2.4. Will > check on that but I'm not too optimistic... Same problem on Intel on OS X v10.4.8, and with Mono 1.1.17.2. The link to the 1.1.17.2 release notes raises a 403 error btw. Andreas From robertj at gmx.net Tue Oct 10 09:00:45 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 10 Oct 2006 15:00:45 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: <1A8C3489-07CE-4D34-BC4D-63FCECC22889@web.de> References: <1A8C3489-07CE-4D34-BC4D-63FCECC22889@web.de> Message-ID: Hi Andreas, Andreas F?rber wrote: >>> When embedding Mono 1.1.17.1 on OS X i386, I get an assertion failure >>> in mono_jit_init: >>> ** ERROR **: file threads.c: line 420 (mono_thread_attach): assertion >>> failed: (thread_handle) >>> aborting... >> This basically means that io-layer's GetCurrentThread returned >> NULL, which is completely nonsense because it always returns >> a constant value != NULL. >> >> I suppose MacOS has its own GetCurrentThread function which gets >> linked and called instead Mono's: >> >> http://bugzilla.ximian.com/show_bug.cgi?id=77324 > > I already read that bug report. It refers to _GetCurrentProcess as > opposed to GetCurrentThread. Like GetCurrentProcess, GetCurrentThread is actually a Carbon function: http://developer.apple.com/documentation/Carbon/Reference/Process_Manager/Reference/reference.html#//apple_ref/c/func/GetCurrentProcess http://developer.apple.com/documentation/Carbon/Reference/Thread_Manager/Reference/reference.html#//apple_ref/c/func/GetCurrentThread The proof by induction about why GetCurrentThread could fail as well, is left as an exercise for the reader :-) As suggested by bug #77324 (2006-03-10 16:38), you could try to reference the Mono framework before Carbon: gcc foo.c -framework Mono -framework Carbon -o ... Robert From andreas.faerber at web.de Tue Oct 10 11:18:15 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Tue, 10 Oct 2006 17:18:15 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: References: <1A8C3489-07CE-4D34-BC4D-63FCECC22889@web.de> Message-ID: <580C1C7F-C4B9-4DEB-A5B9-D12505D4C8CE@web.de> Hi Robert, >>>> When embedding Mono 1.1.17.1 on OS X i386, I get an assertion >>>> failure >>>> in mono_jit_init: >>>> ** ERROR **: file threads.c: line 420 (mono_thread_attach): >>>> assertion >>>> failed: (thread_handle) >>>> aborting... >>> This basically means that io-layer's GetCurrentThread returned >>> NULL, which is completely nonsense because it always returns >>> a constant value != NULL. >>> >>> I suppose MacOS has its own GetCurrentThread function which gets >>> linked and called instead Mono's: >>> >>> http://bugzilla.ximian.com/show_bug.cgi?id=77324 >> >> I already read that bug report. It refers to _GetCurrentProcess as >> opposed to GetCurrentThread. > > Like GetCurrentProcess, GetCurrentThread is actually a Carbon > function: > > http://developer.apple.com/documentation/Carbon/Reference/ > Process_Manager/Reference/reference.html#//apple_ref/c/func/ > GetCurrentProcess > http://developer.apple.com/documentation/Carbon/Reference/ > Thread_Manager/Reference/reference.html#//apple_ref/c/func/ > GetCurrentThread I don't doubt that, as they don't sound like Cocoa functions. > The proof by induction about why GetCurrentThread could fail as well, > is left as an exercise for the reader :-) Bad luck you mentioned this to a student doing lots of proofs by induction in his lectures... ;-) Proof by induction is only valid on an inductive set, which are defined to include the element 1 and for each element a an element a+1 ... I don't see how this would apply to symbolic export names which are more like |F2^n. Anyway, this depends highly on the precondition of whether the underlying linker emits warnings for each conflicting symbol or only for one. In the latter case it is possible. ;-) With dozens of warnings emitted by Xcode at times I figured I should get a complete list of conflicting symbols just as in the case of missing glibconfig.h include file etc. Might've been wrong there. > As suggested by bug #77324 (2006-03-10 16:38), you could try to > reference the Mono framework before Carbon: > > gcc foo.c -framework Mono -framework Carbon -o ... > > I don't reference Carbon directly at all, I've added an explicit - framework Mono flag before -framework Foundation and reordered the frameworks, no change. If it were a question of link order, then shouldn't it fail on ppc, too? Anyway, I can't recompile my host application, which might or might not be using certain Carbon functions before loading my code dynamically... (which as a Universal binary it should do consistently on both platforms, no?) Is the -undefined dynamic_lookup the problem, can it be replaced by something better? I needed it to get past the _environ symbol error I mentioned earlier. Andreas From andreas.faerber at web.de Tue Oct 10 12:00:52 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Tue, 10 Oct 2006 18:00:52 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: <1160435515.4966.12.camel@erandi.dom> References: <1160435515.4966.12.camel@erandi.dom> Message-ID: Hi Miguel, >> When embedding Mono 1.1.17.1 on OS X i386, I get an assertion failure >> in mono_jit_init: >> ** ERROR **: file threads.c: line 420 (mono_thread_attach): assertion >> failed: (thread_handle) >> aborting... >> It goes on to mention SIGABRT and includes an empty stacktrace. >> >> The same code, compiled against the corresponding ppc Mono.framework, >> works great on PPC. I've looked at the beforementioned source file in >> SVN head and found no clue. > > Is this thread registered with Mono? Mono requires that all threads > that will have access to Mono are registered with the GC. The thread is the thread that I am being called on and am subsequently attempting to initialize the JIT on, so it was not registered with Mono before. However, earlier this year we talked about a bug I reported (http:// bugzilla.ximian.com/show_bug.cgi?id=77354 - comments in #77638), which to my understanding led to the change of native threads being automatically registered with the Mono runtime, making my Cocoa based applications happy since 1.1.17 or .16. Andreas From enzo.arlati at libero.it Mon Oct 9 16:00:00 2006 From: enzo.arlati at libero.it (enzo) Date: Mon, 09 Oct 2006 22:00:00 +0200 Subject: [Mono-list] monodevelop on FC5 doesn't find assembly gtk-sharp] Message-ID: <452AAA40.3030608@libero.it> Altough my question is about monodevelop, I post the question also on this mono list, because I suppose the problem I got is somewhere due to configuration problem. I' m a newby on mono and I tried to install monodevelop to ease the learning process but I think there is something wrong inside the configuration, mybe there should be some old assembly somewhere, which I should not be able to find. I'm trying to use monodevelop 0.12 on FC5 . The installation where performed using yum, all dependencies are resolved properly but when I run monodevelop I got this error: enzo at enzo5 tmp]$ monodevelop ** (./MonoDevelop.exe:5401): WARNING **: The following assembly referenced from /usr/lib/monodevelop/bin/gnome-sharp.dll could not be loaded: Assembly: gtk-sharp (assemblyref_index=2) Version: 2.0.0.0 Public Key: 35e10195dab3c99f The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/usr/lib/monodevelop/bin). ** (./MonoDevelop.exe:5401): WARNING **: Could not load file or assembly 'gtk-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its dependencies. 2006-10-06 22:33:00,418 [-1209149760] ERROR MonoDevelop.Core.ILoggingService [(null)] - Add-in failed to load: MonoDevelop.Core.Gui 2006-10-06 22:33:00,477 [-1209149760] ERROR MonoDevelop.Core.ILoggingService [(null)] - System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded. at <0x00000> at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool) at System.Reflection.Assembly.GetTypes () [0x00000] at MonoDevelop.Core.AddIns.DefaultAddInTree.LoadCodonsAndConditions (System.Reflection.Assembly assembly) [0x00000] ......................... the libraries gtk-sharp and gnome-sharp , which seems to cause the problem are installed in GAC, tough I have revisions 1.0 and 2.8 while monodevelop seems to require the revision 2.0. [enzo at enzo5 varie]$ gacutil -l | grep -i gtk-sharp gtk-sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f [enzo at enzo5 varie]$ gacutil -l | grep -i gnome-sharp gnome-sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f gnome-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f Does someone give me more hints on how to solve or better investigate on such problem ? Regards, Enzo ============================================================================ REPLY TO: perl -e 'print qq^VVCWCQJUVD00YQVWKVBPG^^qq^3898m08970Yp584299l93^ ' SKYPE username: earlati ============================================================================ trusted computing, who is it ? --> http://www.p2pforum.it/counter/click.php?id=21 ============================================================================ From andriy.tkach at stu-electronics.com Wed Oct 11 06:07:45 2006 From: andriy.tkach at stu-electronics.com (Andrey Tkach) Date: Wed, 11 Oct 2006 13:07:45 +0300 Subject: [Mono-list] web + remoting while load testing causes mod_mono_server crash Message-ID: <000001c6ed1d$19469b50$3c6ea8c0@stu.km> Hi, Testing our ported to mono application that uses mono web + remoting, I discovered next trouble: While flooding the application with requests mod-mono-server stops responding very soon. The same application works well under much more massive load on windows/.net without any problems. I've reported this as a bug: http://bugzilla.ximian.com/show_bug.cgi?id=79642 In this bug you can see more detailed description with attached code & screenshots. Does anyone else faced with this stuff too? -- Sincerely yours, Andriy Tkach -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061011/05a80fde/attachment-0001.html From robertj at gmx.net Wed Oct 11 06:32:21 2006 From: robertj at gmx.net (Robert Jordan) Date: Wed, 11 Oct 2006 12:32:21 +0200 Subject: [Mono-list] web + remoting while load testing causes mod_mono_server crash In-Reply-To: <000001c6ed1d$19469b50$3c6ea8c0@stu.km> References: <000001c6ed1d$19469b50$3c6ea8c0@stu.km> Message-ID: Andrey Tkach wrote: > Hi, > > Testing our ported to mono application that uses mono web + remoting, I > discovered next trouble: > > While flooding the application with requests mod-mono-server stops > responding very soon. The same application works well under much more > massive load on windows/.net without any problems. > I've reported this as a bug: > http://bugzilla.ximian.com/show_bug.cgi?id=79642 > > In this bug you can see more detailed description with attached code & > screenshots. > > Does anyone else faced with this stuff too? What happens if you run the tests on XSP standalone? Do you encounter the same problems? Robert From andriy.tkach at stu-electronics.com Wed Oct 11 09:13:08 2006 From: andriy.tkach at stu-electronics.com (Andrey Tkach) Date: Wed, 11 Oct 2006 16:13:08 +0300 Subject: [Mono-list] FW: web + remoting while load testing causesmod_mono_server crash Message-ID: <001901c6ed36$ff082aa0$3c6ea8c0@stu.km> Hi, Just checked, my test application on standalone XSP works well. Graph is no as smooth as in Win2003, XSP consumes more CPU, but no lost requests were registered. See MS ACT screenshot. http://bugzilla.ximian.com/showattachment.cgi?attach_id=17834 Sincerely yours, Andriy Tkach > -----Original Message----- > From: mono-list-bounces at lists.ximian.com [mailto:mono-list- > bounces at lists.ximian.com] On Behalf Of Robert Jordan > Sent: Wednesday, October 11, 2006 1:32 PM > To: Mono-list at lists.ximian.com > Subject: Re: [Mono-list] web + remoting while load testing > causesmod_mono_server crash > > Andrey Tkach wrote: > > Hi, > > > > Testing our ported to mono application that uses mono web + remoting, I > > discovered next trouble: > > > > While flooding the application with requests mod-mono-server stops > > responding very soon. The same application works well under much more > > massive load on windows/.net without any problems. > > I've reported this as a bug: > > http://bugzilla.ximian.com/show_bug.cgi?id=79642 > > > > In this bug you can see more detailed description with attached code & > > screenshots. > > > > Does anyone else faced with this stuff too? > > What happens if you run the tests on XSP standalone? > Do you encounter the same problems? > > Robert > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From alp at atoker.com Wed Oct 11 10:07:30 2006 From: alp at atoker.com (Alp Toker) Date: Wed, 11 Oct 2006 15:07:30 +0100 Subject: [Mono-list] [Fwd: Managed D-Bus 0.1: An alternative D-Bus implementation] Message-ID: <452CFAA2.8090308@atoker.com> Thought this might be relevant to mono-list too. -------------- next part -------------- An embedded message was scrubbed... From: Alp Toker Subject: Managed D-Bus 0.1: An alternative D-Bus implementation Date: Wed, 11 Oct 2006 14:01:40 +0100 Size: 7096 Url: http://lists.ximian.com/pipermail/mono-list/attachments/20061011/f8bafef7/attachment.mht From russell.kay at realtimeworlds.com Wed Oct 11 13:05:13 2006 From: russell.kay at realtimeworlds.com (russell.kay at realtimeworlds.com) Date: Wed, 11 Oct 2006 18:05:13 +0100 Subject: [Mono-list] ExecuteReader problem Message-ID: <591BEE7C98CA7F48A7079C8221CC012F013E32B8@CHICAGO.dundee.realtimeworlds.com> All, I'm trying out ODBC on MAC OSX and I'm getting an exception every time I try to do an ExecuteReader call The exception output is.... Unhandled Exception: System.ArgumentOutOfRangeException: ArgRange_Array Parameter name: count at System.Text.ASCIIEncoding.GetString (System.Byte[] bytes, Int32 index, Int32 count) [0x00000] at System.Data.Odbc.OdbcDataReader.GetColumnAttributeStr (Int32 column, FieldIdentifier fieldId) [0x00000] at System.Data.Odbc.OdbcDataReader.GetSchemaTable () [0x00000] at System.Data.Odbc.OdbcDataReader..ctor (System.Data.Odbc.OdbcCommand command, CommandBehavior behavior) [0x00000] at System.Data.Odbc.OdbcDataReader..ctor (System.Data.Odbc.OdbcCommand command, CommandBehavior behavior, Int32 recordAffected) [0x00000] at (wrapper remoting-invoke-with-check) System.Data.Odbc.OdbcDataReader:.ctor (System.Data.Odbc.OdbcCommand,System.Data.CommandBehavior,int) at System.Data.Odbc.OdbcCommand.ExecuteReader (CommandBehavior behavior) [0x00000] at System.Data.Odbc.OdbcCommand.ExecuteDbDataReader (CommandBehavior behavior) [0x00000] at System.Data.Common.DbCommand.ExecuteReader () [0x00000] at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader () [0x00000] at DatabaseTest.Program.Main (System.String[] args) [0x00000] The code I am executing is class Program { static void Main(string[] args) { //connect to the database at //IDbConnection conn = new OdbcConnection( "DSN=RealTrading;USER=root;PASSWORD=root;" ); IDbConnection conn = new OdbcConnection("DRIVER={MySQL ODBC 3.51 Driver};SERVER=;DATABASE=;USER=;PASSWORD =;OPTION=3;"); Console.WriteLine("Connecting to database...."); conn.Open(); Stopwatch sw = new Stopwatch(); IDbCommand dbcmd = conn.CreateCommand(); dbcmd.CommandText = "SELECT * FROM table WHERE NumLines>10"; Console.WriteLine( "Executing SQL" ); sw.Start(); IDataReader reader = dbcmd.ExecuteReader(); sw.Stop(); Console.WriteLine("Elapsed Time = {0}", sw.Elapsed); int n = 0; while( reader.Read() && (n<20) ) { Console.WriteLine( "Sector {0} TOID {1} NumLines {2} Date {3}", reader["Sector"], reader["TOID"], reader["NumLines"], reader["Date"] ); ++n; } // end while reader.Close(); reader = null; dbcmd.Dispose(); dbcmd = null; conn.Close(); conn = null; } } Any Ideas???? Russell From andreas.faerber at web.de Wed Oct 11 17:49:50 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Wed, 11 Oct 2006 23:49:50 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: <1160435515.4966.12.camel@erandi.dom> References: <1160435515.4966.12.camel@erandi.dom> Message-ID: <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> Hey, >> When embedding Mono 1.1.17.1 on OS X i386, I get an assertion failure >> in mono_jit_init: >> ** ERROR **: file threads.c: line 420 (mono_thread_attach): assertion >> failed: (thread_handle) >> aborting... >> It goes on to mention SIGABRT and includes an empty stacktrace. >> >> The same code, compiled against the corresponding ppc Mono.framework, >> works great on PPC. I've looked at the beforementioned source file in >> SVN head and found no clue. > > Is this thread registered with Mono? Mono requires that all threads > that will have access to Mono are registered with the GC. I've re-read the mini.c and threads.c source - the failing assertion is directly after a call to GetCurrentThread() inside mono_thread_attach (which is being called as the last step of mini_init and mono_jit_init). Still it works on ppc, which puzzles me. What do you propose me to do about the issue? A colleague of mine, long-time Mac user, has just discovered the pleasures of "Microsoft-created" C# and the Mono runtime - based on this I believe a "cute" graphical integration of Mono with Xcode as the standard IDE would be beneficial for the developer outreach of Mono on that platform, and if staff uses it at our university this may well lead to students getting to know C# and Mono in addition to the unfortunately wide-spread and dominant Java. From the available non-official Xcode documentation and some managed Objective-C reflection code of my own I've discovered a way of writing a bundle where the only native code is the execution of an assembly included within the bundle; the managed code in turn uses my Cocoa bridge to provide the classes doing the actual work, accessing Mono's rich libraries and avoiding the need to re-write such code in Objective-C. It is my assumption that if we resolve this embedding issue then not only Xcode plugins but also widgets and other non-application parts of OS X can be written using managed code! So, should I try to prepare a patch for the runtime with the renaming Paolo proposed in #77324 as a solution? Or could it be related to the non-specified x86 thread attaching issues mentioned by Paolo in #77638? So far I have only tried to compile Mono under Cygwin on Windows, where I had instructions from the Wiki, including specific instructions and a script for the dependencies; if anyone would tell me how to go about it on OS X without ruining my existing Mono installation I'd be willing to give it a try. Andreas From miguel at ximian.com Wed Oct 11 17:54:01 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Wed, 11 Oct 2006 17:54:01 -0400 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> Message-ID: <1160603641.4828.51.camel@erandi.dom> Hello, > So, should I try to prepare a patch for the runtime with the renaming > Paolo proposed in #77324 as a solution? Or could it be related to the > non-specified x86 thread attaching issues mentioned by Paolo in #77638? One thing that I would like to check with Dick about his personal preference on how to go around this. One option is to introduce something like: #define OpenFile __mono_OpenFile And include this in all of Mono, but this has the disadvantage that we would be looking at a method called "OpenFile" and not be able to set a breakpoint ("is this broken?") Another option is to replace all the call sites with monoOpenFile for example as well as all the function definitions and provide a define only on Windows to map to the real names. This is uglier and lengthier in the source code, but it would not have any hidden surprises. Another option is to only do the above hacks with the two conflicting routines. Miguel. From alesv at fbl.cz Wed Oct 11 18:00:05 2006 From: alesv at fbl.cz (Ales Vojacek) Date: Thu, 12 Oct 2006 00:00:05 +0200 Subject: [Mono-list] XMPP protokol Message-ID: <452D6965.9090901@fbl.cz> Hi all, is there some live project which implements XMPP protocol for mono. Regards Ales From alesv at fbl.cz Wed Oct 11 18:04:02 2006 From: alesv at fbl.cz (Ales Vojacek) Date: Thu, 12 Oct 2006 00:04:02 +0200 Subject: [Mono-list] XMPP protocol Message-ID: <452D6A52.9060004@fbl.cz> Hi all, is there some live project which implements XMPP protocol for mono. Regards Ales From alesv at fbl.cz Wed Oct 11 18:24:20 2006 From: alesv at fbl.cz (Ales Vojacek) Date: Thu, 12 Oct 2006 00:24:20 +0200 Subject: [Mono-list] XMPP protocol In-Reply-To: <452D6A52.9060004@fbl.cz> References: <452D6A52.9060004@fbl.cz> Message-ID: <452D6F14.9060602@fbl.cz> Bu it seem to be dead project there are no changes for a long time. Regards Ales Ales Vojacek wrote: > Hi all, > is there some live project which implements XMPP protocol for mono. > Regards Ales > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From antonello at deveel.com Wed Oct 11 18:27:05 2006 From: antonello at deveel.com (Antonello Provenzano) Date: Thu, 12 Oct 2006 00:27:05 +0200 Subject: [Mono-list] XMPP protocol In-Reply-To: <452D6F14.9060602@fbl.cz> References: <452D6A52.9060004@fbl.cz> <452D6F14.9060602@fbl.cz> Message-ID: For what I know is the only Jabber project supporting .NET and Mono around, although it is inactive. On 10/12/06, Ales Vojacek wrote: > Bu it seem to be dead project there are no changes for a long time. > Regards Ales > > Ales Vojacek wrote: > > Hi all, > > is there some live project which implements XMPP protocol for mono. > > Regards Ales > > _______________________________________________ > > 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 doza at sztorm.net Wed Oct 11 18:27:13 2006 From: doza at sztorm.net (Dominik Zablotny) Date: Thu, 12 Oct 2006 00:27:13 +0200 Subject: [Mono-list] XMPP protocol In-Reply-To: <452D6A52.9060004@fbl.cz> References: <452D6A52.9060004@fbl.cz> Message-ID: <1160605633.13141.2.camel@doza-desktop> Dnia 12-10-2006, czw o godzinie 00:04 +0200, Ales Vojacek napisa?: > Hi all, > is there some live project which implements XMPP protocol for mono. Ahoj! Depends on what you mean by live ;) I'm maintaining simple library Piorun.Xmpp, but not much developed recently - http://piorun.sztorm.net -- Dominik Zablotny xmpp:doza at sztorm.net From antonello at deveel.com Wed Oct 11 18:31:34 2006 From: antonello at deveel.com (Antonello Provenzano) Date: Thu, 12 Oct 2006 00:31:34 +0200 Subject: [Mono-list] XMPP protocol In-Reply-To: <452D6F14.9060602@fbl.cz> References: <452D6A52.9060004@fbl.cz> <452D6F14.9060602@fbl.cz> Message-ID: For what I know is the only Jabber project supporting .NET and Mono around, although it is inactive. Cheers On 10/12/06, Ales Vojacek wrote: > Bu it seem to be dead project there are no changes for a long time. > Regards Ales > > Ales Vojacek wrote: > > Hi all, > > is there some live project which implements XMPP protocol for mono. > > Regards Ales > > _______________________________________________ > > 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 lee at datatrakpos.com Wed Oct 11 18:55:43 2006 From: lee at datatrakpos.com (Lee) Date: Wed, 11 Oct 2006 18:55:43 -0400 Subject: [Mono-list] ASP.NET 2.0 as binaries? Message-ID: <20061011225548.HHFD17329.ibm64aec.bellsouth.net@YOUR588B4A13EA> Hi all, I am about to start a asp.net 2.0 project and I was wondering if mono supports delivering websites as binary assemblies instead of distributing the actual .aspx files with code behind? I'm asking because this is a commercial application and I would like to use obfustication with it. There will not be that many concurrent users (20 or less at peak) so I was thinking about using XSP. Thanks for any suggestions or guidance. --- Lee From gstark at electrorent.com Wed Oct 11 20:21:55 2006 From: gstark at electrorent.com (Greg Stark) Date: Wed, 11 Oct 2006 17:21:55 -0700 Subject: [Mono-list] DNN for Mono Message-ID: <004401c6ed94$6fb910e0$8506800a@cp1.electrorent.com> I am aware of the mojoPortal project. Has anyone gotten DNN 4 to run? Greg From miguel at ximian.com Wed Oct 11 22:28:29 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Wed, 11 Oct 2006 22:28:29 -0400 Subject: [Mono-list] ASP.NET 2.0 as binaries? In-Reply-To: <20061011225548.HHFD17329.ibm64aec.bellsouth.net@YOUR588B4A13EA> References: <20061011225548.HHFD17329.ibm64aec.bellsouth.net@YOUR588B4A13EA> Message-ID: <1160620109.27491.2.camel@erandi.dom> > I am about to start a asp.net 2.0 project and I was wondering if mono > supports delivering websites as binary assemblies instead of distributing > the actual .aspx files with code behind? This is a 2.0 feature and it is still an area we are working on, its not done yet. Miguel From massi at ximian.com Thu Oct 12 02:03:16 2006 From: massi at ximian.com (Massimiliano Mantione) Date: Thu, 12 Oct 2006 08:03:16 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> Message-ID: <1160632996.4102.18.camel@matrix.ximian.com> On Wed, 2006-10-11 at 23:49 +0200, Andreas F?rber wrote: > So far I have only tried to compile Mono under Cygwin on Windows, > where I had instructions from the Wiki, including specific > instructions and a script for the dependencies; if anyone would tell > me how to go about it on OS X without ruining my existing Mono > installation I'd be willing to give it a try. I have never used OS X, but the standard way of hacking Mono without touching the official Mono installation is choosing a custom prefix. I mean, you download the sources, and when running ./configure (or ./autogen.sh if you work from svn) specify the --prefix option. The choice of prefix is arbitrary, as long as it does not overlap the officially installed one. I prefer working with prefixes on my own home (like "/home/massi/mono") so I never need root permissions to install the custom mono, and therefore I have no chances to mess things up. Then, to use your custom Mono, set the following: export PATH=$PREFIX/bin:$PATH export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH The "PKG_CONFIG_PATH" thing is needed so that if you compile other libraries/applications, their configure stage will see the new Mono instead of the system provided one. The idea is: if you run those three commands, you live in a world where Mono is your hacked one, otherwise you live in the "default" world. Hope this helps, Massi From andreas.faerber at web.de Thu Oct 12 07:13:12 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Thu, 12 Oct 2006 13:13:12 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: <1160632996.4102.18.camel@matrix.ximian.com> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160632996.4102.18.camel@matrix.ximian.com> Message-ID: <88CC9C0A-3F82-4DC6-B493-9E99ABD61D11@web.de> Am 12.10.2006 um 08:03 schrieb Massimiliano Mantione: > > On Wed, 2006-10-11 at 23:49 +0200, Andreas F?rber wrote: >> So far I have only tried to compile Mono under Cygwin on Windows, >> where I had instructions from the Wiki, including specific >> instructions and a script for the dependencies; if anyone would tell >> me how to go about it on OS X without ruining my existing Mono >> installation I'd be willing to give it a try. > > I have never used OS X, but the standard way of hacking Mono without > touching the official Mono installation is choosing a custom prefix. > > I mean, you download the sources, and when running ./configure (or > ./autogen.sh if you work from svn) specify the --prefix option. > The choice of prefix is arbitrary, as long as it does not overlap > the officially installed one. I prefer working with prefixes on my > own home (like "/home/massi/mono") so I never need root permissions > to install the custom mono, and therefore I have no chances to mess > things up. That's a great hint! Using a user-specific prefix it won't be able to access /usr/bin. What about Mono's dependencies? Is it sufficient to have Mono installed, or do I need additional glib and pkg-config stuff? Any other command line arguments or environment variables necessary for it to find the headers and libraries? Andreas From robertj at gmx.net Thu Oct 12 07:32:19 2006 From: robertj at gmx.net (Robert Jordan) Date: Thu, 12 Oct 2006 13:32:19 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: <88CC9C0A-3F82-4DC6-B493-9E99ABD61D11@web.de> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160632996.4102.18.camel@matrix.ximian.com> <88CC9C0A-3F82-4DC6-B493-9E99ABD61D11@web.de> Message-ID: Andreas F?rber wrote: > Am 12.10.2006 um 08:03 schrieb Massimiliano Mantione: > >> On Wed, 2006-10-11 at 23:49 +0200, Andreas F?rber wrote: >>> So far I have only tried to compile Mono under Cygwin on Windows, >>> where I had instructions from the Wiki, including specific >>> instructions and a script for the dependencies; if anyone would tell >>> me how to go about it on OS X without ruining my existing Mono >>> installation I'd be willing to give it a try. >> I have never used OS X, but the standard way of hacking Mono without >> touching the official Mono installation is choosing a custom prefix. >> >> I mean, you download the sources, and when running ./configure (or >> ./autogen.sh if you work from svn) specify the --prefix option. >> The choice of prefix is arbitrary, as long as it does not overlap >> the officially installed one. I prefer working with prefixes on my >> own home (like "/home/massi/mono") so I never need root permissions >> to install the custom mono, and therefore I have no chances to mess >> things up. > > That's a great hint! Using a user-specific prefix it won't be able to > access /usr/bin. > > What about Mono's dependencies? Is it sufficient to have Mono > installed, or do I need additional glib and pkg-config stuff? Any > other command line arguments or environment variables necessary for > it to find the headers and libraries? Supposing your new Mono prefix will be ~/mono: mkdir ~/mono cp -rp /Library/Frameworks/Mono.framework/Libraries ~/mono/lib After that adjust the "prefix" entry of all ~/mono/lib/pkgconfig/*.pc files and configure the Mono sources you (optimally) got from SVN with: PKG_CONFIG_PATH=~/mono/lib/pkgconfig ./configure --prefix=~/mono Robert From andreas.faerber at web.de Thu Oct 12 08:11:28 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Thu, 12 Oct 2006 14:11:28 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160632996.4102.18.camel@matrix.ximian.com> <88CC9C0A-3F82-4DC6-B493-9E99ABD61D11@web.de> Message-ID: Am 12.10.2006 um 13:32 schrieb Robert Jordan: > Supposing your new Mono prefix will be ~/mono: > > mkdir ~/mono > cp -rp /Library/Frameworks/Mono.framework/Libraries ~/mono/lib > > After that adjust the "prefix" entry of all ~/mono/lib/pkgconfig/*.pc > files and configure the Mono sources you (optimally) got from SVN > with: > > PKG_CONFIG_PATH=~/mono/lib/pkgconfig ./configure --prefix=~/mono Thanks. When I do PKG_CONFIG_PATH=... ./autogen.sh --prefix=... I get: ... checking for pkg-config... /usr/bin/pkg-config ./configure: line 22241: syntax error near unexpected token `BASE_DEPENDENCIES,' ./configure: line 22241: ` PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION)' Prefix has been set in all .pc files as instructed, including glib-2.0.pc. I'm at revision 66592. Andreas From robertj at gmx.net Thu Oct 12 08:34:49 2006 From: robertj at gmx.net (Robert Jordan) Date: Thu, 12 Oct 2006 14:34:49 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160632996.4102.18.camel@matrix.ximian.com> <88CC9C0A-3F82-4DC6-B493-9E99ABD61D11@web.de> Message-ID: Andreas F?rber wrote: > Am 12.10.2006 um 13:32 schrieb Robert Jordan: > >> Supposing your new Mono prefix will be ~/mono: >> >> mkdir ~/mono >> cp -rp /Library/Frameworks/Mono.framework/Libraries ~/mono/lib >> >> After that adjust the "prefix" entry of all ~/mono/lib/pkgconfig/*.pc >> files and configure the Mono sources you (optimally) got from SVN >> with: >> >> PKG_CONFIG_PATH=~/mono/lib/pkgconfig ./configure --prefix=~/mono > > Thanks. When I do > PKG_CONFIG_PATH=... ./autogen.sh --prefix=... > I get: > ... > checking for pkg-config... /usr/bin/pkg-config > ./configure: line 22241: syntax error near unexpected token > `BASE_DEPENDENCIES,' > ./configure: line 22241: ` PKG_CHECK_MODULES(BASE_DEPENDENCIES, > glib-2.0 >= $GLIB_REQUIRED_VERSION)' > > Prefix has been set in all .pc files as instructed, including > glib-2.0.pc. > I'm at revision 66592. What's the output of this line? PKG_CONFIG_PATH=~/mono/lib/pkgconfig pkg-config --libs glib-2.0 Robert From andreas.faerber at web.de Thu Oct 12 08:44:36 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Thu, 12 Oct 2006 14:44:36 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160632996.4102.18.camel@matrix.ximian.com> <88CC9C0A-3F82-4DC6-B493-9E99ABD61D11@web.de> Message-ID: <280AA5D1-9A55-4F4E-AF5B-1A5EFD53AE3F@web.de> Am 12.10.2006 um 14:34 schrieb Robert Jordan: >> When I do >> PKG_CONFIG_PATH=... ./autogen.sh --prefix=... >> I get: >> ... >> checking for pkg-config... /usr/bin/pkg-config >> ./configure: line 22241: syntax error near unexpected token >> `BASE_DEPENDENCIES,' >> ./configure: line 22241: ` PKG_CHECK_MODULES(BASE_DEPENDENCIES, >> glib-2.0 >= $GLIB_REQUIRED_VERSION)' >> >> Prefix has been set in all .pc files as instructed, including >> glib-2.0.pc. >> I'm at revision 66592. > > What's the output of this line? > > PKG_CONFIG_PATH=~/mono/lib/pkgconfig pkg-config --libs glib-2.0 -L/Users/andreas/Mono/latest/lib -lglib-2.0 -lintl -liconv Andreas From robertj at gmx.net Thu Oct 12 09:40:40 2006 From: robertj at gmx.net (Robert Jordan) Date: Thu, 12 Oct 2006 15:40:40 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: <280AA5D1-9A55-4F4E-AF5B-1A5EFD53AE3F@web.de> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160632996.4102.18.camel@matrix.ximian.com> <88CC9C0A-3F82-4DC6-B493-9E99ABD61D11@web.de> <280AA5D1-9A55-4F4E-AF5B-1A5EFD53AE3F@web.de> Message-ID: Andreas F?rber wrote: > Am 12.10.2006 um 14:34 schrieb Robert Jordan: > >>> When I do >>> PKG_CONFIG_PATH=... ./autogen.sh --prefix=... >>> I get: >>> ... >>> checking for pkg-config... /usr/bin/pkg-config >>> ./configure: line 22241: syntax error near unexpected token >>> `BASE_DEPENDENCIES,' >>> ./configure: line 22241: ` PKG_CHECK_MODULES(BASE_DEPENDENCIES, >>> glib-2.0 >= $GLIB_REQUIRED_VERSION)' >>> >>> Prefix has been set in all .pc files as instructed, including >>> glib-2.0.pc. >>> I'm at revision 66592. >> What's the output of this line? >> >> PKG_CONFIG_PATH=~/mono/lib/pkgconfig pkg-config --libs glib-2.0 > > -L/Users/andreas/Mono/latest/lib -lglib-2.0 -lintl -liconv It seems to be an autotools problem. I don't know how to proceed from here. Plan B would be: delete ~/mono/lib and configure using the settings of the official Mono version: PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Libraries/pkgconfig ./autogen.sh --prefix=... Robert From dick at ximian.com Thu Oct 12 10:14:45 2006 From: dick at ximian.com (Dick Porter) Date: Thu, 12 Oct 2006 15:14:45 +0100 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: <1160603641.4828.51.camel@erandi.dom> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> Message-ID: <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> On Wed, 2006-10-11 at 17:54 -0400, Miguel de Icaza wrote: > Hello, > > > So, should I try to prepare a patch for the runtime with the renaming > > Paolo proposed in #77324 as a solution? Or could it be related to the > > non-specified x86 thread attaching issues mentioned by Paolo in #77638? > > One thing that I would like to check with Dick about his personal > preference on how to go around this. I'd rather limit any renaming to the specific platform that requires it. In bug 77324 it's mentioned that we don't use a linker script on macosx; that should be the first part to be fixed imho. - Dick -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.ximian.com/pipermail/mono-list/attachments/20061012/be3709e5/attachment.bin From massi at ximian.com Thu Oct 12 10:33:21 2006 From: massi at ximian.com (Massimiliano Mantione) Date: Thu, 12 Oct 2006 16:33:21 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: <88CC9C0A-3F82-4DC6-B493-9E99ABD61D11@web.de> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160632996.4102.18.camel@matrix.ximian.com> <88CC9C0A-3F82-4DC6-B493-9E99ABD61D11@web.de> Message-ID: <1160663601.4086.18.camel@matrix.ximian.com> On Thu, 2006-10-12 at 13:13 +0200, Andreas F?rber wrote: > That's a great hint! Using a user-specific prefix it won't be able to > access /usr/bin. You meant "damage": it can _access_ /usr just fine, and it will happily use the libraries under /usr/lib... > What about Mono's dependencies? Is it sufficient to have Mono > installed, or do I need additional glib and pkg-config stuff? Any > other command line arguments or environment variables necessary for > it to find the headers and libraries? ...and this is why you do not need to duplicate the dependencies. Your new Mono will use your existing glib and pkg-config. However, I strongly suggest you to update all the three env vars (PATH, LD_LIBRARY_PATH and PKG_CONFIG_PATH) when you use your own custom Mono, as I described in the previous message. In particular, setting PKG_CONFIG_PATH will allow other components that need Mono to be built against the custom one. For instance, if you need gtk-sharp, you should rebuild it (and reinstall it) using the custom prefix, and in an environment with the three paths updated. This will still use the "standard" gtk+ libraries in your system (as "standard" as gtk+ can be on OS X, but you get the idea), but the Mono assemblies will be built with the new Mono, and installed in its GAC in the custom prefix, so that every app using the custom Mono will find them. This (correctly installing in the custom prefix) should be done for each assembly/library/component you need that _depends_ on Mono. The three env vars make sure that the custom paths have precedence over the standard ones. I hope I clarified how the system should work... Ciao, Massi From andreas.faerber at web.de Thu Oct 12 16:15:57 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Thu, 12 Oct 2006 22:15:57 +0200 Subject: [Mono-list] Mono embedding issue In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160632996.4102.18.camel@matrix.ximian.com> <88CC9C0A-3F82-4DC6-B493-9E99ABD61D11@web.de> <280AA5D1-9A55-4F4E-AF5B-1A5EFD53AE3F@web.de> Message-ID: Am 12.10.2006 um 15:40 schrieb Robert Jordan: > Andreas F?rber wrote: >> Am 12.10.2006 um 14:34 schrieb Robert Jordan: >> >>>> When I do >>>> PKG_CONFIG_PATH=... ./autogen.sh --prefix=... >>>> I get: >>>> ... >>>> checking for pkg-config... /usr/bin/pkg-config >>>> ./configure: line 22241: syntax error near unexpected token >>>> `BASE_DEPENDENCIES,' >>>> ./configure: line 22241: ` PKG_CHECK_MODULES(BASE_DEPENDENCIES, >>>> glib-2.0 >= $GLIB_REQUIRED_VERSION)' >>>> >>>> Prefix has been set in all .pc files as instructed, including >>>> glib-2.0.pc. >>>> I'm at revision 66592. >>> What's the output of this line? >>> >>> PKG_CONFIG_PATH=~/mono/lib/pkgconfig pkg-config --libs glib-2.0 >> >> -L/Users/andreas/Mono/latest/lib -lglib-2.0 -lintl -liconv > > It seems to be an autotools problem. I don't know how to proceed > from here. Plan B would be: delete ~/mono/lib and configure > using the settings of the official Mono version: > > PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Libraries/pkgconfig > ./autogen.sh --prefix=... Unfortunately this fails with the same message... pkg-config is 0.15.0 GNU autoconf 2.59 GNU automake 1.6.3 Anyway ... I have reverted to using my locally copied lib and I added the variable ACLOCAL_FLAGS, which I remembered had been necessary for Cocoa#, and now autogen.sh works! It still reports a number of warnings, with autoheader complaining about acconfig.h et al. being deprecated and at another place a net/ if.h compilation problem is asked to be reported to some list. make fails... gcc 4 complains about an unrecognized option -pthreads mono-hash.c doesn't find glib.h, resulting in dozens of warnings and errors. I guess I'll just need to specify where to find them - how? Andreas From damien.churchill at ukplc.net Fri Oct 13 04:49:11 2006 From: damien.churchill at ukplc.net (Damien Churchill) Date: Fri, 13 Oct 2006 09:49:11 +0100 Subject: [Mono-list] GridView Message-ID: I can't seem to add styles to a gridview control. Has anyone else had this problem? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061013/df1347c1/attachment-0001.html From slava at z.org.ua Fri Oct 13 10:06:51 2006 From: slava at z.org.ua (Slava Petrenko) Date: Fri, 13 Oct 2006 17:06:51 +0300 Subject: [Mono-list] Are any implementations of IChannel available? Message-ID: <452F9D7B.7050707@z.org.ua> Hello! Trying use Mono Remoting the same way as remoting for MS Framework I have missed to find any implementations of System.Runtime.Remoting.Channels.IChannel Perhaps someone heard about an implementation of it or have an example how to use remoting in Mono. Thanks! ---------------------- Slava. From robertj at gmx.net Fri Oct 13 10:26:36 2006 From: robertj at gmx.net (Robert Jordan) Date: Fri, 13 Oct 2006 16:26:36 +0200 Subject: [Mono-list] Are any implementations of IChannel available? In-Reply-To: <452F9D7B.7050707@z.org.ua> References: <452F9D7B.7050707@z.org.ua> Message-ID: Slava Petrenko wrote: > Hello! > > Trying use Mono Remoting the same way as remoting for MS Framework I > have missed to find any implementations > of System.Runtime.Remoting.Channels.IChannel This interface is implemented since ages. > Perhaps someone heard about an implementation of it or have an example > how to use remoting in Mono. Remoting is exactly implemented like in MS.NET 1.1. Robert From lupus at ximian.com Fri Oct 13 12:14:23 2006 From: lupus at ximian.com (Paolo Molaro) Date: Fri, 13 Oct 2006 18:14:23 +0200 Subject: [Mono-list] [Mono-dev] Are any implementations of IChannel available? In-Reply-To: <452F9D7B.7050707@z.org.ua> References: <452F9D7B.7050707@z.org.ua> Message-ID: <20061013161423.GH17989@debian.org> On 10/13/06 Slava Petrenko wrote: > Trying use Mono Remoting the same way as remoting for MS Framework I > have missed to find any implementations > of System.Runtime.Remoting.Channels.IChannel > > Perhaps someone heard about an implementation of it or have an example > how to use remoting in Mono. Compile with: mcs -r:System.Runtime.Remoting ... lupus -- ----------------------------------------------------------------- lupus at debian.org debian/rules lupus at ximian.com Monkeys do it better From miguel at ximian.com Fri Oct 13 12:57:39 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Fri, 13 Oct 2006 12:57:39 -0400 Subject: [Mono-list] [Mono-dev] Are any implementations of IChannel available? In-Reply-To: <20061013161423.GH17989@debian.org> References: <452F9D7B.7050707@z.org.ua> <20061013161423.GH17989@debian.org> Message-ID: <1160758659.10050.52.camel@erandi.dom> Hello, > > Trying use Mono Remoting the same way as remoting for MS Framework I > > have missed to find any implementations > > of System.Runtime.Remoting.Channels.IChannel > > > > Perhaps someone heard about an implementation of it or have an example > > how to use remoting in Mono. > > Compile with: > > mcs -r:System.Runtime.Remoting ... Or you can also use: mcs -pkg:dotnet ... Which brings all the default .NET assemblies to the compile line. Miguel From kornelpal at gmail.com Fri Oct 13 13:15:36 2006 From: kornelpal at gmail.com (=?iso-8859-1?B?S29ybulsIFDhbA==?=) Date: Fri, 13 Oct 2006 19:15:36 +0200 Subject: [Mono-list] [Mono-dev] Are any implementations of IChannelavailable? References: <452F9D7B.7050707@z.org.ua> <20061013161423.GH17989@debian.org><1160758659.10050.52.camel@erandi.dom> Message-ID: <001301c6eeeb$37360450$0100a8c0@kornelpal.hu> > IChannel is part of corlib, so he must be having either > more trivial or more complex problems than referencing > assemblies. To ensure that nothing is wrong with compilation, compile the program using csc.exe then try it on MS.NET and if everyting is fine after that try it on Mono. If this solves the problem the code is compiled incorrectly with mcs (most likely the users fault). Otherwise something is wrong with the Mono installation. BTW I think that it should be advertised on www.mono-project.com on some highly visited place that Mono is able to execute binaries compiled using MS.NET because a lot of people don't know this and the compile and eved distribute different binaries for Mono and MS.NET altough they only differ in the compiler used (csc or mcs). Korn?l From miguel at ximian.com Fri Oct 13 13:36:56 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Fri, 13 Oct 2006 13:36:56 -0400 Subject: [Mono-list] [Mono-dev] Are any implementations of IChannelavailable? In-Reply-To: <001301c6eeeb$37360450$0100a8c0@kornelpal.hu> References: <452F9D7B.7050707@z.org.ua> <20061013161423.GH17989@debian.org> <1160758659.10050.52.camel@erandi.dom> <001301c6eeeb$37360450$0100a8c0@kornelpal.hu> Message-ID: <1160761016.10050.60.camel@erandi.dom> > BTW I think that it should be advertised on www.mono-project.com on some > highly visited place that Mono is able to execute binaries compiled using > MS.NET because a lot of people don't know this and the compile and eved > distribute different binaries for Mono and MS.NET altough they only differ > in the compiler used (csc or mcs). It is right there, on the main page. I would add a blinking banner, but I would get killed; Any artistic ideas and logo suggestions would be fine ;-) Miguel. From kornelpal at gmail.com Fri Oct 13 15:20:14 2006 From: kornelpal at gmail.com (=?iso-8859-2?B?S29ybulsIFDhbA==?=) Date: Fri, 13 Oct 2006 21:20:14 +0200 Subject: [Mono-list] [Mono-dev] Are any implementations ofIChannelavailable? References: <452F9D7B.7050707@z.org.ua> <20061013161423.GH17989@debian.org> <1160758659.10050.52.camel@erandi.dom> <001301c6eeeb$37360450$0100a8c0@kornelpal.hu> <1160761016.10050.60.camel@erandi.dom> Message-ID: <006c01c6eefc$a35edbf0$0100a8c0@kornelpal.hu> >> BTW I think that it should be advertised on www.mono-project.com on some >> highly visited place that Mono is able to execute binaries compiled using >> MS.NET because a lot of people don't know this and the compile and eved >> distribute different binaries for Mono and MS.NET altough they only >> differ >> in the compiler used (csc or mcs). > > It is right there, on the main page. My bad, I never noticed that but telling the truth I read the current "What is Mono?" section today for the first time. Maybe because I already knew what Mono is.:) > I would add a blinking banner, but I would get killed; Any artistic > ideas and logo suggestions would be fine ;-) I believe that FAQ is written for people who don't read the FAQ, and the same seems to be true for the Main Page.:) I think this would be more informative (some additions to the current version): "Mono allows your existing .NET binaries compiled on Windows to run on Linux with copy-deployment." People probably would notice a blinking banner but a nice green box (like in the "Mono in the Real World" section) with bold text would be just as fine and less intrusive for this "advertisement". Having the same on Downloads page would increase the probability of reading this notice. I may be too pessimistic so the above solution is only a suggestion but as I see most Mono users believe that they have to recompile their code using mcs in order to function under Mono. Korn?l From zsolt at softmonsters.com Fri Oct 13 17:38:18 2006 From: zsolt at softmonsters.com (Zsolt Barat) Date: Fri, 13 Oct 2006 23:38:18 +0200 Subject: [Mono-list] monapps crashing Message-ID: <4530074A.30104@softmonsters.com> hi list, since im updated to gcc-4.1.1 and recompiled mono all monoapps crashing with following backtrace (here tomboy but for f-spot it's the same): ================================================================= 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 Tomboy.Application.Initialize (string,string,string,string[]) <0xffffffff> at Tomboy.Application.Initialize (string,string,string,string[]) <0x0002d> at Tomboy.Tomboy.Main (string[]) <0x00064> at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff> Native stacktrace: mono(mono_handle_native_sigsegv+0xe7) [0x8154a67] mono [0x81219c8] [0xb7f2d440] /usr/lib/libcrypto.so.0.9.8 [0xb6468222] /usr/lib/libcrypto.so.0.9.8 [0xb63926a5] /lib/ld-linux.so.2 [0xb7f3bb85] /lib/ld-linux.so.2 [0xb7f3bc91] /lib/ld-linux.so.2 [0xb7f3f88b] /lib/ld-linux.so.2 [0xb7f3b7d2] /lib/ld-linux.so.2 [0xb7f3f179] /lib/libdl.so.2 [0xb7f05e3d] /lib/ld-linux.so.2 [0xb7f3b7d2] /lib/libdl.so.2 [0xb7f062dc] /lib/libdl.so.2(dlopen+0x41) [0xb7f05d71] /usr/lib/libgmodule-2.0.so.0(g_module_open+0x167) [0xb7f0a627] mono(mono_lookup_pinvoke_call+0x1f8) [0x80e9f68] mono(mono_marshal_get_native_wrapper+0x4ed) [0x80beb0d] mono [0x8137310] mono [0x813f6bb] mono [0x8140f1e] mono(mono_magic_trampoline+0x1a) [0x807f65a] [0xb7be0032] [0xb7993925] [0xb79937c3] mono(mono_runtime_exec_main+0x60) [0x80992a0] mono(mono_runtime_run_main+0x1b3) [0x8099583] mono(mono_main+0xe54) [0x805d3f4] mono [0x805c0c2] /lib/libc.so.6(__libc_start_main+0xd8) [0xb7d18838] mono [0x805c011] does anyone have an idea whats going on here? where does it crashing? in glib? im running on linux glibc-2.5 mono-1.1.17.1 tomboy is 0.4.1 but version or app doesn't matter. thanks zsolt From andreas.faerber at web.de Fri Oct 13 18:27:35 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Sat, 14 Oct 2006 00:27:35 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> Message-ID: <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> Hello, Am 12.10.2006 um 16:14 schrieb Dick Porter: > I'd rather limit any renaming to the specific platform that > requires it. > In bug 77324 it's mentioned that we don't use a linker script on > macosx; > that should be the first part to be fixed imho. Apart from not yet getting Mono to compile for any local experiments whatsoever, I do know C but have no idea what a linker script is supposed to be... Obviously some part of the existing auto* jungle already leads to a linker being invoked. Sorry for my ignorance ... so would that be an additional shell script or simply Makefile changes or what? What does "we don't use a linker script on macosx" mean in cleartext? And is this not by any chance related to the patched build scripts already proposed by Bryan for Universal builds some weeks ago? In Visual C++ on Windows I used to have explicit export definition files for DLLs listing the symbols to be exported - is there no such easy way on other platforms to limit the exported symbols to those potentially invoked by developers embedding Mono? Andreas From robertj at gmx.net Sat Oct 14 11:41:48 2006 From: robertj at gmx.net (Robert Jordan) Date: Sat, 14 Oct 2006 17:41:48 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> Message-ID: Andreas F?rber wrote: >> I'd rather limit any renaming to the specific platform that >> requires it. >> In bug 77324 it's mentioned that we don't use a linker script on >> macosx; >> that should be the first part to be fixed imho. > > Apart from not yet getting Mono to compile for any local experiments > whatsoever, I do know C but have no idea what a linker script is > supposed to be... Obviously some part of the existing auto* jungle > already leads to a linker being invoked. Sorry for my ignorance ... > so would that be an additional shell script or simply Makefile > changes or what? What does "we don't use a linker script on macosx" > mean in cleartext? Linker script == script for the linker. Mono provides a GNU ld script: http://svn.myrealbox.com/viewcvs/trunk/mono/mono/mini/ldscript?view=markup but no Mac OS X script, because Apple's ld doesn't support scripts. It only support full lists of symbols (like MS LINK) with the option '-exported_symbols_list ' or suppressing lists with '-unexported_symbols_list '. The latter would be suitable to suppress the problematic WAPI symbols. Am looking at this. Regarding your Mono build problems: comment out the PKG_CHECK_MODULES line from Mono's configure.in and rerun autogen.sh: PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Libraries/pkgconfig ./autogen.sh --prefix=... Robert From robertj at gmx.net Sat Oct 14 12:29:02 2006 From: robertj at gmx.net (Robert Jordan) Date: Sat, 14 Oct 2006 18:29:02 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> Message-ID: Robert Jordan wrote: > Andreas F?rber wrote: >> What does "we don't use a linker script on macosx" >> mean in cleartext? > > Linker script == script for the linker. Mono provides > a GNU ld script: > > http://svn.myrealbox.com/viewcvs/trunk/mono/mono/mini/ldscript?view=markup > > but no Mac OS X script, because Apple's ld doesn't support > scripts. It only support full lists of symbols (like MS LINK) > with the option '-exported_symbols_list ' > or suppressing lists with '-unexported_symbols_list '. > The latter would be suitable to suppress the problematic > WAPI symbols. Am looking at this. Oops, WAPI is a global public API, so undefining its symbols is not an option. Robert From andreas.faerber at web.de Sat Oct 14 13:01:24 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Sat, 14 Oct 2006 19:01:24 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> Message-ID: Am 14.10.2006 um 18:29 schrieb Robert Jordan: > Robert Jordan wrote: >> Andreas F?rber wrote: >>> What does "we don't use a linker script on macosx" >>> mean in cleartext? >> >> Linker script == script for the linker. Mono provides >> a GNU ld script: >> >> http://svn.myrealbox.com/viewcvs/trunk/mono/mono/mini/ldscript? >> view=markup >> >> but no Mac OS X script, because Apple's ld doesn't support >> scripts. It only support full lists of symbols (like MS LINK) >> with the option '-exported_symbols_list ' >> or suppressing lists with '-unexported_symbols_list '. >> The latter would be suitable to suppress the problematic >> WAPI symbols. Am looking at this. > > Oops, WAPI is a global public API, so undefining its symbols > is not an option. Well, to my understanding the GNU ld linker script above does mark them local, not global! Andreas From robertj at gmx.net Sat Oct 14 13:22:43 2006 From: robertj at gmx.net (Robert Jordan) Date: Sat, 14 Oct 2006 19:22:43 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> Message-ID: Andreas F?rber wrote: > Am 14.10.2006 um 18:29 schrieb Robert Jordan: > >> Robert Jordan wrote: >>> Andreas F?rber wrote: >>>> What does "we don't use a linker script on macosx" >>>> mean in cleartext? >>> Linker script == script for the linker. Mono provides >>> a GNU ld script: >>> >>> http://svn.myrealbox.com/viewcvs/trunk/mono/mono/mini/ldscript? >>> view=markup >>> >>> but no Mac OS X script, because Apple's ld doesn't support >>> scripts. It only support full lists of symbols (like MS LINK) >>> with the option '-exported_symbols_list ' >>> or suppressing lists with '-unexported_symbols_list '. >>> The latter would be suitable to suppress the problematic >>> WAPI symbols. Am looking at this. >> Oops, WAPI is a global public API, so undefining its symbols >> is not an option. > > Well, to my understanding the GNU ld linker script above does mark > them local, not global! Sorry, yeah, because Mono's linker script is actually specifying the version of the symbols: http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-linker/version.html It doesn't deal with the visibility of the symbols. This is achieved with the GCC visibility attribute. Still, WAPI is public and Mac OS X ld '-unexported_symbols_list' can't be used. I'll send you a patch that renames the symbols later tonight. Robert From robertj at gmx.net Sat Oct 14 13:33:33 2006 From: robertj at gmx.net (Robert Jordan) Date: Sat, 14 Oct 2006 19:33:33 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> Message-ID: Robert Jordan wrote: > Andreas F?rber wrote: >> Am 14.10.2006 um 18:29 schrieb Robert Jordan: >> >>> Robert Jordan wrote: >>>> Andreas F?rber wrote: >>>>> What does "we don't use a linker script on macosx" >>>>> mean in cleartext? >>>> Linker script == script for the linker. Mono provides >>>> a GNU ld script: >>>> >>>> http://svn.myrealbox.com/viewcvs/trunk/mono/mono/mini/ldscript? >>>> view=markup >>>> >>>> but no Mac OS X script, because Apple's ld doesn't support >>>> scripts. It only support full lists of symbols (like MS LINK) >>>> with the option '-exported_symbols_list ' >>>> or suppressing lists with '-unexported_symbols_list '. >>>> The latter would be suitable to suppress the problematic >>>> WAPI symbols. Am looking at this. >>> Oops, WAPI is a global public API, so undefining its symbols >>> is not an option. >> Well, to my understanding the GNU ld linker script above does mark >> them local, not global! > > Sorry, yeah, because Mono's linker script is actually specifying > the version of the symbols: > > http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-linker/version.html > > It doesn't deal with the visibility of the symbols. This is > achieved with the GCC visibility attribute. > > Still, WAPI is public and Mac OS X ld '-unexported_symbols_list' > can't be used. > > I'll send you a patch that renames the symbols later tonight. 1. copy symbols.h into mono/io-layer/ 2. apply the wapi-symbols.diff patch Robert -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: symbols.h Url: http://lists.ximian.com/pipermail/mono-list/attachments/20061014/68fb026c/attachment.h -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wapi-symbols.diff Url: http://lists.ximian.com/pipermail/mono-list/attachments/20061014/68fb026c/attachment.pl From rubenvive at gmail.com Sat Oct 14 23:09:25 2006 From: rubenvive at gmail.com (Ruben Guinez) Date: Sun, 15 Oct 2006 00:09:25 -0300 Subject: [Mono-list] Failed running /usr/lib/mono/1.0/mod-mono-server.exe .........: Reason: Exec format error Message-ID: Hi everybody!!! I have this error (Failed running /usr/lib/mono/1.0/mod-mono-server.exe.........: Reason: Exec format error ) I just installed mono 1.1.18, and now my ASP.NET + APACHE2 not work. I'm working with openSuse 10.1 64 bits. The message I saw within /var/log/apache2/error_log, and when I start my app into browser I get : Error 503. Any Idea about it? Please !!!! Thanks in advance... -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061015/4522f007/attachment.html From rubenvive at gmail.com Sat Oct 14 23:19:43 2006 From: rubenvive at gmail.com (Ruben Guinez) Date: Sun, 15 Oct 2006 00:19:43 -0300 Subject: [Mono-list] Failed running /usr/lib/mono/1.0/mod-mono-server.exe .........: Reason: Exec format error Message-ID: (I'm sorry about two mail about the same thing. I'm mistake. :( ) Hi everybody!!! I have this error (Failed running /usr/lib/mono/1.0/mod-mono-server.exe .........: Reason: Exec format error) I just installed mono 1.1.18, and now my ASP.NET + APACHE2 not work. I'm working with openSuse 10.1 64 bits. The message I saw within /var/log/apache2/error_log, and when I start my app into browser I get : Error 503. Any Idea about it? Please !!!! Thanks in advance... -- From gert.driesen at telenet.be Sun Oct 15 02:43:41 2006 From: gert.driesen at telenet.be (Gert Driesen) Date: Sun, 15 Oct 2006 08:43:41 +0200 Subject: [Mono-list] NAnt 0.85 is released Message-ID: <000901c6f025$40fa75d0$c2ef6170$@driesen@telenet.be> Announcing NAnt 0.85. Binary and source distributions are available for immediate download from: http://sourceforge.net/project/showfiles.php?group_id=31650 About NAnt: NAnt is a free .NET build tool, allowing applications to be built targeting both Microsoft .NET and Mono while supporting both Windows and Linux platforms. Release notes and a user manual are available here: http://nant.sourceforge.net/release/0.85/ Discussion of NAnt occurs on the mailing list at nant-users at lists.sourceforge.net. Bugs can be reported using the Bug Tracker at http://sourceforge.net/projects/nant. Check the NAnt homepage for additional info at http://nant.sourceforge.net. Enjoy ! Gert From mosser at polytech.unice.fr Sat Oct 14 05:23:02 2006 From: mosser at polytech.unice.fr (=?ISO-8859-1?Q?S=E9bastien_Mosser?=) Date: Sat, 14 Oct 2006 11:23:02 +0200 Subject: [Mono-list] Web Services using Mono ? Message-ID: <7c23a9ae0610140223w6c2685eam7b8950cf495c30fc@mail.gmail.com> Hello everybody ^_^ . My name is Sebastian, and I'm a french master student in CS (so, excuse my english, please ;-) ). I'm working in a research team, and we're dealing with C# Web Services. Now, web services are written using Visual Studio, and hosted by IIS. But it stinks ! We need to have a full control of all the deployment process, and such a thing is totally impossible using this tools. Moreover, there is too few web server running IIS on the internet, and we have to proove that our work will be able to run on huge networks. I find Mono, and mod_mono for Apache2 on the internet. Sounds Great. Really. I wrote little console applications, my first ASP.Net page (using XSP to begin), ... but I don't find any tutorial about : "How to create a Web Service using Mono". I think there is some difference between a web service and an ASP.Net page (asmx instead of aspx, or even bin/*.pdb instead of bin/*.dll). So, have you got any url ?? Thanks a lot, cheers ! -- Sebastian MOSSER Polytechnic School of Nice / Sophia Antipolis Templar's Knight Campus, CS Department From ruben.guinez at surnet.cl Sat Oct 14 22:16:34 2006 From: ruben.guinez at surnet.cl (=?iso-8859-1?Q?Ruben_D._Gu=ED=F1ez_G.?=) Date: Sat, 14 Oct 2006 23:16:34 -0300 Subject: [Mono-list] Failed running /usr/lib/mono/1.0/mod-mono-server.exe .........: Reason: Exec format error Message-ID: <000801c6efff$efe4b540$6b01a8c0@halcon> Hi everybody!!! I have this error (Failed running /usr/lib/mono/1.0/mod-mono-server.exe .........: Reason: Exec format error) I just installed mono 1.1.18, and now my ASP.NET + APACHE2 not work. I'm working with openSuse 10.1 64 bits. The message I saw within /var/log/apache2/error_log, and when I start my app into browser I get : Error 503. Any Idea about it? Please !!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061014/ffe03f20/attachment.html From andreas.faerber at web.de Sun Oct 15 05:12:53 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Sun, 15 Oct 2006 11:12:53 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> Message-ID: Am 14.10.2006 um 17:41 schrieb Robert Jordan: > Regarding your Mono build problems: comment out the PKG_CHECK_MODULES > line from Mono's configure.in and rerun autogen.sh: > > PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Libraries/pkgconfig > ./autogen.sh --prefix=... Checked out on i386 this time, rev. 66680 unpatched, used the above command, which works, too, but this time the compilation of System.Xml.dll hangs (left it running over night, a mono process with 4 threads, no CPU, no I/Os. Re-tried with make clean, make EXTERNAL_MCS=/usr/bin/mcs EXTERNAL_RUNTIME=/usr/bin/mono - no difference. If it were a problem of mine then I would expect an error message and make to exit. Ctrl+C does not work, I have to kill the mono process via the activity monitor. This results in this make output: make[8]: *** [../../class/lib/basic/System.Xml.dll] Interrupt make[7]: *** [do-all] Interrupt make[6]: *** [all-recursive] Interrupt make[5]: *** [all-recursive] Interrupt make[4]: *** [profile-do--basic--all] Interrupt make[3]: *** [profiles-do--all] Interrupt make[2]: *** [all-local] Interrupt make[1]: *** [all-recursive] Interrupt make: *** [all] Interrupt Below is the activity monitor's analysis output, sounds like some deadlock to me? Andreas Analysis of sampling pid 10665 every 10.000000 milliseconds Call graph: 100 Thread_0f07 100 GC_push_all_stacks 100 GC_push_all_eager 100 GC_push_all_eager 100 Thread_1003 100 _pthread_body 100 GC_start_routine 100 mach_exception_thread 100 mach_msg_trap 100 mach_msg_trap 100 Thread_1103 100 _pthread_body 100 collection_thread 100 mach_wait_until 100 mach_wait_until 100 Thread_1203 100 _pthread_body 100 GC_start_routine 100 thread_start_routine 100 start_wrapper 100 finalizer_thread 100 WaitForSingleObjectEx 100 _wapi_handle_wait_signal_handle 100 _wapi_handle_timedwait_signal_handle 100 timedwait_signal_poll_cond 100 semaphore_wait_signal_trap 100 semaphore_wait_signal_trap Total number in stack (recursive counted multiple, when >=5): Sort by top of stack, same collapsed (when >= 5): GC_push_all_eager 100 mach_msg_trap 100 mach_wait_until 100 semaphore_wait_signal_trap 100 Sample analysis of process 10665 written to file /dev/stdout Sampling process 10665 each 10 msecs 100 times From mosser at polytech.unice.fr Sun Oct 15 05:37:52 2006 From: mosser at polytech.unice.fr (=?ISO-8859-1?Q?S=E9bastien_Mosser?=) Date: Sun, 15 Oct 2006 11:37:52 +0200 Subject: [Mono-list] C# Web Services : bad WSDL generation Message-ID: <7c23a9ae0610150237r728c0486m119d85718f0dacf7@mail.gmail.com> Hi everybody. I'm working on C# web services with my french research team, and I've got some troubles using gmcs & xsp. When I run my HelloWorld Web Service in xsp2 (service dll was compiled using gmcs), I've got the following error printed in the web page (http://localhost:8080/HelloWorld.asmx) : This web service does not conform to WS-I Basic Profile v1.0 * R2701: The wsdl:binding element in a DESCRIPTION MUST be constructed so that its soapbind:binding child element specifies the transport attribute o Binding 'HelloWorldHttpGet', in Service Description 'http://petitroll.free.fr/WS/hello' o Binding 'HelloWorldHttpPost', in Service Description 'http://petitroll.free.fr/WS/hello' If I try to build a proxy, using wsdl, no problems. using wsdl2, same error shoot again :'( petitroll at bartimeus:~$ wsdl2 http://bartimeus:8080/HelloWorld.asmx?WSDL Web Services Description Language Utility Mono Framework v2.0.50727.42 There where some warnings while generating the code: http://bartimeus:8080/HelloWorld.asmx?WSDL [same text as above, describing R2701 error] The same problem append on my iBook and on my Kubuntu :'(. I'm using the following asmx file : petitroll at bartimeus:~/HelloWs$ cat HelloWorld.asmx <%@ WebService Language="C#" Class="Rainbow.HelloWorld" %> petitroll at bartimeus:~/HelloWs$ And the following code-behind file, compiled by : gmcs -t:library -r:System.Web.Services \ -out:bin/HelloWorld.dll HelloWorld.cs petitroll at bartimeus:~/HelloWs$ cat HelloWorld.cs /** My first Web service using Mono * author : Sebastian Mosser * institute : Polytech'Sophia / CNRS / I3S / Rainbow Team * Date : October 2006 */ using System; using System.Web.Services; namespace Rainbow { [WebService(Namespace="http://rainbow.essi.fr/isl4ws/sandbox", Description="My first Mono Web Service ;-) ")] public class HelloWorld : System.Web.Services.WebService { [WebMethod(Description="Say Hello to someone")] public string SayHello(string who) { return String.Format("Hello, {0} !", who); } [WebMethod(Description="Say Hello to the World !")] public string HelloToTheWorld() { return SayHello("world"); } } } petitroll at bartimeus:~/HelloWs$ If somebody has an idea ... ^_^ Thanks ! -- Sebastian Mosser Polytechnic School of Nice / Sophia - Antipolis Templar's Knights Campus, CS Department From nigel at nebulus-design.co.uk Sun Oct 15 06:06:59 2006 From: nigel at nebulus-design.co.uk (Nigel Jenkins) Date: Sun, 15 Oct 2006 11:06:59 +0100 Subject: [Mono-list] Accessing SystemV style shared memory in Mono Message-ID: <45320843.6020806@nebulus-design.co.uk> Hi All I'm looking at porting a graphics cluster application from C++ to C# using mono, making good progress so far with all the network stuff, but the original application talks to a couple of external apps using shared memory (shmget, shmat etc..). I've not been able to work out if there is a class that already allows me to do this, and being very new to mono, I'm not sure where I should be looking. Any help greatly appreciated! thanks Nigel From robertj at gmx.net Sun Oct 15 06:36:01 2006 From: robertj at gmx.net (Robert Jordan) Date: Sun, 15 Oct 2006 12:36:01 +0200 Subject: [Mono-list] Failed running /usr/lib/mono/1.0/mod-mono-server.exe .........: Reason: Exec format error In-Reply-To: <000801c6efff$efe4b540$6b01a8c0@halcon> References: <000801c6efff$efe4b540$6b01a8c0@halcon> Message-ID: Ruben D. Gu??ez G. wrote: > Hi everybody!!! > > I have this error (Failed running > /usr/lib/mono/1.0/mod-mono-server.exe .........: Reason: Exec format > error) I just installed mono 1.1.18, and now my ASP.NET + APACHE2 not > work. I'm working with openSuse 10.1 64 bits. The message I saw > within /var/log/apache2/error_log, and when I start my app into > browser I get : Error 503. Starting with 1.1.17, mod_mono expects that the config directive 'MonoServerPath' is pointing to a native executable. Check your Apache config and remove or change MonoServerPath to point to /usr/bin/mod-mono-server. Robert From andreas.faerber at web.de Sun Oct 15 06:45:28 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Sun, 15 Oct 2006 12:45:28 +0200 Subject: [Mono-list] mcs/gmcs crash In-Reply-To: <1160435427.4966.10.camel@erandi.dom> References: <40C429CE-9834-4B34-B7C7-3EE29C6089F8@web.de> <1160435427.4966.10.camel@erandi.dom> Message-ID: <1A3D9A7C-7F81-425D-938D-AC91C7434772@web.de> Hey, >> You could try out the patch, especially on x86, and post a follow >> up to the bug entry. Or build a dylib (derived from the patch's code) >> and pinvoke it, because I'm not sure if patch will be ever accepted. > > I just commited the patch, but I would love to get some feedback from > those using MacOS X. I just installed Mono 1.1.18, which appears to include the patch, and the issue is no longer reproducable! Mcs exits without any CrashReporter messages on the console. I also tried running in parallel my Cocoa-based Mono application, Xcode embedding Mono and gmcs without problems. (When running multiple instances of Java apps there were sometimes Mach port warnings on the console, but apparently not for multiple mono instances.) The above was on Tiger; I also tested it on Panther (which I believe I hadn't before) and I did not observe any issues running my app and mcs. Thanks to you and Robert for the workaround. Andreas From andreas.faerber at web.de Sun Oct 15 06:52:13 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Sun, 15 Oct 2006 12:52:13 +0200 Subject: [Mono-list] Web Services using Mono ? In-Reply-To: <7c23a9ae0610140223w6c2685eam7b8950cf495c30fc@mail.gmail.com> References: <7c23a9ae0610140223w6c2685eam7b8950cf495c30fc@mail.gmail.com> Message-ID: Bonjour, Am 14.10.2006 um 11:23 schrieb S?bastien Mosser: > I find Mono, and mod_mono for Apache2 on the internet. Sounds Great. > Really. I wrote little console applications, my first ASP.Net page > (using XSP to begin), ... > > but I don't find any tutorial about : "How to create a Web Service > using Mono". I think there is some difference between a web service > and an ASP.Net page (asmx instead of aspx, or even bin/*.pdb instead > of bin/*.dll). > > So, have you got any url ?? Basically this will be the same as on Windows+IIS, so you could check out the documentation on msdn.microsoft.com if you don't find anything Mono-specific! Andreas P.S. I don't think it's .pdb instead of .dll - aren't .pdb files debug symbols on Windows? From andreas.faerber at web.de Sun Oct 15 07:47:37 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Sun, 15 Oct 2006 13:47:37 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> Message-ID: Am 15.10.2006 um 11:12 schrieb Andreas F?rber: > > Am 14.10.2006 um 17:41 schrieb Robert Jordan: > >> Regarding your Mono build problems: comment out the PKG_CHECK_MODULES >> line from Mono's configure.in and rerun autogen.sh: >> >> PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Libraries/ >> pkgconfig >> ./autogen.sh --prefix=... > > Checked out on i386 this time, rev. 66680 unpatched, used the above > command, which works, too, but this time the compilation of > System.Xml.dll hangs (left it running over night, a mono process with > 4 threads, no CPU, no I/Os. Re-tried with make clean, make > EXTERNAL_MCS=/usr/bin/mcs EXTERNAL_RUNTIME=/usr/bin/mono - no > difference. > If it were a problem of mine then I would expect an error message and > make to exit. > Ctrl+C does not work, I have to kill the mono process via the > activity monitor. This results in this make output: > > make[8]: *** [../../class/lib/basic/System.Xml.dll] Interrupt > make[7]: *** [do-all] Interrupt > make[6]: *** [all-recursive] Interrupt > make[5]: *** [all-recursive] Interrupt > make[4]: *** [profile-do--basic--all] Interrupt > make[3]: *** [profiles-do--all] Interrupt > make[2]: *** [all-local] Interrupt > make[1]: *** [all-recursive] Interrupt > make: *** [all] Interrupt Tried updating working copy to rev. 66692 and Mono to 1.1.18 - re- running autogen.sh and make then results in compilation hanging already at System.dll. When I did make clean and then make it compiled System.dll but still hangs at System.Xml.dll as before. Any ideas as to what might be the cause of this? Andreas From mthaddon at yahoo.com Sun Oct 15 11:24:51 2006 From: mthaddon at yahoo.com (Tom Haddon) Date: Sun, 15 Oct 2006 16:24:51 +0100 Subject: [Mono-list] Gecko.WebControl Example Message-ID: <1160925891.17013.9.camel@localhost.localdomain> Hi Folks, I'm new to Mono so I apologise if this is a little basic of a query, and have tried searching for the error on the archives but couldn't find anything. I'm trying to develop a web browser application that basically is a set window size and has two embedded browser controls in it with specified URLs - I don't need any options for the user in terms of navigation or whatever, this is just a console for viewing two particular web pages. I took a look at the example Gecko.WebControl in the documentation and I can get it to compile okay, but when I run it I get: $ ./GeckoTest.exe Unhandled Exception: System.DllNotFoundException: /usr/lib/firefox/libgtkembedmoz.so at (wrapper managed-to-native) Gecko.WebControl:gtk_moz_embed_set_profile_path (string,string) at Gecko.WebControl..ctor (System.String aPath, System.String aDir) [0x00000] at GeckoTest.GeckoTest..ctor () [0x00000] at GeckoTest.GeckoTest.Main (System.String[] args) [0x00000] Can anyone explain how to troubleshoot this or point me to some docs that might explain it? Thanks, Tom Tom Haddon mailto:mthaddon at yahoo.com A kind of Batman of contemporary letters. -- Philip Larkin on Anthony Burgess ----------------- Random quotes courtesy of fortune. From opgenorth at gmail.com Sun Oct 15 13:02:13 2006 From: opgenorth at gmail.com (Tom Opgenorth) Date: Sun, 15 Oct 2006 11:02:13 -0600 Subject: [Mono-list] Putting together a Mono presentation Message-ID: <140160570610151002ue7dcb0cm35b2c6d1334c7326@mail.gmail.com> Hi all, I'm hoping to put together a presentation on Mono for my local .NET users group and my local Linux Users group. Naturally, the exact same presentation couldn't be used for both (not all the LUG users are familiar with .NET/Mono). Anyway, I was wondering if anybody had resources they could share with me. Both presentations would be delivered the first week of November 2006. All help is appreciated. TIA. From zsolt at softmonsters.com Sun Oct 15 13:24:50 2006 From: zsolt at softmonsters.com (Zsolt Barat) Date: Sun, 15 Oct 2006 19:24:50 +0200 Subject: [Mono-list] monapps crashing In-Reply-To: <4530074A.30104@softmonsters.com> References: <4530074A.30104@softmonsters.com> Message-ID: <45326EE2.1010307@softmonsters.com> Zsolt Barat schrieb: > hi list, > since im updated to gcc-4.1.1 and recompiled mono all monoapps crashing > with following backtrace (here tomboy but for f-spot it's the same): ok, it turned out that the problem was most probably a strange optimization issue with openssl. after recompiling openssl and others monoapps running fine again. thanks for your help... From michael at synthesyssolutions.com Sun Oct 15 14:52:15 2006 From: michael at synthesyssolutions.com (Michael Schurter) Date: Sun, 15 Oct 2006 13:52:15 -0500 Subject: [Mono-list] [Mono-dev] Web Services using Mono ? In-Reply-To: References: <7c23a9ae0610140223w6c2685eam7b8950cf495c30fc@mail.gmail.com> Message-ID: <4532835F.7000602@synthesyssolutions.com> Andreas F?rber wrote: > Am 14.10.2006 um 11:23 schrieb S?bastien Mosser: > >> I find Mono, and mod_mono for Apache2 on the internet. Sounds Great. >> Really. I wrote little console applications, my first ASP.Net page >> (using XSP to begin), ... >> >> but I don't find any tutorial about : "How to create a Web Service >> using Mono". I think there is some difference between a web service >> and an ASP.Net page (asmx instead of aspx, or even bin/*.pdb instead >> of bin/*.dll). >> >> So, have you got any url ?? > > Basically this will be the same as on Windows+IIS, so you could check > out the documentation on msdn.microsoft.com if you don't find > anything Mono-specific! I can vouch for this. At work we wrote a web service in VS 2003 (ASP.NET 1.1) and it runs flawlessly using Mono on Linux. It was a pretty simple web service: 1 .asmx file with a few supporting .cs files. Any book, tutorial, etc. on web services in .NET 1.1 should work identically using Mono and Linux. > Andreas > > > P.S. I don't think it's .pdb instead of .dll - aren't .pdb files > debug symbols on Windows? From Microsoft: The .PDB extension stands for "program database." It holds the new format for storing debugging information that was introduced in Visual C++ version 1.0. In the future, the .PDB file will also hold other project state information. One of the most important motivations for the change in format was to allow incremental linking of debug versions of programs, a change first introduced in Visual C++ version 2.0. -- Michael Schurter Synthesys Solutions From adam at morrison-ind.com Sun Oct 15 18:37:23 2006 From: adam at morrison-ind.com (Adam Williams) Date: Sun, 15 Oct 2006 18:37:23 -0400 Subject: [Mono-list] Putting together a Mono presentation In-Reply-To: <140160570610151002ue7dcb0cm35b2c6d1334c7326@mail.gmail.com> References: <140160570610151002ue7dcb0cm35b2c6d1334c7326@mail.gmail.com> Message-ID: <1160951843.30933.1.camel@ws01.whitemice.org> > I'm hoping to put together a presentation on Mono for my local .NET > users group and my local Linux Users group. Naturally, the exact same > presentation couldn't be used for both (not all the LUG users are > familiar with .NET/Mono). > Anyway, I was wondering if anybody had resources they could share with > me. Both presentations would be delivered the first week of November > 2006. I did a presentation for a LUG awhile ago - ftp://kalamazoolinux.org/pub/pdf/mono.pdf I can send you the source (OpenOffice) document off-list if you are interested. Note that their FTP server is *f*l*a*k*y* so it make take a couple of tries to actually get the document From jonpryor at vt.edu Sun Oct 15 21:24:34 2006 From: jonpryor at vt.edu (Jonathan Pryor) Date: Sun, 15 Oct 2006 21:24:34 -0400 Subject: [Mono-list] Accessing SystemV style shared memory in Mono In-Reply-To: <45320843.6020806@nebulus-design.co.uk> References: <45320843.6020806@nebulus-design.co.uk> Message-ID: <1160961875.3674.27.camel@melchior.magi> On Sun, 2006-10-15 at 11:06 +0100, Nigel Jenkins wrote: > I'm looking at porting a graphics cluster application from C++ to C# > using mono, making good progress so far with all the network stuff, but > the original application talks to a couple of external apps using shared > memory (shmget, shmat etc..). > I've not been able to work out if there is a class that already allows > me to do this, and being very new to mono, I'm not sure where I should > be looking. Mono.Unix.Native.Syscall *would* be the place for this, but these methods haven't been wrapped yet. Thus, you'll have to wrap them manually. You might find this useful: http://www.mono-project.com/dllimport - Jon From rubenvive at gmail.com Sun Oct 15 23:06:34 2006 From: rubenvive at gmail.com (Ruben Guinez) Date: Mon, 16 Oct 2006 00:06:34 -0300 Subject: [Mono-list] Failed running /usr/lib/mono/1.0/mod-mono-server.exe .........: Reason: Exec format error In-Reply-To: References: <000801c6efff$efe4b540$6b01a8c0@halcon> Message-ID: Thanks Robert. Now, all work fine !!!! On 10/15/06, Robert Jordan wrote: > Ruben D. Gu??ez G. wrote: > > Hi everybody!!! > > > > I have this error (Failed running > > /usr/lib/mono/1.0/mod-mono-server.exe .........: Reason: Exec format > > error) I just installed mono 1.1.18, and now my ASP.NET + APACHE2 not > > work. I'm working with openSuse 10.1 64 bits. The message I saw > > within /var/log/apache2/error_log, and when I start my app into > > browser I get : Error 503. > > Starting with 1.1.17, mod_mono expects that the config directive > 'MonoServerPath' is pointing to a native executable. > > Check your Apache config and remove or change MonoServerPath > to point to /usr/bin/mod-mono-server. > > Robert > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Rub?n D. Gu??ez G. Software Developer From nigel at nebulus-design.co.uk Mon Oct 16 03:31:52 2006 From: nigel at nebulus-design.co.uk (Nigel Jenkins) Date: Mon, 16 Oct 2006 08:31:52 +0100 Subject: [Mono-list] Accessing SystemV style shared memory in Mono In-Reply-To: <1160961875.3674.27.camel@melchior.magi> References: <45320843.6020806@nebulus-design.co.uk> <1160961875.3674.27.camel@melchior.magi> Message-ID: <45333568.7040802@nebulus-design.co.uk> Hi Jon Thanks for the info, as I'm so new to mono, I'm a bit wary of diving in and adding this stuff just right now (crikey I'm struggling to get Tao to work in monodevelop at the moment!). Is there a timeline for this stuff getting added or is it up to people like me to jump in and implement things that are missing? Nigel Jonathan Pryor wrote: > On Sun, 2006-10-15 at 11:06 +0100, Nigel Jenkins wrote: >> I'm looking at porting a graphics cluster application from C++ to C# >> using mono, making good progress so far with all the network stuff, but >> the original application talks to a couple of external apps using shared >> memory (shmget, shmat etc..). >> I've not been able to work out if there is a class that already allows >> me to do this, and being very new to mono, I'm not sure where I should >> be looking. > > Mono.Unix.Native.Syscall *would* be the place for this, but these > methods haven't been wrapped yet. > > Thus, you'll have to wrap them manually. > > You might find this useful: > > http://www.mono-project.com/dllimport > > - Jon > > > > > -- Nigel Jenkins --- Nebulus-Design nigel at nebulus-design.co.uk +44 (0) 7811 446 340 From russell.kay at realtimeworlds.com Mon Oct 16 05:12:39 2006 From: russell.kay at realtimeworlds.com (russell.kay at realtimeworlds.com) Date: Mon, 16 Oct 2006 10:12:39 +0100 Subject: [Mono-list] ExecuteReader problem In-Reply-To: <591BEE7C98CA7F48A7079C8221CC012F013E32B8@CHICAGO.dundee.realtimeworlds.com> Message-ID: <591BEE7C98CA7F48A7079C8221CC012F013E3C45@CHICAGO.dundee.realtimeworlds.com> All, I've just tried 1.1.18 and it has the same problem on the Mac (PowerPC), I tried the same code on the PC on Mono and it worked fine, could this be a PowerPC JIT bug??? It could be an ODBC problem on the MAC (I don't have a Linux install to try it out). Any pointers to narrowing the problem any further. Russell -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of russell.kay at realtimeworlds.com Sent: 11 October 2006 18:05 To: mono-list at lists.ximian.com Subject: [Mono-list] ExecuteReader problem All, I'm trying out ODBC on MAC OSX and I'm getting an exception every time I try to do an ExecuteReader call The exception output is.... Unhandled Exception: System.ArgumentOutOfRangeException: ArgRange_Array Parameter name: count at System.Text.ASCIIEncoding.GetString (System.Byte[] bytes, Int32 index, Int32 count) [0x00000] at System.Data.Odbc.OdbcDataReader.GetColumnAttributeStr (Int32 column, FieldIdentifier fieldId) [0x00000] at System.Data.Odbc.OdbcDataReader.GetSchemaTable () [0x00000] at System.Data.Odbc.OdbcDataReader..ctor (System.Data.Odbc.OdbcCommand command, CommandBehavior behavior) [0x00000] at System.Data.Odbc.OdbcDataReader..ctor (System.Data.Odbc.OdbcCommand command, CommandBehavior behavior, Int32 recordAffected) [0x00000] at (wrapper remoting-invoke-with-check) System.Data.Odbc.OdbcDataReader:.ctor (System.Data.Odbc.OdbcCommand,System.Data.CommandBehavior,int) at System.Data.Odbc.OdbcCommand.ExecuteReader (CommandBehavior behavior) [0x00000] at System.Data.Odbc.OdbcCommand.ExecuteDbDataReader (CommandBehavior behavior) [0x00000] at System.Data.Common.DbCommand.ExecuteReader () [0x00000] at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader () [0x00000] at DatabaseTest.Program.Main (System.String[] args) [0x00000] The code I am executing is class Program { static void Main(string[] args) { //connect to the database at //IDbConnection conn = new OdbcConnection( "DSN=RealTrading;USER=root;PASSWORD=root;" ); IDbConnection conn = new OdbcConnection("DRIVER={MySQL ODBC 3.51 Driver};SERVER=;DATABASE=;USER=;PASSWORD =;OPTION=3;"); Console.WriteLine("Connecting to database...."); conn.Open(); Stopwatch sw = new Stopwatch(); IDbCommand dbcmd = conn.CreateCommand(); dbcmd.CommandText = "SELECT * FROM table WHERE NumLines>10"; Console.WriteLine( "Executing SQL" ); sw.Start(); IDataReader reader = dbcmd.ExecuteReader(); sw.Stop(); Console.WriteLine("Elapsed Time = {0}", sw.Elapsed); int n = 0; while( reader.Read() && (n<20) ) { Console.WriteLine( "Sector {0} TOID {1} NumLines {2} Date {3}", reader["Sector"], reader["TOID"], reader["NumLines"], reader["Date"] ); ++n; } // end while reader.Close(); reader = null; dbcmd.Dispose(); dbcmd = null; conn.Close(); conn = null; } } Any Ideas???? Russell _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list DISCLAIMER This message and any attachments contain privileged and confidential information intended for the use of the addressee named above. If you are not the intended recipient of this message, you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. Please note that we cannot guarantee that this message or any attachment is virus free or that it has not been intercepted and amended. The views of the author may not necessarily reflect those of Real Time Worlds Ltd. ____________________________________________________________________ This email has been scanned by the MessageLabs Email Security System ____________________________________________________________________ This email has been scanned by the MessageLabs Email Security System From jonpryor at vt.edu Mon Oct 16 05:41:32 2006 From: jonpryor at vt.edu (Jonathan Pryor) Date: Mon, 16 Oct 2006 05:41:32 -0400 Subject: [Mono-list] Accessing SystemV style shared memory in Mono In-Reply-To: <45333568.7040802@nebulus-design.co.uk> References: <45320843.6020806@nebulus-design.co.uk> <1160961875.3674.27.camel@melchior.magi> <45333568.7040802@nebulus-design.co.uk> Message-ID: <1160991692.10605.1.camel@melchior.magi> On Mon, 2006-10-16 at 08:31 +0100, Nigel Jenkins wrote: > Is there a timeline for this stuff getting added or is it up to people > like me to jump in and implement things that are missing? There is no timeline, so stuff gets added to Mono.Posix.dll whenever I get around to it, and SysV shared memory hasn't been on my TODO yet. If you want it done quickly, you should bind it yourself. I can review it for submission when you're complete. - Jon From steflik at binghamton.edu Mon Oct 16 08:02:09 2006 From: steflik at binghamton.edu (steflik) Date: Mon, 16 Oct 2006 08:02:09 -0400 Subject: [Mono-list] ASP and ASP.NET Questions not in the FAQ Message-ID: <453374C1.3040906@binghamton.edu> Hi, I'm a Mono newbie with a couple of ASP questions. I'm running Mono/Apache on Fedora Core 5 with good results (for the most part). Even have the interface to MySqQL working with standalone C# (ASP will be today). Heres the questions: 1. Can Mono run "Classic ASP" applications, if so how? I can't find an example anywhere, please point me to a working example.. 2. I've written several ASP.NET applications using C# and the all seem to work but I have yet to be able to get one in VB to work. Does the VB part of Mone not work? If it does can someone point me to a real working example as this is driving me nuts. Dick Steflik Dept of Computer Science Binghamton University Binghamton, NY From Robert at pcssinc.com Mon Oct 16 08:12:36 2006 From: Robert at pcssinc.com (Robert Briggs) Date: Mon, 16 Oct 2006 08:12:36 -0400 Subject: [Mono-list] ASP.NET Mono/Apache CentOS Tutorial Message-ID: <136A540C5A2E6B4A809F5AFD747773177248E6@sbs.PCSSINC.local> Hello, I'm trying to setup mod_mono on CentOS and would appreciate any information that may lead to a good tutorial for beginners. Thanks in advance. Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061016/3fe53034/attachment.html From mhinks at gmail.com Mon Oct 16 08:16:32 2006 From: mhinks at gmail.com (Martin Hinks) Date: Mon, 16 Oct 2006 13:16:32 +0100 Subject: [Mono-list] ASP and ASP.NET Questions not in the FAQ In-Reply-To: <453374C1.3040906@binghamton.edu> References: <453374C1.3040906@binghamton.edu> Message-ID: <7fb639590610160516j6fee1e51l22d271e02555c75@mail.gmail.com> Hiya, Mono cannot run classic ASP - only ASP.NET. Furthermore the VB compiler is currently under heavy development and therefore VB apps are not likely to work at the present time. Hope that helps! Martin On 10/16/06, steflik wrote: > Hi, > I'm a Mono newbie with a couple of ASP questions. I'm running > Mono/Apache on Fedora Core 5 with good results (for the most part). Even > have the interface to MySqQL working with standalone C# (ASP will be > today). Heres the questions: > > 1. Can Mono run "Classic ASP" applications, if so how? I can't find an > example anywhere, please point me to a working example.. > > 2. I've written several ASP.NET applications using C# and the all seem > to work but I have yet to be able to get one in VB to work. Does the VB > part of Mone not work? If it does can someone point me to a real > working example as this is driving me nuts. > > Dick Steflik > Dept of Computer Science > Binghamton University > Binghamton, NY > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Martin Hinks http://www.m-s-d.net From lee at datatrakpos.com Mon Oct 16 09:57:45 2006 From: lee at datatrakpos.com (Lee) Date: Mon, 16 Oct 2006 09:57:45 -0400 Subject: [Mono-list] SPAM-LOW: ASP.NET Mono/Apache CentOS Tutorial In-Reply-To: <136A540C5A2E6B4A809F5AFD747773177248E6@sbs.PCSSINC.local> Message-ID: <20061016135745.EFQK10827.ibm67aec.bellsouth.net@YOUR588B4A13EA> > Subject: SPAM-LOW: [Mono-list] ASP.NET Mono/Apache CentOS Tutorial > > Hello, > > I'm trying to setup mod_mono on CentOS and would appreciate > any information that may lead to a good tutorial for > beginners. Thanks in advance. > > I would like to see something like this as well. I'm a windows programmer for almost 10 years now, but am new to linux/mono. A step by step would be nice to see. Lee From lee at datatrakpos.com Mon Oct 16 11:27:11 2006 From: lee at datatrakpos.com (Lee) Date: Mon, 16 Oct 2006 11:27:11 -0400 Subject: [Mono-list] SPAM-LOW: ASP.NET Mono/Apache CentOS Tutorial In-Reply-To: <27d75530610160733x474b368en1e0e89e389a03ffe@mail.gmail.com> Message-ID: <20061016152710.GVRE25956.ibm61aec.bellsouth.net@YOUR588B4A13EA> > I have a little tutorial here > http://www.joeaudette.com/settingupapachevirtualhostswithmod_mono.aspx > its based on Suse and I think some of the apache config > settings are out of date. > > Specifically, quoting a previous message on this list: > > Starting with 1.1.17, mod_mono expects that the config > directive 'MonoServerPath' is pointing to a native executable. > > Check your Apache config and remove or change MonoServerPath > to point to /usr/bin/mod-mono-server. > > > Still it may help some. I assume you have also seen the > documentation here: > http://www.mono-project.com/Mod_mono > > Hope it helps, > > Joe > Nice. Thanks for posting, Joe. Lee From miguel at ximian.com Mon Oct 16 13:05:25 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Mon, 16 Oct 2006 13:05:25 -0400 Subject: [Mono-list] Mono 1.1.18 last release before Mono 1.2. Message-ID: <1161018325.5569.9.camel@erandi.dom> Hello, Mono 1.1.18 has been released, this is our last large release before Mono 1.2. Lots of improved and new things on this release, please see: http://www.go-mono.com/archive/1.1.18 Miguel. From sontek at gmail.com Mon Oct 16 13:09:36 2006 From: sontek at gmail.com (John Anderson) Date: Mon, 16 Oct 2006 11:09:36 -0600 Subject: [Mono-list] Mono Presentations Message-ID: <6938f5390610161009g4416c313h2a4059f51a91d1fe@mail.gmail.com> I was wondering if anyone has slides/presentation notes on mono talks they've done that they could foreword to me? Thanks From awilliam at whitemice.org Mon Oct 16 13:10:56 2006 From: awilliam at whitemice.org (Adam Williams) Date: Mon, 16 Oct 2006 13:10:56 -0400 Subject: [Mono-list] Mono Presentations In-Reply-To: <6938f5390610161009g4416c313h2a4059f51a91d1fe@mail.gmail.com> References: <6938f5390610161009g4416c313h2a4059f51a91d1fe@mail.gmail.com> Message-ID: <1161018657.30933.31.camel@ws01.whitemice.org> On Mon, 2006-10-16 at 11:09 -0600, John Anderson wrote: > I was wondering if anyone has slides/presentation notes on mono talks > they've done that they could foreword to me? Tom Opgenorth asked this same question 24 hours and five minutes ago. ---- > I'm hoping to put together a presentation on Mono for my local .NET > users group and my local Linux Users group. Naturally, the exact same > presentation couldn't be used for both (not all the LUG users are > familiar with .NET/Mono). > Anyway, I was wondering if anybody had resources they could share with > me. Both presentations would be delivered the first week of November > 2006. I did a presentation for a LUG awhile ago - ftp://kalamazoolinux.org/pub/pdf/mono.pdf I can send you the source (OpenOffice) document off-list if you are interested. Note that their FTP server is *f*l*a*k*y* so it make take a couple of tries to actually get the document From mthaddon at yahoo.com Mon Oct 16 17:23:26 2006 From: mthaddon at yahoo.com (Tom Haddon) Date: Mon, 16 Oct 2006 22:23:26 +0100 Subject: [Mono-list] Gecko.WebControl Follow Up Message-ID: <1161033806.8520.10.camel@localhost.localdomain> Hi Folks, I'd posted about this yesterday, but I don't think I'm moving in the right direction: I took a look at the example Gecko.WebControl in the documentation and I can get it to compile okay, but when I run it I get: $ ./GeckoTest.exe Unhandled Exception: System.DllNotFoundException: /usr/lib/firefox/libgtkembedmoz.so at (wrapper managed-to-native) Gecko.WebControl:gtk_moz_embed_set_profile_path (string,string) at Gecko.WebControl..ctor (System.String aPath, System.String aDir) [0x00000] at GeckoTest.GeckoTest..ctor () [0x00000] at GeckoTest.GeckoTest.Main (System.String[] args) [0x00000] Originally I thought this was that it couldn't find the library, but an "ls /usr/lib/firefox/libgtkembedmoz.so" confirms that the file does exist, so I guess it must be something within the file that is causing the problem. Perhaps the documentation is out of date and the properties of this Dll have changed? Can anyone help out? Thanks, Tom Tom Haddon mailto:mthaddon at yahoo.com You own a dog, but you can only feed a cat. ----------------- Random quotes courtesy of fortune. From miguel at ximian.com Mon Oct 16 21:40:47 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Mon, 16 Oct 2006 21:40:47 -0400 Subject: [Mono-list] mcs/gmcs crash In-Reply-To: <1A3D9A7C-7F81-425D-938D-AC91C7434772@web.de> References: <40C429CE-9834-4B34-B7C7-3EE29C6089F8@web.de> <1160435427.4966.10.camel@erandi.dom> <1A3D9A7C-7F81-425D-938D-AC91C7434772@web.de> Message-ID: <1161049247.30002.26.camel@erandi.dom> Hey! > The above was on Tiger; I also tested it on Panther (which I believe > I hadn't before) and I did not observe any issues running my app and > mcs. Great news! Robert deserves all the credit (and probably a life-long supply of free beer) considering all his help. I merely applied the patch. Miguel From miguel at ximian.com Mon Oct 16 21:46:27 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Mon, 16 Oct 2006 21:46:27 -0400 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> Message-ID: <1161049587.30002.38.camel@erandi.dom> Hello, > > I'd rather limit any renaming to the specific platform that > > requires it. > > In bug 77324 it's mentioned that we don't use a linker script on > > macosx; > > that should be the first part to be fixed imho. > > Apart from not yet getting Mono to compile for any local experiments > whatsoever, I do know C but have no idea what a linker script is > supposed to be... Obviously some part of the existing auto* jungle > already leads to a linker being invoked. Sorry for my ignorance ... > so would that be an additional shell script or simply Makefile > changes or what? What does "we don't use a linker script on macosx" > mean in cleartext? I would probably go with some minimized set of defines myself. The linker script is a way of controlling what the linker does, but given the little knowledge among most of us about how to do this, its implications and the need to maintain it on the long term, it seems like the kind of hack that we might want to stay away from. > In Visual C++ on Windows I used to have explicit export definition > files for DLLs listing the symbols to be exported - is there no such > easy way on other platforms to limit the exported symbols to those > potentially invoked by developers embedding Mono? The linker script would help here, but someone has to figure it out and maintain it. From alftoro at gmail.com Mon Oct 16 22:01:48 2006 From: alftoro at gmail.com (Alfredo Torres) Date: Mon, 16 Oct 2006 19:01:48 -0700 Subject: [Mono-list] Mono 1.1.18 last release before Mono 1.2. In-Reply-To: <1161018325.5569.9.camel@erandi.dom> References: <1161018325.5569.9.camel@erandi.dom> Message-ID: <1e10440610161901yc4ed456x558dbb4fdaa6fde7@mail.gmail.com> Hello Everyone, I'm a little confused about the status of the VB runtime envinronment. The VB.NET support page indicates that a new runtime is under development, however, the release notes for Mono 1.1.18 indicates improvements to the new runtime. Is the new runtime included with 1.1.18? Thank your help Alfredo On 10/16/06, Miguel de Icaza wrote: > > Hello, > > Mono 1.1.18 has been released, this is our last large release before > Mono 1.2. Lots of improved and new things on this release, please see: > > http://www.go-mono.com/archive/1.1.18 > > Miguel. > _______________________________________________ > 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/20061016/ca065bc8/attachment.html From miguel at ximian.com Mon Oct 16 23:46:53 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Mon, 16 Oct 2006 23:46:53 -0400 Subject: [Mono-list] Mono 1.1.18 last release before Mono 1.2. In-Reply-To: <1e10440610161901yc4ed456x558dbb4fdaa6fde7@mail.gmail.com> References: <1161018325.5569.9.camel@erandi.dom> <1e10440610161901yc4ed456x558dbb4fdaa6fde7@mail.gmail.com> Message-ID: <1161056813.30002.47.camel@erandi.dom> Hello, > I'm a little confused about the status of the VB runtime envinronment. > The VB.NET support page indicates that a new runtime is under > development, however, the release notes for Mono 1.1.18 indicates > improvements to the new runtime. > > Is the new runtime included with 1.1.18? Yes, in the mono-basic source repository, or in the mono-basic RPM Miguel. From massi at ximian.com Tue Oct 17 02:59:21 2006 From: massi at ximian.com (Massimiliano Mantione) Date: Tue, 17 Oct 2006 08:59:21 +0200 Subject: [Mono-list] Gecko.WebControl Follow Up In-Reply-To: <1161033806.8520.10.camel@localhost.localdomain> References: <1161033806.8520.10.camel@localhost.localdomain> Message-ID: <1161068361.26185.4.camel@matrix.ximian.com> On Mon, 2006-10-16 at 22:23 +0100, Tom Haddon wrote: > Unhandled Exception: > System.DllNotFoundException: /usr/lib/firefox/libgtkembedmoz.so > at (wrapper managed-to-native) The library is there, but the Mono runtime does not know about it :-) Typically, you just have to add /usr/lib/firefox to the LD_LIBRARY_PATH (or, if you prefer, to /etc/ld.so.conf and run ldconfig). Ciao, Massi From joe.audette at gmail.com Mon Oct 16 10:33:42 2006 From: joe.audette at gmail.com (Joe Audette) Date: Mon, 16 Oct 2006 09:33:42 -0500 Subject: [Mono-list] SPAM-LOW: ASP.NET Mono/Apache CentOS Tutorial In-Reply-To: <20061016135745.EFQK10827.ibm67aec.bellsouth.net@YOUR588B4A13EA> References: <136A540C5A2E6B4A809F5AFD747773177248E6@sbs.PCSSINC.local> <20061016135745.EFQK10827.ibm67aec.bellsouth.net@YOUR588B4A13EA> Message-ID: <27d75530610160733x474b368en1e0e89e389a03ffe@mail.gmail.com> I have a little tutorial here http://www.joeaudette.com/settingupapachevirtualhostswithmod_mono.aspx its based on Suse and I think some of the apache config settings are out of date. Specifically, quoting a previous message on this list: Starting with 1.1.17, mod_mono expects that the config directive 'MonoServerPath' is pointing to a native executable. Check your Apache config and remove or change MonoServerPath to point to /usr/bin/mod-mono-server. Still it may help some. I assume you have also seen the documentation here: http://www.mono-project.com/Mod_mono Hope it helps, Joe On 10/16/06, Lee wrote: > > > Subject: SPAM-LOW: [Mono-list] ASP.NET Mono/Apache CentOS Tutorial > > > > Hello, > > > > I'm trying to setup mod_mono on CentOS and would appreciate > > any information that may lead to a good tutorial for > > beginners. Thanks in advance. > > > > > > I would like to see something like this as well. I'm a windows programmer > for almost 10 years now, but am new to linux/mono. A step by step would > be > nice to see. > > Lee > > > _______________________________________________ > 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/20061016/95c49160/attachment.html From pointer at inbox.lv Mon Oct 16 17:23:33 2006 From: pointer at inbox.lv (SPUHPointer) Date: Mon, 16 Oct 2006 14:23:33 -0700 (PDT) Subject: [Mono-list] ASP.NET 2.0 on mono above 1.1.13 Message-ID: <6843746.post@talk.nabble.com> Hi All, I have problem. I am trying to run some simple asp.net 2.0 web pages under Mono (even using xsp2) and I got all the time error (in browser): XML Parsing Error: no element found Location: http://127.0.0.1:1234/Default.aspx Line Number 1, Column 1: This happens to all version of mono above 1.1.13. What could be solution for this? To Get asp.net 2.0 site running? Thanks in advance! -- View this message in context: http://www.nabble.com/ASP.NET-2.0-on-mono-above-1.1.13-tf2455375.html#a6843746 Sent from the Mono - General mailing list archive at Nabble.com. From robertj at gmx.net Tue Oct 17 04:01:19 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 17 Oct 2006 10:01:19 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: <1161049587.30002.38.camel@erandi.dom> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> <1161049587.30002.38.camel@erandi.dom> Message-ID: Hi, Miguel de Icaza wrote: > Hello, > >>> I'd rather limit any renaming to the specific platform that >>> requires it. >>> In bug 77324 it's mentioned that we don't use a linker script on >>> macosx; >>> that should be the first part to be fixed imho. >> Apart from not yet getting Mono to compile for any local experiments >> whatsoever, I do know C but have no idea what a linker script is >> supposed to be... Obviously some part of the existing auto* jungle >> already leads to a linker being invoked. Sorry for my ignorance ... >> so would that be an additional shell script or simply Makefile >> changes or what? What does "we don't use a linker script on macosx" >> mean in cleartext? > > I would probably go with some minimized set of defines myself. > > The linker script is a way of controlling what the linker does, but > given the little knowledge among most of us about how to do this, its > implications and the need to maintain it on the long term, it seems like > the kind of hack that we might want to stay away from. > >> In Visual C++ on Windows I used to have explicit export definition >> files for DLLs listing the symbols to be exported - is there no such >> easy way on other platforms to limit the exported symbols to those >> potentially invoked by developers embedding Mono? > > The linker script would help here, but someone has to figure it out and > maintain it. The problem is not those duplicate WAPI symbols. It's the "export char **environ" declaration in metadate/icall.c, which prevents libmono from being loaded from inside another dll. This has forced people to link using the fuzzy Mac OS X LD option '-undefined dynamic_lookup'. This option leads to a world of pain, because even module global symbols defined in static libraries (like libwapi) are dynamically resolved. libmono was ending up calling Carbon's GetCurrentThread due to this option. Until the runtime gets fixed (I'll provide a patch), the workaround is to define and initialize "environ" from within the dll that links libmono. Do *not* link with '-undefined dynamic_lookup' any more: #include #include char **environ = NULL; void foo () { environ = *_NSGetEnviron (); mono_jit_init ("FooDomain"); } Robert From andreas.faerber at web.de Tue Oct 17 05:37:11 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Tue, 17 Oct 2006 11:37:11 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> <1161049587.30002.38.camel@erandi.dom> Message-ID: Hi, Am 17.10.2006 um 10:01 schrieb Robert Jordan: > The problem is not those duplicate WAPI symbols. > > It's the "export char **environ" declaration in metadate/icall.c, > which prevents libmono from being loaded from inside another > dll. This has forced people to link using the fuzzy Mac OS X LD > option '-undefined dynamic_lookup'. > > This option leads to a world of pain, because even module global > symbols defined in static libraries (like libwapi) are dynamically > resolved. libmono was ending up calling Carbon's GetCurrentThread > due to this option. > > Until the runtime gets fixed (I'll provide a patch), the > workaround is to define and initialize "environ" from > within the dll that links libmono. Unfortunately I cannot confirm this. > Do *not* link with > '-undefined dynamic_lookup' any more: > > #include > #include > > char **environ = NULL; > > void foo () > { > environ = *_NSGetEnviron (); > mono_jit_init ("FooDomain"); > } Using official Mono 1.1.18, removing the -undefined dynamic_lookup (I did ask about it in my original message!) does not lead to any change: mono_jit_init ** ERROR **: file threads.c: line 420 (mono_thread_attach): assertion failed: (thread_handle) aborting... ================================================================= Got a SIGABRT 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: (where the "mono_jit_init" line is a printf output just before mono_jit_init, on return there would be another output) Could it be the combination of both renaming the symbols *and* fixing the dynamic_lookup workaround? Andreas P.S. On a related topic: When I recently moved from 1.1.17.2 to 1.1.18 I had to recompile my native code because it is somehow being hardcoded to the current version - do you know a way to make this work independent of the installed Mono framework version? From kornelpal at gmail.com Tue Oct 17 05:41:36 2006 From: kornelpal at gmail.com (=?iso-8859-1?B?S29ybulsIFDhbA==?=) Date: Tue, 17 Oct 2006 11:41:36 +0200 Subject: [Mono-list] [Mono-dev] Mono 1.1.18 last release before Mono 1.2. References: Message-ID: <000801c6f1d0$7157d130$0100a8c0@kornelpal.hu> >I have no idea if the vbnc (new vb compiler which replaces the old 'mbas' >vb compiler) >will be included in mono 1.1.18 vbnc currently has two problems: - not working on Mono (the bugs are most likely in Mono) - only supports generating 2.0 binaries (no 1.1 support and gerenrics cannot be disabled) Note that I tested vbnc on MS.NET with our VB runtime and I found that vbnc is able to work with it with one exception: Microsoft.VisualBasic.CompilerServices.Conversions should be completely rewritten because it supports different set of conversions than the appropriate Type classes. This class exists because it has unique functionality. Korn?l From robertj at gmx.net Tue Oct 17 07:24:05 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 17 Oct 2006 13:24:05 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> <1161049587.30002.38.camel@erandi.dom> Message-ID: Andreas F?rber wrote: >> Until the runtime gets fixed (I'll provide a patch), the >> workaround is to define and initialize "environ" from >> within the dll that links libmono. > > Unfortunately I cannot confirm this. > >> Do *not* link with >> '-undefined dynamic_lookup' any more: >> >> #include >> #include >> >> char **environ = NULL; >> >> void foo () >> { >> environ = *_NSGetEnviron (); >> mono_jit_init ("FooDomain"); >> } > > Using official Mono 1.1.18, removing the -undefined dynamic_lookup (I > did ask about it in my original message!) does not lead to any change: Please provide some kind of self-containing test case. Robert From andreas.faerber at web.de Tue Oct 17 08:40:06 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Tue, 17 Oct 2006 14:40:06 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> <1161049587.30002.38.camel@erandi.dom> Message-ID: Hi, Am 17.10.2006 um 13:24 schrieb Robert Jordan: >> Using official Mono 1.1.18, removing the -undefined dynamic_lookup >> [...] does not lead to any change > > Please provide some kind of self-containing test case. The attached Objective-C source file Test.m contains the code to embed the Mono runtime within an Xcode plugin. Create a loadable Cocoa bundle project. Set as strings in Info.plist NSPrincipleClass to MCSPlugin, LoadAtLaunch to YES, XCPluginHasUI to NO; set the bundle extension to pbplugin. Link with Cocoa framework, Mono framework, and the system-private frameworks DevToolsCore (not sure if necessary) and DevToolsInterface (defines PBXLSPlugin). To execute, copy .pbplugin to /Library/Application Support/Apple/ Developer Tools/Plug-ins and (re-)start Xcode; read Console output during Xcode startup. It expects to find an executable assembly Test.exe in Contents/ Resources but as the error is already with mono_jit_init this shouldn't matter. Oh, and I've only tested your proposed workaround on Intel, where the problem occurred in the first place. (doing some more proofs ;) Andreas -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.m Type: application/octet-stream Size: 1429 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20061017/ddf4c727/attachment.obj -------------- next part -------------- From fxjrlists at yahoo.com.br Tue Oct 17 09:33:36 2006 From: fxjrlists at yahoo.com.br (Francisco Figueiredo Jr.) Date: Tue, 17 Oct 2006 11:33:36 -0200 Subject: [Mono-list] Npgsql 1.0 Released!! Message-ID: <4534DBB0.4070806@yahoo.com.br> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I'd like to say that Npgsql Development Team has released version 1.0 of Npgsql. Npgsql is a .Net Provider for Postgresql 7.x and 8.x. It allows your .Net programs access a Postgresql backend. More info about it can be found at: http://www.mono-project.com/PostgreSQL and http://npgsql.projects.postgresql.org Release notes: http://pgfoundry.org/frs/shownotes.php?release_id=662 This version marks an end of a cycle and the beginning of another: add support for .net 2.0 and ado.net 2.0 to Npgsql. This work will be done using current Npgsql 1.0 code base. This way we expect to have a working ado.net 2.0 enabled build really soon. We also have a lot of optimizations we want to do to make Npgsql much faster and much more feature complete. Stay tuned! Special Thanks: * God, for allowing this to happen. * All users and developers who give feedback and comments about Npgsql. Without your help this won't be possible. Please, give it a try and let me know of any problems you get. Download Page: http://pgfoundry.org/frs/?group_id=1000140 Thank you very much, guys! You are great!! P.S.: Sorry for sending this message so late. I was having problems with my Internet connection. P.P.S: Note: Mono svn will be updated soon. - -- Regards, Francisco Figueiredo Jr. http://fxjr.blogspot.com Npgsql Lead Developer http://npgsql.projects.postgresql.org Mono Project Contributor http://www.go-mono.com MonoBrasil Project Founder Member http://monobrasil.softwarelivre.org - -- - Would you tell me, please, which way I ought to go from here? - That depends a good deal on where you want to get to. -- Lewis Carroll "Alice's Adventures in Wonderland" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRTTbmf7iFmsNzeXfAQIjQQf9E8c86Ke+YfFLdM0D8v2Gcb9m4N29vHs/ ZTLZu+04ZBpjQuOBMKuNWeJnHswudbrxHbhmUEaGkz7zUjXtuYkm8Yj4cldB4cax Cy4hM8bF5K0ErG0R7BCMnjzaC5e/DVZspqLn7oYLOtni8+jm0i8KNIZleOy3Ptjp 3fdeTnvO8p6HFfJpjV4QE17DaGPD0gqcZ7WiK9s36Zua1T/nbBD4puLL7jpS9aQn Ih4YMoMm396AfGlVVVxt7NtGFnm/sQ4fviraRKPJTtJKm/iBINkHEa8WhO/OtOJa /HNj00NVHYwmqN8omf0PyOVihHJkoACPGAXMVY2xIkYezTqDviniOg== =B84q -----END PGP SIGNATURE----- _______________________________________________________ Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! http://br.mobile.yahoo.com/mailalertas/ From lluis at ximian.com Tue Oct 17 04:51:06 2006 From: lluis at ximian.com (Lluis Sanchez) Date: Tue, 17 Oct 2006 10:51:06 +0200 Subject: [Mono-list] C# Web Services : bad WSDL generation In-Reply-To: <7c23a9ae0610150237r728c0486m119d85718f0dacf7@mail.gmail.com> References: <7c23a9ae0610150237r728c0486m119d85718f0dacf7@mail.gmail.com> Message-ID: <1161075066.3915.15.camel@portador.site> Hi, Web service support for xsp2 is not finished and it is likely to have bugs. You should use xsp for now. Lluis. El dg 15 de 10 del 2006 a les 11:37 +0200, en/na S?bastien Mosser va escriure: > Hi everybody. > > I'm working on C# web services with my french research team, and I've > got some troubles using gmcs & xsp. > > When I run my HelloWorld Web Service in xsp2 (service dll was compiled > using gmcs), I've got the following error printed in the web page > (http://localhost:8080/HelloWorld.asmx) : > > This web service does not conform to WS-I Basic Profile v1.0 > * R2701: The wsdl:binding element in a DESCRIPTION MUST be > constructed so that its soapbind:binding child element specifies the > transport attribute > o Binding 'HelloWorldHttpGet', in Service Description > 'http://petitroll.free.fr/WS/hello' > o Binding 'HelloWorldHttpPost', in Service Description > 'http://petitroll.free.fr/WS/hello' > > If I try to build a proxy, using wsdl, no problems. using wsdl2, same > error shoot again :'( > > petitroll at bartimeus:~$ wsdl2 http://bartimeus:8080/HelloWorld.asmx?WSDL > Web Services Description Language Utility > Mono Framework v2.0.50727.42 > There where some warnings while generating the code: > http://bartimeus:8080/HelloWorld.asmx?WSDL > [same text as above, describing R2701 error] > > The same problem append on my iBook and on my Kubuntu :'(. > > I'm using the following asmx file : > petitroll at bartimeus:~/HelloWs$ cat HelloWorld.asmx > <%@ WebService Language="C#" Class="Rainbow.HelloWorld" %> > petitroll at bartimeus:~/HelloWs$ > > And the following code-behind file, compiled by : > gmcs -t:library -r:System.Web.Services \ > -out:bin/HelloWorld.dll HelloWorld.cs > > petitroll at bartimeus:~/HelloWs$ cat HelloWorld.cs > /** My first Web service using Mono > * author : Sebastian Mosser > * institute : Polytech'Sophia / CNRS / I3S / Rainbow Team > * Date : October 2006 > */ > > using System; > using System.Web.Services; > > namespace Rainbow > { > [WebService(Namespace="http://rainbow.essi.fr/isl4ws/sandbox", > Description="My first Mono Web Service ;-) ")] > public class HelloWorld : System.Web.Services.WebService > { > > [WebMethod(Description="Say Hello to someone")] > public string SayHello(string who) > { > return String.Format("Hello, {0} !", who); > } > > [WebMethod(Description="Say Hello to the World !")] > public string HelloToTheWorld() > { > return SayHello("world"); > } > } > } > petitroll at bartimeus:~/HelloWs$ > > If somebody has an idea ... ^_^ > > Thanks ! > From monodanmorg at yahoo.com Tue Oct 17 11:35:52 2006 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Tue, 17 Oct 2006 08:35:52 -0700 (PDT) Subject: [Mono-list] Npgsql 1.0 Released!! In-Reply-To: <4534DBB0.4070806@yahoo.com.br> Message-ID: <20061017153552.21901.qmail@web30806.mail.mud.yahoo.com> Nice work Francisco! Feel free to email the mono lists or provide patches to Mono to make sure that Npgsql can fully support ADO.NET 2.0 features. --- "Francisco Figueiredo Jr." wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Hi all, > > I'd like to say that Npgsql Development Team has > released version 1.0 > of Npgsql. > > > Npgsql is a .Net Provider for Postgresql 7.x and > 8.x. It allows your > .Net programs access a Postgresql backend. > > More info about it can be found at: > > http://www.mono-project.com/PostgreSQL > and > http://npgsql.projects.postgresql.org > > > Release notes: > http://pgfoundry.org/frs/shownotes.php?release_id=662 > > > This version marks an end of a cycle and the > beginning of another: add > support for .net 2.0 and ado.net 2.0 to Npgsql. This > work will be done > using current Npgsql 1.0 code base. This way we > expect to have a working > ado.net 2.0 enabled build really soon. We also have > a lot of > optimizations we want to do to make Npgsql much > faster and much more > feature complete. Stay tuned! > > > > Special Thanks: > > * God, for allowing this to happen. > > * All users and developers who give feedback and > comments about Npgsql. > Without your help this won't be possible. > > > Please, give it a try and let me know of any > problems you get. > > > Download Page: > http://pgfoundry.org/frs/?group_id=1000140 > > > Thank you very much, guys! You are great!! > > > P.S.: Sorry for sending this message so late. I was > having problems with > my Internet connection. > > P.P.S: Note: Mono svn will be updated soon. > > - -- > Regards, > > Francisco Figueiredo Jr. > http://fxjr.blogspot.com > Npgsql Lead Developer > http://npgsql.projects.postgresql.org > Mono Project Contributor > http://www.go-mono.com > MonoBrasil Project Founder Member > http://monobrasil.softwarelivre.org > > > - -- > - Would you tell me, please, which way I ought to > go from here? > - That depends a good deal on where you want to get > to. > -- Lewis Carroll "Alice's Adventures in > Wonderland" > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.4 (GNU/Linux) > Comment: Using GnuPG with Mozilla - > http://enigmail.mozdev.org > > iQEVAwUBRTTbmf7iFmsNzeXfAQIjQQf9E8c86Ke+YfFLdM0D8v2Gcb9m4N29vHs/ > ZTLZu+04ZBpjQuOBMKuNWeJnHswudbrxHbhmUEaGkz7zUjXtuYkm8Yj4cldB4cax > Cy4hM8bF5K0ErG0R7BCMnjzaC5e/DVZspqLn7oYLOtni8+jm0i8KNIZleOy3Ptjp > 3fdeTnvO8p6HFfJpjV4QE17DaGPD0gqcZ7WiK9s36Zua1T/nbBD4puLL7jpS9aQn > Ih4YMoMm396AfGlVVVxt7NtGFnm/sQ4fviraRKPJTtJKm/iBINkHEa8WhO/OtOJa > /HNj00NVHYwmqN8omf0PyOVihHJkoACPGAXMVY2xIkYezTqDviniOg== > =B84q > -----END PGP SIGNATURE----- > > > _______________________________________________________ > > Novidade no Yahoo! Mail: receba alertas de novas > mensagens no seu celular. Registre seu aparelho > agora! > http://br.mobile.yahoo.com/mailalertas/ > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From robertj at gmx.net Tue Oct 17 17:52:27 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 17 Oct 2006 23:52:27 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> <1161049587.30002.38.camel@erandi.dom> Message-ID: Andreas F?rber wrote: >> Please provide some kind of self-containing test case. > > > The attached Objective-C source file Test.m contains the code to embed > the Mono runtime within an Xcode plugin. Create a loadable Cocoa bundle > project. Set as strings in Info.plist NSPrincipleClass to MCSPlugin, > LoadAtLaunch to YES, XCPluginHasUI to NO; set the bundle extension to > pbplugin. Link with Cocoa framework, Mono framework, and the > system-private frameworks DevToolsCore (not sure if necessary) and > DevToolsInterface (defines PBXLSPlugin). To execute, copy .pbplugin to > /Library/Application Support/Apple/ Developer Tools/Plug-ins and > (re-)start Xcode; read Console output during Xcode startup. > > It expects to find an executable assembly Test.exe in Contents/ > Resources but as the error is already with mono_jit_init this shouldn't > matter. Oh, and I've only tested your proposed workaround on Intel, > where the problem occurred in the first place. (doing some more proofs ;) That's rather a cookbook than a self-containing test case ;-) Please provide the complete Xcode project. I tried an own Cocoa app and a Cocoa bundle. Both were working, the latter with the environ 'trick'. So before starting to rename those symbols, I'd like to be convinced that it can't be fixed by removing/adding some smart linker option. Robert From rjdyer at vcu.edu Wed Oct 18 07:28:27 2006 From: rjdyer at vcu.edu (Rodney J. Dyer) Date: Wed, 18 Oct 2006 07:28:27 -0400 Subject: [Mono-list] TreeView question Message-ID: <1161170907.16152.5.camel@localhost> OK, I'm attempting to implement a spreadsheet-like interface using gtk# and I'm having a tough time. Can someone point me in the direction of an example/tutorial of using ListStore/NodeStore for a TreeView with a variable number of columns. I'm looking at the user importing a tab-delimited text file, say from a spreadsheet program or something and manipulating it in various ways. The number of columns is resolved when the user imports a data file, not at design time so things such as: [TreeNode (ColumnCount=2)] and [TreeNodeValue (Column=1)] cannot be determined at compile time. An example or quick point in the right direction would be appreciated. Thanks, Rodney J. Dyer, PhD Department of Biology Virginia Commonwealth University Richmond, Virginia 23284-2012 http://dyerlab.bio.vcu.edu From carlosble at shidix.com Wed Oct 18 08:07:21 2006 From: carlosble at shidix.com (Carlos Ble) Date: Wed, 18 Oct 2006 13:07:21 +0100 Subject: [Mono-list] TreeView question In-Reply-To: <1161170907.16152.5.camel@localhost> References: <1161170907.16152.5.camel@localhost> Message-ID: <1161173241.5459.15.camel@laptop1> http://www.mono-project.com/GtkSharp_TreeView_Tutorial El mi?, 18-10-2006 a las 07:28 -0400, Rodney J. Dyer escribi?: > OK, I'm attempting to implement a spreadsheet-like interface using gtk# > and I'm having a tough time. Can someone point me in the direction of > an example/tutorial of using ListStore/NodeStore for a TreeView with a > variable number of columns. I'm looking at the user importing a > tab-delimited text file, say from a spreadsheet program or something and > manipulating it in various ways. The number of columns is resolved when > the user imports a data file, not at design time so things such as: > > [TreeNode (ColumnCount=2)] > > and > > [TreeNodeValue (Column=1)] > > cannot be determined at compile time. An example or quick point in the > right direction would be appreciated. > > Thanks, > > Rodney J. Dyer, PhD > > Department of Biology > Virginia Commonwealth University > Richmond, Virginia 23284-2012 > http://dyerlab.bio.vcu.edu > > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list -- Carlos Ble Shidix Technologies www.shidix.com/carlosble From adam at morrison-ind.com Wed Oct 18 08:44:23 2006 From: adam at morrison-ind.com (Adam Tauno Williams) Date: Wed, 18 Oct 2006 08:44:23 -0400 Subject: [Mono-list] TreeView question In-Reply-To: <1161170907.16152.5.camel@localhost> References: <1161170907.16152.5.camel@localhost> Message-ID: <1161175463.5806.1.camel@aleph.whitemice.org> > OK, I'm attempting to implement a spreadsheet-like interface using gtk# > and I'm having a tough time. Perhaps you want a Grid View? > Can someone point me in the direction of > an example/tutorial of using ListStore/NodeStore for a TreeView with a > variable number of columns. I'm looking at the user importing a You have to set it up programatically, not via attributes, if you want to modify things at run time. See the MonoDoc documentation for TreeView. > tab-delimited text file, say from a spreadsheet program or something and > manipulating it in various ways. The number of columns is resolved when > the user imports a data file, not at design time so things such as: > [TreeNode (ColumnCount=2)] > and > [TreeNodeValue (Column=1)] > cannot be determined at compile time. An example or quick point in the > right direction would be appreciated. From freyr.magnusson at gmail.com Wed Oct 18 13:02:45 2006 From: freyr.magnusson at gmail.com (=?ISO-8859-1?Q?Freyr_Magn=FAsson?=) Date: Wed, 18 Oct 2006 17:02:45 +0000 Subject: [Mono-list] accessing webcam under linux Message-ID: <1e08064e0610181002l1f3cacf1udf2af424a5a94dbd@mail.gmail.com> Hi, Does anyone know how to access a webcam using mono under linux? Do I have to wrap a 3d party library to accomplish this maybe? If so you know of a suitable library that handles webcams? regards, Freyr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061018/04a46ceb/attachment.html From nikki at trumphurst.com Wed Oct 18 13:15:30 2006 From: nikki at trumphurst.com (Nikki Locke) Date: Wed, 18 Oct 2006 18:15:30 +0100 Subject: [Mono-list] Suppressing "The private method `xxxxx' is never used" warnings Message-ID: I have a lot of private methods in a set of state machine classes that are only called using Reflection. This gives rise to a lot of "The private method `xxxxx' is never used" warnings when compiling under Mono. Is there are way (using an Attribute, probably) to flag these methods as called from Reflection, so the compiler doesn't give these warnings? -- Nikki Locke, Trumphurst Ltd. PC & Unix consultancy & programming http://www.trumphurst.com/ From lorenb at mmgsecurity.com Wed Oct 18 13:38:51 2006 From: lorenb at mmgsecurity.com (Loren Bandiera) Date: Wed, 18 Oct 2006 13:38:51 -0400 Subject: [Mono-list] Suppressing "The private method `xxxxx' is never used" warnings In-Reply-To: References: Message-ID: <1161193131.10682.48.camel@war.420consulting.com> Hi, You could try something like this: #pragma warning disable 169 public class MyClass { ... } #pragma warning restore 169 On Wed, 2006-10-18 at 18:15 +0100, Nikki Locke wrote: > I have a lot of private methods in a set of state machine classes that > are > only called using Reflection. This gives rise to a lot of "The > private > method `xxxxx' is never used" warnings when compiling under Mono. > > Is there are way (using an Attribute, probably) to flag these methods > as > called from Reflection, so the compiler doesn't give these warnings? -- Loren Bandiera MMG Security, Inc. From alan.mcgovern at gmail.com Wed Oct 18 13:58:12 2006 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Wed, 18 Oct 2006 18:58:12 +0100 Subject: [Mono-list] [SPAM-LOW] .NET Ogg vorbis encoder/decoder? Message-ID: <117799f00610181058j29cb841crfbad99c6d2815e5b@mail.gmail.com> Hi, I've always had an interest in audio/video encoding (regular browser of the doom9 forums) and i was wondering if there was an existing .NET encoder for the .ogg format (ogg vorbis). If there is, does anyone have a link? By the looks of my google searchs, there is, but i can't find any more details other than "it exists". Does it work, is it complete? Or is google lying to me ;) Secondly, is there a .NET ogg vorbis encoder? I'd be interested in implementing one if one doesn't exist. Thanks, Alan. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061018/5a65247f/attachment.html From ben at gohelios.com Wed Oct 18 16:36:22 2006 From: ben at gohelios.com (Ben Timby) Date: Wed, 18 Oct 2006 16:36:22 -0400 Subject: [Mono-list] [SPAM-LOW] .NET Ogg vorbis encoder/decoder? In-Reply-To: <117799f00610181058j29cb841crfbad99c6d2815e5b@mail.gmail.com> References: <117799f00610181058j29cb841crfbad99c6d2815e5b@mail.gmail.com> Message-ID: <45369046.2000608@gohelios.com> P/Invoke could be used to easily wrap a native ogg encoder/decoder if you had a specific need for one. Otherwise, here is a sample C# ogg decoder (managed): http://www.codeproject.com/cs/media/OggPlayer.asp This requires DX for Windows for access to sound hardware, but the decoding portion of the code would be independent of Windows. Alan McGovern wrote: > Hi, > > I've always had an interest in audio/video encoding (regular browser of the > doom9 forums) and i was wondering if there was an existing .NET encoder for > the .ogg format (ogg vorbis). If there is, does anyone have a link? By the > looks of my google searchs, there is, but i can't find any more details > other than "it exists". Does it work, is it complete? Or is google lying to > me ;) > > Secondly, is there a .NET ogg vorbis encoder? I'd be interested in > implementing one if one doesn't exist. > > Thanks, > Alan. > > > ------------------------------------------------------------------------ > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list -- Ben Timby Senior Software Architect Helios, LLC (p) 317-554-3619 (f) 317-554-8997 www.gohelios.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3166 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.ximian.com/pipermail/mono-list/attachments/20061018/634b9bca/attachment-0001.bin From william.huskey at gmail.com Wed Oct 18 21:06:40 2006 From: william.huskey at gmail.com (William Huskey) Date: Wed, 18 Oct 2006 18:06:40 -0700 Subject: [Mono-list] [SPAM-LOW] .NET Ogg vorbis encoder/decoder? In-Reply-To: <45369046.2000608@gohelios.com> References: <117799f00610181058j29cb841crfbad99c6d2815e5b@mail.gmail.com> <45369046.2000608@gohelios.com> Message-ID: You could always check the source for banshee http://banshee-project.org/Main_Page it looks like they have their own .net libs for this On 10/18/06, Ben Timby wrote: > > P/Invoke could be used to easily wrap a native ogg encoder/decoder if > you had a specific need for one. > > Otherwise, here is a sample C# ogg decoder (managed): > http://www.codeproject.com/cs/media/OggPlayer.asp > > This requires DX for Windows for access to sound hardware, but the > decoding portion of the code would be independent of Windows. > > Alan McGovern wrote: > > Hi, > > > > I've always had an interest in audio/video encoding (regular browser of > the > > doom9 forums) and i was wondering if there was an existing .NET encoder > for > > the .ogg format (ogg vorbis). If there is, does anyone have a link? By > the > > looks of my google searchs, there is, but i can't find any more details > > other than "it exists". Does it work, is it complete? Or is google lying > to > > me ;) > > > > Secondly, is there a .NET ogg vorbis encoder? I'd be interested in > > implementing one if one doesn't exist. > > > > Thanks, > > Alan. > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > -- > Ben Timby > Senior Software Architect > Helios, LLC > (p) 317-554-3619 > (f) 317-554-8997 > www.gohelios.com > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > > > -- William S. Huskey UNIX Systems Engineer Maritime Systems Solutions Division SAIC Tel: 425-267-5643 Email: huskeyw at saic.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061018/065bb977/attachment.html From enjoylife at tele2.fr Thu Oct 19 03:55:07 2006 From: enjoylife at tele2.fr (enjoylife at tele2.fr) Date: Thu, 19 Oct 2006 09:55:07 +0200 Subject: [Mono-list] a GTK# application multi platform Message-ID: An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061019/686fb80b/attachment.html From andreas.faerber at web.de Thu Oct 19 04:38:12 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Thu, 19 Oct 2006 10:38:12 +0200 Subject: [Mono-list] a GTK# application multi platform In-Reply-To: References: Message-ID: Hi, Am 19.10.2006 um 09:55 schrieb enjoylife at tele2.fr: > I realized a GTK# application and i want this is binary compatible > with Windows and Linux. > How do i make that ? It already is! :-) Either install the Gtk# runtime for Microsoft .NET or install Mono on both platforms. The same .exe assembly will work on any platform as long as your code doesn't do anything platform-specific. Andreas From elmar at haneke.de Thu Oct 19 04:42:35 2006 From: elmar at haneke.de (Elmar Haneke) Date: Thu, 19 Oct 2006 10:42:35 +0200 Subject: [Mono-list] a GTK# application multi platform In-Reply-To: References: Message-ID: <45373A7B.5060703@haneke.de> > I realized a GTK# application and i want this is binary compatible with > Windows and Linux. > How do i make that ? You have to install an compatible runtime on target machine. On Linux it is the "mono" package, on Windows you can either use DotNET-Framework or Mono. For DotNET you have to install GTK#-Runtime separately, Mono-installer does include GTK#. The mono-generated application (DLL and EXE-files) is binary compatible to both platforms. Elmar From massi at ximian.com Thu Oct 19 04:51:01 2006 From: massi at ximian.com (Massimiliano Mantione) Date: Thu, 19 Oct 2006 10:51:01 +0200 Subject: [Mono-list] a GTK# application multi platform In-Reply-To: References: Message-ID: <1161247861.4183.5.camel@matrix.ximian.com> On Thu, 2006-10-19 at 09:55 +0200, enjoylife at tele2.fr wrote: > I realized a GTK# application and i want this is binary > compatible with Windows and Linux. > How do i make that ? You already did it, the resulting .exe is binary compatible. Just make sure you have GTK# installed on windows as well... there is an installer for that in the Mono downloads directory. Also, make sure that your application is compatible with the GTK# of both your Linux and Windows systems (or that they have the save GTK# version!). Ciao, Massi From damien.daly at free.fr Thu Oct 19 05:18:45 2006 From: damien.daly at free.fr (Damien DALY) Date: Thu, 19 Oct 2006 11:18:45 +0200 Subject: [Mono-list] Segmentation fault using mod_mono, apache2, ubuntu64 Message-ID: <1161249525.453742f5bafb8@imp1-g19.free.fr> Hi Here is my config : - VMWare running a x64 proc under WinXP 32 - Ubuntu Server Dapper x64 - Repository universe and multiverse - All packages latest version I've installed a clean server version (basic install). Then I've executed : apt-get install mono-apache-server2 libapache2-mod-mono mono-xsp2 asp.net2-examples vi /etc/apache2/mods-enabled/mod_mono.conf /etc/init.d/apache2 force-reload So I'm using apache2 with mod_mono running xsp2. I'm working on apache2 default site, default VirtualHost. I'm testing with a simple web page Default.aspx (with the Default.aspx.cs code) with just a label. This page is Ok running xsp2 directly. I added : Alias /test "/home/dede/test" If I use : MonoAutoApplication enabled I have this in logs : [Thu Oct 19 11:10:22 2006] [notice] Apache/2.0.55 (Ubuntu) mod_mono/1.1.10 configured -- resuming normal operations cannot open assembly /usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe cannot open assembly /usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe Another mod-mono-server with the same arguments is already running. If I add : MonoServerPath /usr/lib/xsp/2.0/mod-mono-server2.exe I have in logs : [Thu Oct 19 11:14:20 2006] [notice] child pid 8473 exit signal Segmentation fault (11) [Thu Oct 19 11:14:20 2006] [notice] child pid 8475 exit signal Segmentation fault (11) Using this options does the same thing : MonoDebug true MonoRunXSP true If I add my application using only this directives : Alias /test "/home/dede/test" AddMonoApplications test "/test:/home/dede/test" SetHandler mono I have this in logs : cannot open assembly /usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe And putting the right mod-mono-server2.exe path causes "segmentation fault". Is this a mono version-specific problem, a distrib-specific problem, or a noob-config problem ? Thanks D?d? From antonello at deveel.com Thu Oct 19 05:30:45 2006 From: antonello at deveel.com (Antonello Provenzano) Date: Thu, 19 Oct 2006 11:30:45 +0200 Subject: [Mono-list] Segmentation fault using mod_mono, apache2, ubuntu64 In-Reply-To: <1161249525.453742f5bafb8@imp1-g19.free.fr> References: <1161249525.453742f5bafb8@imp1-g19.free.fr> Message-ID: Damien, Although I have a different test configuration, I posted a similar request for help to the list, I never received any response. I hope your new request will help me solve my problem as well. Cheers. Antonello On 10/19/06, Damien DALY wrote: > Hi > > Here is my config : > - VMWare running a x64 proc under WinXP 32 > - Ubuntu Server Dapper x64 > - Repository universe and multiverse > - All packages latest version > > I've installed a clean server version (basic install). > Then I've executed : > apt-get install mono-apache-server2 libapache2-mod-mono mono-xsp2 > asp.net2-examples > vi /etc/apache2/mods-enabled/mod_mono.conf > /etc/init.d/apache2 force-reload > > So I'm using apache2 with mod_mono running xsp2. > > I'm working on apache2 default site, default VirtualHost. > I'm testing with a simple web page Default.aspx (with the Default.aspx.cs code) > with just a label. This page is Ok running xsp2 directly. > I added : Alias /test "/home/dede/test" > > If I use : MonoAutoApplication enabled > I have this in logs : > [Thu Oct 19 11:10:22 2006] [notice] Apache/2.0.55 (Ubuntu) mod_mono/1.1.10 > configured -- resuming normal operations > cannot open assembly /usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe > cannot open assembly /usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe > Another mod-mono-server with the same arguments is already running. > > If I add : > MonoServerPath /usr/lib/xsp/2.0/mod-mono-server2.exe > I have in logs : > [Thu Oct 19 11:14:20 2006] [notice] child pid 8473 exit signal Segmentation > fault (11) > [Thu Oct 19 11:14:20 2006] [notice] child pid 8475 exit signal Segmentation > fault (11) > > > Using this options does the same thing : > MonoDebug true > MonoRunXSP true > > If I add my application using only this directives : > Alias /test "/home/dede/test" > AddMonoApplications test "/test:/home/dede/test" > > SetHandler mono > > > I have this in logs : > cannot open assembly /usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe > > And putting the right mod-mono-server2.exe path causes "segmentation fault". > > Is this a mono version-specific problem, a distrib-specific problem, or a > noob-config problem ? > > Thanks > > D?d? > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From lavi.kfir at gmail.com Thu Oct 19 09:05:00 2006 From: lavi.kfir at gmail.com (Kfir Lavi) Date: Thu, 19 Oct 2006 15:05:00 +0200 Subject: [Mono-list] Debian package for MySql.Data.dll Message-ID: Hi, I'm using Debian and I'm searching to install with .deb package the Connector/Net 1.0 . I don't find deb package for it. What is the package? If there is no package, please tell me why Debian choose not to create a package for it. Tnx, Kfir From enjoylife at tele2.fr Thu Oct 19 09:32:31 2006 From: enjoylife at tele2.fr (enjoylife at tele2.fr) Date: Thu, 19 Oct 2006 15:32:31 +0200 Subject: [Mono-list] a GTK# application multi platform In-Reply-To: <1161247861.4183.5.camel@matrix.ximian.com> References: <1161247861.4183.5.camel@matrix.ximian.com> Message-ID: An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061019/b8b55642/attachment-0001.html From rafim at mainsoft.com Tue Oct 17 05:27:33 2006 From: rafim at mainsoft.com (Rafael Mizrahi) Date: Tue, 17 Oct 2006 02:27:33 -0700 Subject: [Mono-list] [Mono-dev] Mono 1.1.18 last release before Mono 1.2. In-Reply-To: <1e10440610161901yc4ed456x558dbb4fdaa6fde7@mail.gmail.com> Message-ID: Hi Alfredo mono 1.1.17 includes VB 2.0 implementation. I guess that the VB.NET support page should be change in order to reflect that. I have no idea if the vbnc (new vb compiler which replaces the old 'mbas' vb compiler) will be included in mono 1.1.18 Rafael Mizrahi ________________________________________ From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Alfredo Torres Sent: Tuesday, October 17, 2006 4:02 To: Miguel de Icaza Cc: mono-list at lists.ximian.com; mono-devel-list at lists.ximian.com Subject: Re: [Mono-dev] [Mono-list] Mono 1.1.18 last release before Mono 1.2. Hello Everyone, I'm a little confused about the status of the VB runtime envinronment.? The VB.NET support page indicates that a new runtime is under development, however, the release notes for Mono 1.1.18 indicates improvements to the new runtime. Is the new runtime included with 1.1.18? Thank your help Alfredo On 10/16/06, Miguel de Icaza wrote: Hello, ????Mono 1.1.18 has been released, this is our last large release before Mono 1.2.?? Lots of improved and new things on this release, please see: ????????http://www.go-mono.com/archive/1.1.18 Miguel. _______________________________________________ Mono-list maillist??-??Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From thisaddressisnotmine at td.selfip.net Thu Oct 19 10:11:57 2006 From: thisaddressisnotmine at td.selfip.net (Oleg Deribas) Date: Thu, 19 Oct 2006 17:11:57 +0300 Subject: [Mono-list] a GTK# application multi platform In-Reply-To: References: <1161247861.4183.5.camel@matrix.ximian.com> Message-ID: <453787AD.4080108@td.selfip.net> Hello, enjoylife at tele2.fr said the following on 19.10.2006 16:32: > But if i understood, normally when you install mono on Windows, this > libraries are recorded in the MS GAC, isn't it ? No, these libraries are installed in Mono's GAC, so your application will use these libraries only if run like this: mono Application.exe" To use these libraries with MS runtime you should install separate copies into MS GAC. -- Oleg From lee at datatrakpos.com Thu Oct 19 10:57:18 2006 From: lee at datatrakpos.com (Lee) Date: Thu, 19 Oct 2006 10:57:18 -0400 Subject: [Mono-list] ASP 2.0 File Uploads? Message-ID: <20061019145729.MJKP23386.ibm61aec.bellsouth.net@YOUR588B4A13EA> Curious if mono supports uploading of files as does ASP 2.0? Thank you, Warm Regards, Lee From riltim at gmail.com Thu Oct 19 11:19:02 2006 From: riltim at gmail.com (Tim Riley) Date: Thu, 19 Oct 2006 11:19:02 -0400 Subject: [Mono-list] Compile Error (System.Diagnostics.Stopwatch) Message-ID: Using: Mono 1.1.18, Windows XP A buddy of mine wrote a small C# app for testing the speed of text reversing loops to find which method is most efficient. It compiles fine using .NET 2.0 but when I try to compile it using Mono 1.1.18 I get the following two errors. reverse_test_mono.cs(99,16): error CS0246: The type or namespace name 'Stopwatch' could not be found. Are you missing a using directive or an assembly reference? reverse_test_mono.cs(99,44): error CS0246: The type or namespace name 'Stopwatch' could not be found. Are you missing a using directive or an assembly reference? When I use Lutz Roeder's .NET Reflector on mono's System.dll found in the "lib\mono\2.0" directory I can drill down to "System.Diagnostics.Stopwatch" so I assume it should be available if I reference "System" when trying to compile. I am issuing this command to compile: mcs -reference:System reverse_test_mono.cs and here is the code: #####################Code##################### using System; using System.Text; using System.Diagnostics; namespace CADLABS { interface IReversable { string Reverse( string text ); } class Class1 : IReversable { public string Reverse( string text ) { if ( text == null || text.Length < 2 ) return text; char[] chars = text.ToCharArray(); Array.Reverse( chars ); return new string( chars ); } public override string ToString() { return "Class1"; } } class Class2 : IReversable { public string Reverse( string text ) { if ( text == null || text.Length < 2 ) return text; char[] chars = new char[ text.Length ]; for ( int i = 0, j = chars.GetUpperBound( 0 ) ; -1 < j ; ) chars[ i++ ] = text[ j-- ]; return new string( chars ); } public override string ToString() { return "Class2"; } } class Class3 : IReversable { public string Reverse( string text ) { if ( text == null || text.Length < 2 ) return text; StringBuilder sb = new StringBuilder( text ); for ( int i = 0, j = text.Length - 1 ; -1 < j ; ) sb[ i++ ] = text[ j-- ]; return sb.ToString(); } public override string ToString() { return "Class3"; } } class Class4 : IReversable { // Glenn's code public string Reverse( string s ) { // mp added following line to even the field if ( s == null || s.Length < 2 ) return s; // Allocate buffer... char[] reversedString = new char[ s.Length ]; // Calculate length ONLY ONCE, NOT each time thru 'for' loop... int limit = s.Length / 2; for ( int i = 0, j = s.Length - 1 ; i <= limit ; i++, j-- ) { reversedString[ i ] = s[ j ]; reversedString[ j ] = s[ i ]; } return new string( reversedString ); } public override string ToString() { return "Class4"; } } class Class5 : IReversable { // probably a bad interprettation of Cornbread's code // not using pointers but using the triple xor technique public string Reverse( string text ) { if ( text == null || text.Length < 2 ) return text; char[] chars = text.ToCharArray(); int j = chars.GetUpperBound(0); for ( int i = 0 ; i < j ; i++, j-- ) { chars[ i ] ^= chars[ j ]; chars[ j ] ^= chars[ i ]; chars[ i ] ^= chars[ j ]; } return new string( chars ); } public override string ToString() { return "Class5"; } } class Testing { static Stopwatch _stopwatch = new Stopwatch(); public static void Test( IReversable x, string text, int iterations ) { string result; _stopwatch.Reset(); _stopwatch.Start(); for ( int i = 0 ; i < iterations ; i++ ) result = x.Reverse( text ); _stopwatch.Stop(); Console.WriteLine( "{0}.Reverse took {1} milliseconds ({2} chars, {3} iterations).", x.ToString(), _stopwatch.ElapsedMilliseconds, text.Length, iterations ); } public static void Main() { IReversable[] irTests = new IReversable[ 5 ]; irTests[ 0 ] = new Class1(); irTests[ 1 ] = new Class2(); irTests[ 2 ] = new Class3(); irTests[ 3 ] = new Class4(); irTests[ 4 ] = new Class5(); // test 'em ========================================== string text = "0123456789abcdef"; int iterations = 1000000; foreach ( IReversable irTest in irTests ) Test( irTest, text, iterations ); Console.WriteLine(); // test 'em ========================================== for ( int i = 0 ; i < 6 ; i++ ) text = text + text; iterations = iterations / 10; foreach ( IReversable irTest in irTests ) Test( irTest, text, iterations ); Console.WriteLine(); // test 'em ========================================== for ( int i = 0 ; i < 6 ; i++ ) text = text + text; iterations = iterations / 100; foreach ( IReversable irTest in irTests ) Test( irTest, text, iterations ); Console.ReadKey(); } } } #####################Code##################### -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061019/d545eec6/attachment-0001.html From lupus at ximian.com Thu Oct 19 14:50:57 2006 From: lupus at ximian.com (Paolo Molaro) Date: Thu, 19 Oct 2006 20:50:57 +0200 Subject: [Mono-list] Compile Error (System.Diagnostics.Stopwatch) In-Reply-To: References: Message-ID: <20061019185057.GH4272@debian.org> On 10/19/06 Tim Riley wrote: > Using: Mono 1.1.18, Windows XP [...] > reverse_test_mono.cs(99,16): error CS0246: The type or namespace name > 'Stopwatch' could not be found. Are you missing a using directive or an > assembly reference? [...] > I am issuing this command to compile: > mcs -reference:System reverse_test_mono.cs Use gmcs to compile code depending on 2.0 libraries. lupus -- ----------------------------------------------------------------- lupus at debian.org debian/rules lupus at ximian.com Monkeys do it better From robertj at gmx.net Thu Oct 19 13:34:25 2006 From: robertj at gmx.net (Robert Jordan) Date: Thu, 19 Oct 2006 19:34:25 +0200 Subject: [Mono-list] Compile Error (System.Diagnostics.Stopwatch) In-Reply-To: References: Message-ID: Tim Riley wrote: > Using: Mono 1.1.18, Windows XP > > A buddy of mine wrote a small C# app for testing the speed of text > reversing > loops to find which method is most efficient. It compiles fine using .NET > 2.0 but when I try to compile it using Mono 1.1.18 I get the following two > errors. > > reverse_test_mono.cs(99,16): error CS0246: The type or namespace name > 'Stopwatch' could not be found. Are you missing a using directive or an > assembly reference? > reverse_test_mono.cs(99,44): error CS0246: The type or namespace name > 'Stopwatch' could not be found. Are you missing a using directive or an > assembly reference? > > I am issuing this command to compile: > mcs -reference:System reverse_test_mono.cs Mcs targets the 1.1 profile. Use gmcs instead. Robert From steflik at binghamton.edu Thu Oct 19 15:05:42 2006 From: steflik at binghamton.edu (Dick Steflik) Date: Thu, 19 Oct 2006 15:05:42 -0400 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient Message-ID: <4537CC86.9040804@binghamton.edu> I can get Mono to build a command line program using MySql (and it runs nicely) but I have to tell the C# compiler where the dll is. How do I do this for ASP.NET using C#. I'm using Mono on FC5 with Apache and Mono 1.1.17.... Dick Steflik Binghamton University From massi at ximian.com Thu Oct 19 17:05:51 2006 From: massi at ximian.com (Massimiliano Mantione) Date: Thu, 19 Oct 2006 23:05:51 +0200 Subject: [Mono-list] a GTK# application multi platform In-Reply-To: References: <1161247861.4183.5.camel@matrix.ximian.com> Message-ID: <1161291951.4550.7.camel@matrix.ximian.com> On Thu, 2006-10-19 at 15:32 +0200, enjoylife at tele2.fr wrote: > but my problem is when the app is executed on the MS CLR because the > CLR can found in the GAC the libs like libgtk-win32.dll, atk, glib ... I guess you mean "the CLR cannot find the libs...". And this is why I suggested to use the GTK# installer that puts the GTK# library in the MS GAC. > But if i understood, normally when you install mono on Windows, this > libraries are recorded in the MS GAC, isn't it ? AFAIK, no: Mono has its own GAC. Ciao, Massi From robertj at gmx.net Thu Oct 19 17:02:56 2006 From: robertj at gmx.net (Robert Jordan) Date: Thu, 19 Oct 2006 23:02:56 +0200 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <4537CC86.9040804@binghamton.edu> References: <4537CC86.9040804@binghamton.edu> Message-ID: Dick Steflik wrote: > I can get Mono to build a command line program using MySql (and it runs > nicely) but I have to tell the C# compiler where the dll is. How do I > do this for ASP.NET using C#. > I'm using Mono on FC5 with Apache and Mono 1.1.17.... Copy the MySql assembly into the bin folder of your ASP.NET app or install the assembly into the GAC and specify the assembly name in the web.config: You can obtain the full assembly name with gacutil -l | grep MySql Robert From mmorano at mikeandwan.us Thu Oct 19 17:10:41 2006 From: mmorano at mikeandwan.us (Mike Morano) Date: Thu, 19 Oct 2006 17:10:41 -0400 Subject: [Mono-list] Mono Meeting Presentation Materials Message-ID: <1161292241.11877.28.camel@mail.mikeandwan.us> Hello, Will the slides, materials, or videos of the presentations at the mono meeting be posted after the event? I did not see any indication either way on the mono-project site or the event wiki. I was desperately hoping to attend, but will not be able due to schedule constraints at the office. Thanks, Mike From robertj at gmx.net Thu Oct 19 19:50:54 2006 From: robertj at gmx.net (Robert Jordan) Date: Fri, 20 Oct 2006 01:50:54 +0200 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: References: <4537CC86.9040804@binghamton.edu> Message-ID: Hi, You have to create web.config in the directory of the ASP.NET application. Have a look at the test site that that gets installed into $prefix/lib/xsp/test. MySql.Data.MySqlClient is just a namespace. The assembly is MySql.Data. Robert steflik wrote: > Robert, > I'm new at this, where do I find the web.config file, I've been looking > around and it isn't obvious. Also, my the impot that is failing is > "import MySql.Data.MySqlClient"; is that the assembly you are referring to? > > Dick Steflik > > Robert Jordan wrote: > >> Dick Steflik wrote: >> >> >>> I can get Mono to build a command line program using MySql (and it >>> runs nicely) but I have to tell the C# compiler where the dll is. >>> How do I do this for ASP.NET using C#. >>> I'm using Mono on FC5 with Apache and Mono 1.1.17.... >>> >> >> Copy the MySql assembly into the bin folder of your ASP.NET app >> or install the assembly into the GAC and specify the assembly name >> in the web.config: >> >> >> >> >> >> >> >> >> >> >> >> You can obtain the full assembly name with >> >> gacutil -l | grep MySql >> >> Robert >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> >> From rjdyer at vcu.edu Thu Oct 19 20:10:06 2006 From: rjdyer at vcu.edu (Rodney J. Dyer) Date: Thu, 19 Oct 2006 20:10:06 -0400 Subject: [Mono-list] TreeView question In-Reply-To: <1161173241.5459.15.camel@laptop1> References: <1161170907.16152.5.camel@localhost> <1161173241.5459.15.camel@laptop1> Message-ID: <453813DE.60904@vcu.edu> Carlos Ble wrote: > http://www.mono-project.com/GtkSharp_TreeView_Tutorial > > Sure, I already found this, but what I am struggling with are issues such as how to: - Select a column of data - Make it so that if you tab from a cell you move one cell to the right and return will move one line down - When I override the Edited event from the CellRenderer, I would like to know which column it is currently located. The only things passed to the func are the Gtk.EditedArgs and the Gtk.CellRendererText. While the EditedArgs has a path, it only gives me the row being edited and not the column. I'm using a data class that keeps values by a Hashtable whose keys are set by the column headers (it is ok people will not have columns with the same name). How can I determine which column is being edited (The tree View Column only emits on Clicked). Can I get a reference to the TreeViewColumn that I added the cell to during construction?). It appears that Gtk.UserData is depreciated. I can see that using TreeView.GetCursor() can be called from within the EditedFunc, but this seems a bit kludgy and I must be missing something here. -- Rodney J. Dyer, PhD Department of Biology Virginia Commonwealth University http://dyerlab.bio.vcu.edu From fxjrlists at yahoo.com.br Fri Oct 20 00:47:27 2006 From: fxjrlists at yahoo.com.br (Francisco Figueiredo Jr.) Date: Fri, 20 Oct 2006 02:47:27 -0200 Subject: [Mono-list] Npgsql svn updated Message-ID: <453854DF.3020005@yahoo.com.br> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all! I just updated Npgsql 1.0 to svn. Revision: 66825 Please, give it a try and let me know if you got any problems. Thanks for your patience. - -- Regards, Francisco Figueiredo Jr. http://fxjr.blogspot.com Npgsql Lead Developer http://pgfoundry.org/projects/npgsql Mono Project Contributor http://www.go-mono.com MonoBrasil Project Founder Member http://monobrasil.softwarelivre.org - -- - Would you tell me, please, which way I ought to go from here? - That depends a good deal on where you want to get to. -- Lewis Carroll "Alice's Adventures in Wonderland" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRThU3v7iFmsNzeXfAQIClAf/eDf7jFWixmabGMBvGtp8u74UII8XSalI 6y13KDqzcFQ7AKPYaiu1VM0BkptiHAd8yo938uroWzoeIL+jG02ohgS9SSSqoCDe 5DzNnVR2zoxgphyfTbox4M+oHSsnJA+N7DSC7VW4P2MVkuQU6bOSzxAKcjwIYI9Q oTMKjWoo4WJSLcBwl780QL/3sYLBjfg0JQXKuemwUUpuafxEVmYtOkA8K71oWamy kAYGkjF+17iYGs7uSqS/lAKNfKIYiLdke+UPlu4/0Exhy5N761pNX4h7rDkJa0rE 4Hh3lGWPZA67V3WKE4f7tk3weBfp3lZ3eOaaAnc2848cimKezLoTKg== =N6Tx -----END PGP SIGNATURE----- _______________________________________________________ Voc? quer respostas para suas perguntas? Ou voc? sabe muito e quer compartilhar seu conhecimento? Experimente o Yahoo! Respostas ! http://br.answers.yahoo.com/ From enjoylife at tele2.fr Fri Oct 20 02:53:40 2006 From: enjoylife at tele2.fr (Pierro) Date: Fri, 20 Oct 2006 08:53:40 +0200 Subject: [Mono-list] a GTK# application multi platform In-Reply-To: <1161291951.4550.7.camel@matrix.ximian.com> References: <1161247861.4183.5.camel@matrix.ximian.com> <1161291951.4550.7.camel@matrix.ximian.com> Message-ID: <45387274.2070809@tele2.fr> Massimiliano Mantione a ?crit : > On Thu, 2006-10-19 at 15:32 +0200, enjoylife at tele2.fr wrote: > >> but my problem is when the app is executed on the MS CLR because the >> CLR can found in the GAC the libs like libgtk-win32.dll, atk, glib ... >> > > > I guess you mean "the CLR cannot find the libs...". > And this is why I suggested to use the GTK# installer that puts the > GTK# library in the MS GAC. > > >> But if i understood, normally when you install mono on Windows, this >> libraries are recorded in the MS GAC, isn't it ? >> > > AFAIK, no: Mono has its own GAC. > Yes, i know this, but in fact i thunk the Mono installer puts the GTK# library in the MS GAC like GTK# installer. > Ciao, > Massi > > > > Thanks for eveybody From carlosble at shidix.com Fri Oct 20 05:43:27 2006 From: carlosble at shidix.com (Carlos Ble) Date: Fri, 20 Oct 2006 10:43:27 +0100 Subject: [Mono-list] TreeView question In-Reply-To: <453813DE.60904@vcu.edu> References: <1161170907.16152.5.camel@localhost> <1161173241.5459.15.camel@laptop1> <453813DE.60904@vcu.edu> Message-ID: <1161337408.5628.6.camel@laptop1> Hi, I have never struggled with this TreeView feature but is possible that your approach could be wrong or not the best one. You can store objects in cells so you can design your own classes with events and all features you need to handle a change in an object or whatever. The hashtable you have sounds no good. Regards El jue, 19-10-2006 a las 20:10 -0400, Rodney J. Dyer escribi?: > Carlos Ble wrote: > > http://www.mono-project.com/GtkSharp_TreeView_Tutorial > > > > > Sure, I already found this, but what I am struggling with are issues > such as how to: > > - Select a column of data > - Make it so that if you tab from a cell you move one cell to the right > and return will move one line down > - When I override the Edited event from the CellRenderer, I would like > to know which column it is currently located. The only things passed to > the func are the Gtk.EditedArgs and the Gtk.CellRendererText. While the > EditedArgs has a path, it only gives me the row being edited and not the > column. I'm using a data class that keeps values by a Hashtable whose > keys are set by the column headers (it is ok people will not have > columns with the same name). How can I determine which column is being > edited (The tree View Column only emits on Clicked). Can I get a > reference to the TreeViewColumn that I added the cell to during > construction?). It appears that Gtk.UserData is depreciated. I can see > that using TreeView.GetCursor() can be called from within the > EditedFunc, but this seems a bit kludgy and I must be missing something > here. > > -- Rodney J. Dyer, PhD Department of Biology Virginia Commonwealth > University http://dyerlab.bio.vcu.edu > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list -- Carlos Ble Shidix Technologies www.shidix.com/carlosble From damien.churchill at ukplc.net Fri Oct 20 05:54:19 2006 From: damien.churchill at ukplc.net (Damien Churchill) Date: Fri, 20 Oct 2006 10:54:19 +0100 Subject: [Mono-list] MySql Connector Message-ID: I was wondering has anyone else has experienced this: Unhandled Exception: MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connection which must be closed first. at MySql.Data.MySqlClient.MySqlCommand.CheckState () [0x00000] at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior behavior) [0x00000] at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader () [0x00000] at (wrapper remoting-invoke-with-check) MySql.Data.MySqlClient.MySqlCommand:ExecuteReader () at MySql.Data.MySqlClient.Driver.ReportWarnings () [0x00000] I receive this error when trying to execute a stored procedure (other SQL statements work fine, even other stored procedures). It works fine on windows with .NET but on mono (windows or linux) I receive that error. If anyone has any help or tips that would be much appreciated. Cheers in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061020/c740c737/attachment.html From robertj at gmx.net Fri Oct 20 06:28:18 2006 From: robertj at gmx.net (Robert Jordan) Date: Fri, 20 Oct 2006 12:28:18 +0200 Subject: [Mono-list] MySql Connector In-Reply-To: References: Message-ID: Damien Churchill wrote: > I was wondering has anyone else has experienced this: > > Unhandled Exception: MySql.Data.MySqlClient.MySqlException: There is > already an open DataReader associated with this Connection which must be > closed first. > at MySql.Data.MySqlClient.MySqlCommand.CheckState () [0x00000] > at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior > behavior) [0x00000] > at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader () [0x00000] > at (wrapper remoting-invoke-with-check) > MySql.Data.MySqlClient.MySqlCommand:ExecuteReader () > at MySql.Data.MySqlClient.Driver.ReportWarnings () [0x00000] > > I receive this error when trying to execute a stored procedure (other > SQL statements work fine, even other stored procedures). It works fine > on windows with .NET but on mono (windows or linux) I receive that > error. You're not closing the previous reader. It doesn't fail on MS.NET because their garbage collector is probably disposing the reader faster than Mono's. Robert From damien.churchill at ukplc.net Fri Oct 20 06:40:33 2006 From: damien.churchill at ukplc.net (Damien Churchill) Date: Fri, 20 Oct 2006 11:40:33 +0100 Subject: [Mono-list] FW: MySql Connector Message-ID: Yeah I would have thought that as well, but that's on a single statement. I wrote a simple console program to test it. using System; using System.Data; using System.Collections.Generic; using System.Text; using MySql.Data.MySqlClient; namespace mysqltest { class Program { static void Main(string[] args) { string connectionString = "Server=***.***.***.***;" + "Database=********;" + "User ID=********;" + "Password=********;" + "Allow Zero Datetime=true"; MySqlConnection dbConn = new MySqlConnection(connectionString); dbConn.Open(); MySqlDataAdapter da = new MySqlDataAdapter(); MySqlCommand dbcmd = dbConn.CreateCommand(); dbcmd.CommandText = "CALL spUserPrivileges(1);"; DataSet ds = new DataSet(); da.SelectCommand = dbcmd; da.Fill(ds); dbcmd = null; da = null; Console.WriteLine(ds.Tables[0].Rows.Count); Console.Read(); } } } That's all it does. It works fine with other selects, and other stored procedures, just not that one. -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan Sent: 20 October 2006 11:28 To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] MySql Connector Damien Churchill wrote: > I was wondering has anyone else has experienced this: > > Unhandled Exception: MySql.Data.MySqlClient.MySqlException: There is > already an open DataReader associated with this Connection which must be > closed first. > at MySql.Data.MySqlClient.MySqlCommand.CheckState () [0x00000] > at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior > behavior) [0x00000] > at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader () [0x00000] > at (wrapper remoting-invoke-with-check) > MySql.Data.MySqlClient.MySqlCommand:ExecuteReader () > at MySql.Data.MySqlClient.Driver.ReportWarnings () [0x00000] > > I receive this error when trying to execute a stored procedure (other > SQL statements work fine, even other stored procedures). It works fine > on windows with .NET but on mono (windows or linux) I receive that > error. You're not closing the previous reader. It doesn't fail on MS.NET because their garbage collector is probably disposing the reader faster than Mono's. Robert _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From pbradley at uwic.ac.uk Fri Oct 20 06:48:00 2006 From: pbradley at uwic.ac.uk (Bradley, Peter) Date: Fri, 20 Oct 2006 11:48:00 +0100 Subject: [Mono-list] FW: MySql Connector Message-ID: <033E2875D2616747AA6FC2C0DF8072AC01079FF5@mailll02.internal.uwic.ac.uk> If I remember correctly, if you use a DataAdapter you don't have to worry about opening or closing the connection. The adapter does that for you: but if you do open() the connection, you absolutely must close() it. With a DataReader, you must both open and close the connection. HTH Peter -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Damien Churchill Sent: 20 October 2006 11:41 To: Mono-list at lists.ximian.com Subject: [Mono-list] FW: MySql Connector Yeah I would have thought that as well, but that's on a single statement. I wrote a simple console program to test it. using System; using System.Data; using System.Collections.Generic; using System.Text; using MySql.Data.MySqlClient; namespace mysqltest { class Program { static void Main(string[] args) { string connectionString = "Server=***.***.***.***;" + "Database=********;" + "User ID=********;" + "Password=********;" + "Allow Zero Datetime=true"; MySqlConnection dbConn = new MySqlConnection(connectionString); dbConn.Open(); MySqlDataAdapter da = new MySqlDataAdapter(); MySqlCommand dbcmd = dbConn.CreateCommand(); dbcmd.CommandText = "CALL spUserPrivileges(1);"; DataSet ds = new DataSet(); da.SelectCommand = dbcmd; da.Fill(ds); dbcmd = null; da = null; Console.WriteLine(ds.Tables[0].Rows.Count); Console.Read(); } } } That's all it does. It works fine with other selects, and other stored procedures, just not that one. -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan Sent: 20 October 2006 11:28 To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] MySql Connector Damien Churchill wrote: > I was wondering has anyone else has experienced this: > > Unhandled Exception: MySql.Data.MySqlClient.MySqlException: There is > already an open DataReader associated with this Connection which must be > closed first. > at MySql.Data.MySqlClient.MySqlCommand.CheckState () [0x00000] > at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior > behavior) [0x00000] > at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader () [0x00000] > at (wrapper remoting-invoke-with-check) > MySql.Data.MySqlClient.MySqlCommand:ExecuteReader () > at MySql.Data.MySqlClient.Driver.ReportWarnings () [0x00000] > > I receive this error when trying to execute a stored procedure (other > SQL statements work fine, even other stored procedures). It works fine > on windows with .NET but on mono (windows or linux) I receive that > error. You're not closing the previous reader. It doesn't fail on MS.NET because their garbage collector is probably disposing the reader faster than Mono's. 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 damien.churchill at ukplc.net Fri Oct 20 06:54:02 2006 From: damien.churchill at ukplc.net (Damien Churchill) Date: Fri, 20 Oct 2006 11:54:02 +0100 Subject: [Mono-list] FW: MySql Connector Message-ID: >From the mysql site: public DataSet SelectRows(DataSet dataset,string connection,string query) { MySqlConnection conn = new MySqlConnection(connection); MySqlDataAdapter adapter = new MySqlDataAdapter(); adapter.SelectCommand = new MySqlCommand(query, conn); adapter.Fill(dataset); return dataset; } I've just modified my console program to resemble that. Receive the same error. It works fine if it's just a 'SELECT * FROM table;' but when I call that procedure it falls over. This is what's puzzling me. -----Original Message----- From: Bradley, Peter [mailto:pbradley at uwic.ac.uk] Sent: 20 October 2006 11:48 To: Damien Churchill; Mono-list at lists.ximian.com Subject: RE: [Mono-list] FW: MySql Connector If I remember correctly, if you use a DataAdapter you don't have to worry about opening or closing the connection. The adapter does that for you: but if you do open() the connection, you absolutely must close() it. With a DataReader, you must both open and close the connection. HTH Peter -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Damien Churchill Sent: 20 October 2006 11:41 To: Mono-list at lists.ximian.com Subject: [Mono-list] FW: MySql Connector Yeah I would have thought that as well, but that's on a single statement. I wrote a simple console program to test it. using System; using System.Data; using System.Collections.Generic; using System.Text; using MySql.Data.MySqlClient; namespace mysqltest { class Program { static void Main(string[] args) { string connectionString = "Server=***.***.***.***;" + "Database=********;" + "User ID=********;" + "Password=********;" + "Allow Zero Datetime=true"; MySqlConnection dbConn = new MySqlConnection(connectionString); dbConn.Open(); MySqlDataAdapter da = new MySqlDataAdapter(); MySqlCommand dbcmd = dbConn.CreateCommand(); dbcmd.CommandText = "CALL spUserPrivileges(1);"; DataSet ds = new DataSet(); da.SelectCommand = dbcmd; da.Fill(ds); dbcmd = null; da = null; Console.WriteLine(ds.Tables[0].Rows.Count); Console.Read(); } } } That's all it does. It works fine with other selects, and other stored procedures, just not that one. -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan Sent: 20 October 2006 11:28 To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] MySql Connector Damien Churchill wrote: > I was wondering has anyone else has experienced this: > > Unhandled Exception: MySql.Data.MySqlClient.MySqlException: There is > already an open DataReader associated with this Connection which must be > closed first. > at MySql.Data.MySqlClient.MySqlCommand.CheckState () [0x00000] > at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior > behavior) [0x00000] > at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader () [0x00000] > at (wrapper remoting-invoke-with-check) > MySql.Data.MySqlClient.MySqlCommand:ExecuteReader () > at MySql.Data.MySqlClient.Driver.ReportWarnings () [0x00000] > > I receive this error when trying to execute a stored procedure (other > SQL statements work fine, even other stored procedures). It works fine > on windows with .NET but on mono (windows or linux) I receive that > error. You're not closing the previous reader. It doesn't fail on MS.NET because their garbage collector is probably disposing the reader faster than Mono's. 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 pbradley at uwic.ac.uk Fri Oct 20 08:03:51 2006 From: pbradley at uwic.ac.uk (Bradley, Peter) Date: Fri, 20 Oct 2006 13:03:51 +0100 Subject: [Mono-list] FW: MySql Connector Message-ID: <033E2875D2616747AA6FC2C0DF8072AC0107A032@mailll02.internal.uwic.ac.uk> Pass, Damien. That has me beat. I hope someone else will be able to help. Peter -----Original Message----- From: Damien Churchill [mailto:damien.churchill at ukplc.net] Sent: 20 October 2006 11:54 To: Bradley, Peter; Mono-list at lists.ximian.com Subject: RE: [Mono-list] FW: MySql Connector >From the mysql site: public DataSet SelectRows(DataSet dataset,string connection,string query) { MySqlConnection conn = new MySqlConnection(connection); MySqlDataAdapter adapter = new MySqlDataAdapter(); adapter.SelectCommand = new MySqlCommand(query, conn); adapter.Fill(dataset); return dataset; } I've just modified my console program to resemble that. Receive the same error. It works fine if it's just a 'SELECT * FROM table;' but when I call that procedure it falls over. This is what's puzzling me. -----Original Message----- From: Bradley, Peter [mailto:pbradley at uwic.ac.uk] Sent: 20 October 2006 11:48 To: Damien Churchill; Mono-list at lists.ximian.com Subject: RE: [Mono-list] FW: MySql Connector If I remember correctly, if you use a DataAdapter you don't have to worry about opening or closing the connection. The adapter does that for you: but if you do open() the connection, you absolutely must close() it. With a DataReader, you must both open and close the connection. HTH Peter -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Damien Churchill Sent: 20 October 2006 11:41 To: Mono-list at lists.ximian.com Subject: [Mono-list] FW: MySql Connector Yeah I would have thought that as well, but that's on a single statement. I wrote a simple console program to test it. using System; using System.Data; using System.Collections.Generic; using System.Text; using MySql.Data.MySqlClient; namespace mysqltest { class Program { static void Main(string[] args) { string connectionString = "Server=***.***.***.***;" + "Database=********;" + "User ID=********;" + "Password=********;" + "Allow Zero Datetime=true"; MySqlConnection dbConn = new MySqlConnection(connectionString); dbConn.Open(); MySqlDataAdapter da = new MySqlDataAdapter(); MySqlCommand dbcmd = dbConn.CreateCommand(); dbcmd.CommandText = "CALL spUserPrivileges(1);"; DataSet ds = new DataSet(); da.SelectCommand = dbcmd; da.Fill(ds); dbcmd = null; da = null; Console.WriteLine(ds.Tables[0].Rows.Count); Console.Read(); } } } That's all it does. It works fine with other selects, and other stored procedures, just not that one. -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan Sent: 20 October 2006 11:28 To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] MySql Connector Damien Churchill wrote: > I was wondering has anyone else has experienced this: > > Unhandled Exception: MySql.Data.MySqlClient.MySqlException: There is > already an open DataReader associated with this Connection which must be > closed first. > at MySql.Data.MySqlClient.MySqlCommand.CheckState () [0x00000] > at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior > behavior) [0x00000] > at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader () [0x00000] > at (wrapper remoting-invoke-with-check) > MySql.Data.MySqlClient.MySqlCommand:ExecuteReader () > at MySql.Data.MySqlClient.Driver.ReportWarnings () [0x00000] > > I receive this error when trying to execute a stored procedure (other > SQL statements work fine, even other stored procedures). It works fine > on windows with .NET but on mono (windows or linux) I receive that > error. You're not closing the previous reader. It doesn't fail on MS.NET because their garbage collector is probably disposing the reader faster than Mono's. 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 monodanmorg at yahoo.com Fri Oct 20 09:38:59 2006 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Fri, 20 Oct 2006 06:38:59 -0700 (PDT) Subject: [Mono-list] FW: MySql Connector In-Reply-To: Message-ID: <20061020133859.94029.qmail@web30810.mail.mud.yahoo.com> Before you set your data adapter and command to null, try using Dispose(). I don't have the docs in front of me right now to see if data adapter has a Dispose(), but I do know command does. --- Damien Churchill wrote: > Yeah I would have thought that as well, but that's > on a single > statement. I wrote a simple console program to test > it. > > using System; > using System.Data; > using System.Collections.Generic; > using System.Text; > using MySql.Data.MySqlClient; > namespace mysqltest > { > class Program > { > static void Main(string[] args) > { > string connectionString = > "Server=***.***.***.***;" + > "Database=********;" + > "User ID=********;" + > "Password=********;" + > "Allow Zero Datetime=true"; > > MySqlConnection dbConn = new > MySqlConnection(connectionString); > dbConn.Open(); > > MySqlDataAdapter da = new > MySqlDataAdapter(); > MySqlCommand dbcmd = > dbConn.CreateCommand(); > dbcmd.CommandText = "CALL > spUserPrivileges(1);"; > DataSet ds = new DataSet(); > > da.SelectCommand = dbcmd; > da.Fill(ds); > > dbcmd = null; > da = null; > > > Console.WriteLine(ds.Tables[0].Rows.Count); > Console.Read(); > } > } > } > > That's all it does. It works fine with other > selects, and other stored > procedures, just not that one. > > > -----Original Message----- > From: mono-list-bounces at lists.ximian.com > [mailto:mono-list-bounces at lists.ximian.com] On > Behalf Of Robert Jordan > Sent: 20 October 2006 11:28 > To: Mono-list at lists.ximian.com > Subject: Re: [Mono-list] MySql Connector > > Damien Churchill wrote: > > I was wondering has anyone else has experienced > this: > > > > Unhandled Exception: > MySql.Data.MySqlClient.MySqlException: There is > > already an open DataReader associated with this > Connection which must > be > > closed first. > > at > MySql.Data.MySqlClient.MySqlCommand.CheckState () > [0x00000] > > at > MySql.Data.MySqlClient.MySqlCommand.ExecuteReader > (CommandBehavior > > behavior) [0x00000] > > at > MySql.Data.MySqlClient.MySqlCommand.ExecuteReader () > [0x00000] > > at (wrapper remoting-invoke-with-check) > > MySql.Data.MySqlClient.MySqlCommand:ExecuteReader > () > > at MySql.Data.MySqlClient.Driver.ReportWarnings > () [0x00000] > > > > I receive this error when trying to execute a > stored procedure (other > > SQL statements work fine, even other stored > procedures). It works fine > > on windows with .NET but on mono (windows or > linux) I receive that > > error. > > You're not closing the previous reader. It doesn't > fail on MS.NET > because their garbage collector is probably > disposing the reader > faster than Mono's. > > 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 > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From rykr at comcast.net Fri Oct 20 10:35:08 2006 From: rykr at comcast.net (Reggie Burnett) Date: Fri, 20 Oct 2006 09:35:08 -0500 Subject: [Mono-list] MySql Connector In-Reply-To: References: Message-ID: <00c901c6f454$f6b3da50$e41b8ef0$@net> Damien This has recently been fixed. The problem here is that your sproc is generating warnings and the connector is trying to use a datareader to read those warnings and report them to you. In this case, the connector is not correctly marking the connection as free. What version of the connector are you using? From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Damien Churchill Sent: Friday, October 20, 2006 4:54 AM To: Mono-list at lists.ximian.com Subject: [Mono-list] MySql Connector I was wondering has anyone else has experienced this: Unhandled Exception: MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connection which must be closed first. at MySql.Data.MySqlClient.MySqlCommand.CheckState () [0x00000] at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior behavior) [0x00000] at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader () [0x00000] at (wrapper remoting-invoke-with-check) MySql.Data.MySqlClient.MySqlCommand:ExecuteReader () at MySql.Data.MySqlClient.Driver.ReportWarnings () [0x00000] I receive this error when trying to execute a stored procedure (other SQL statements work fine, even other stored procedures). It works fine on windows with .NET but on mono (windows or linux) I receive that error. If anyone has any help or tips that would be much appreciated. Cheers in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061020/7559325a/attachment.html From damien.churchill at ukplc.net Fri Oct 20 10:36:43 2006 From: damien.churchill at ukplc.net (Damien Churchill) Date: Fri, 20 Oct 2006 15:36:43 +0100 Subject: [Mono-list] MySql Connector Message-ID: I've tried using 1.0.7 and 5.0.1. ________________________________ From: Reggie Burnett [mailto:rykr at comcast.net] Sent: 20 October 2006 15:35 To: Damien Churchill; Mono-list at lists.ximian.com Subject: RE: [Mono-list] MySql Connector Damien This has recently been fixed. The problem here is that your sproc is generating warnings and the connector is trying to use a datareader to read those warnings and report them to you. In this case, the connector is not correctly marking the connection as free. What version of the connector are you using? From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Damien Churchill Sent: Friday, October 20, 2006 4:54 AM To: Mono-list at lists.ximian.com Subject: [Mono-list] MySql Connector I was wondering has anyone else has experienced this: Unhandled Exception: MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connection which must be closed first. at MySql.Data.MySqlClient.MySqlCommand.CheckState () [0x00000] at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior behavior) [0x00000] at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader () [0x00000] at (wrapper remoting-invoke-with-check) MySql.Data.MySqlClient.MySqlCommand:ExecuteReader () at MySql.Data.MySqlClient.Driver.ReportWarnings () [0x00000] I receive this error when trying to execute a stored procedure (other SQL statements work fine, even other stored procedures). It works fine on windows with .NET but on mono (windows or linux) I receive that error. If anyone has any help or tips that would be much appreciated. Cheers in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061020/668b863c/attachment-0001.html From rykr at comcast.net Fri Oct 20 11:11:22 2006 From: rykr at comcast.net (Reggie Burnett) Date: Fri, 20 Oct 2006 10:11:22 -0500 Subject: [Mono-list] MySql Connector In-Reply-To: References: Message-ID: <011501c6f45a$043c9130$0cb5b390$@net> 1.0.8 RC has been released but the announcement has not been sent out yet and the web page has not been updated. We will be making the announcement today. From: Damien Churchill [mailto:damien.churchill at ukplc.net] Sent: Friday, October 20, 2006 9:37 AM To: Reggie Burnett; Mono-list at lists.ximian.com Subject: RE: [Mono-list] MySql Connector I've tried using 1.0.7 and 5.0.1. _____ From: Reggie Burnett [mailto:rykr at comcast.net] Sent: 20 October 2006 15:35 To: Damien Churchill; Mono-list at lists.ximian.com Subject: RE: [Mono-list] MySql Connector Damien This has recently been fixed. The problem here is that your sproc is generating warnings and the connector is trying to use a datareader to read those warnings and report them to you. In this case, the connector is not correctly marking the connection as free. What version of the connector are you using? From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Damien Churchill Sent: Friday, October 20, 2006 4:54 AM To: Mono-list at lists.ximian.com Subject: [Mono-list] MySql Connector I was wondering has anyone else has experienced this: Unhandled Exception: MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connection which must be closed first. at MySql.Data.MySqlClient.MySqlCommand.CheckState () [0x00000] at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior behavior) [0x00000] at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader () [0x00000] at (wrapper remoting-invoke-with-check) MySql.Data.MySqlClient.MySqlCommand:ExecuteReader () at MySql.Data.MySqlClient.Driver.ReportWarnings () [0x00000] I receive this error when trying to execute a stored procedure (other SQL statements work fine, even other stored procedures). It works fine on windows with .NET but on mono (windows or linux) I receive that error. If anyone has any help or tips that would be much appreciated. Cheers in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061020/6b89be32/attachment.html From cole-anstey at ntlworld.com Fri Oct 20 14:39:43 2006 From: cole-anstey at ntlworld.com (cole-anstey at ntlworld.com) Date: Fri, 20 Oct 2006 18:39:43 +0000 Subject: [Mono-list] Raising GAPI bugs Message-ID: <20061020183943.MERC23938.aamtaout02-winn.ispmail.ntl.com@smtp.ntlworld.com> I believe I have found a bug to do with the gapi2-parser, so this will be the first mono related bug I have raised. Now it is Friday night and I've had a couple of pints of cider so excuse me if this is daft. I'm not 100% sure about where to raise bugs for mono. Do I raise them at https://bugzilla.novell.com (which does not appear to mention mono) or via the link at http://mono-project.com/Contributing which redirects you to http://bugzilla.ximian.com/ What confused me is the ximian sites OS versions only go up to SUSE 9.2. I'm on OpenSUSE 10.1. Also Fedora is missing, so this site appears to have old information. Regards, have a good weekend ----------------------------------------- Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information From michael at synthesyssolutions.com Fri Oct 20 14:58:53 2006 From: michael at synthesyssolutions.com (Michael Schurter) Date: Fri, 20 Oct 2006 13:58:53 -0500 Subject: [Mono-list] Raising GAPI bugs In-Reply-To: <20061020183943.MERC23938.aamtaout02-winn.ispmail.ntl.com@smtp.ntlworld.com> References: <20061020183943.MERC23938.aamtaout02-winn.ispmail.ntl.com@smtp.ntlworld.com> Message-ID: <45391C6D.1040506@synthesyssolutions.com> cole-anstey at ntlworld.com wrote: > I believe I have found a bug to do with the gapi2-parser, so this > will be the first mono related bug I have raised. > > Now it is Friday night and I've had a couple of pints of cider so > excuse me if this is daft. I'm not 100% sure about where to raise > bugs for mono. Mmmm... Cider... :) > Do I raise them at https://bugzilla.novell.com (which does not appear > to mention mono) Nope. > or via the link at http://mono-project.com/Contributing which > redirects you to http://bugzilla.ximian.com/ Bingo. > What confused me is the ximian sites OS versions only go up to SUSE > 9.2. I'm on OpenSUSE 10.1. Also Fedora is missing, so this site > appears to have old information. Don't worry about it. OS version isn't as important as the version of Mono. > Regards, have a good weekend You too! -- Michael Schurter -- Michael Schurter Synthesys Solutions From rykr at comcast.net Fri Oct 20 16:06:01 2006 From: rykr at comcast.net (Reggie Burnett) Date: Fri, 20 Oct 2006 15:06:01 -0500 Subject: [Mono-list] MySQL Connector/Net 1.0.8 RC has been released. Message-ID: <01df01c6f483$2a997130$7fcc5390$@net> Hi, MySQL Connector/Net 1.0.8 RC has been released. MySQL Connector/Net is an all-managed ADO.Net provider for MySQL. While this release is suitable for any version of MySQL, it is strongly encouraged that this release not be used on any production data. ** IMPORTANT ** We are making this release available as an RC because there were significant changes made to the provider beyond just simple bug fixes. Due to this, we felt it prudent to ask for feedback from the community before declaring the provider safe for production use. We plan to release the next version (1.0.9) as GA within the next 2-3 weeks incorporating any feedback we get from the community. ** IMPORTANT ** It is now available in source and binary form from the Connector/Net download pages at http://dev.mysql.com/downloads/connector/net/1.0.html and mirror sites (note that not all mirror sites may be up to date at this point of time - if you can't find this version on some mirror, please try again later or choose another download site.) This release includes many bug fixes along with the following enhancements/changes: * Implemented a stored procedure cache. By default, the connector caches the metadata for the last 25 procedures that are seen. You can change the number of procedures that are cached by using the 'procedure cache=' connection string setting. You can disable the procedure cache by setting a zero size. * Executing stored procedures now no longer requires the user to have select privileges on the mysql.proc table. * Shared memory connections now work as expected. * Queries containing a large number of parameters now run many times faster than before. As an example of the performance gains seen, an internal testing app that needed more than 30 minutes to execute using 1.0.7, completes in less than 8 seconds using 1.0.8. * We are no longer providing binaries compiled with .NET 1.0. We are doing this for a couple of reasons. First, we believe the vast majority of our users are using .NET 1.1 or 2.0. Also, removing .NET 1.0 binaries reduces the number of frameworks we have to test thereby reducing the time it takes to verify releases. If 1.0 is needed by a sufficiently large number of users, we are willing to re-evaluate this decision. * ICSharpCode ZipLib is no longer used by the connector and is no longer being distributed with it. The installer for this release installs the assembly into the Global Assembly Cache (GAC) without giving you an option to not do this. In the GA release (1.0.9), the installer will include an option to not register the provider in the GAC. Also, the installer attempts to install both 1.1 and 2.0 binaries into the respective GAC. If you do not have both frameworks installed, the installer will give an error. This will be fixed in the final product but for now you can work around this by doing a custom install and choosing the version of the driver for the framework you want to install. Thank you for checking out this release of Connector/Net. -Reggie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061020/2b479806/attachment-0001.html From robertj at gmx.net Fri Oct 20 17:01:53 2006 From: robertj at gmx.net (Robert Jordan) Date: Fri, 20 Oct 2006 23:01:53 +0200 Subject: [Mono-list] MySQL Connector/Net 1.0.8 RC has been released. In-Reply-To: <01df01c6f483$2a997130$7fcc5390$@net> References: <01df01c6f483$2a997130$7fcc5390$@net> Message-ID: Reggie Burnett wrote: > MySQL Connector/Net 1.0.8 RC has been released. MySQL Connector/Net is an > all-managed ADO.Net provider for MySQL. While this release is suitable for > any version of MySQL, it is strongly encouraged that this release not be > used on any production data. BTW, it would be nice if the new release would fix this bug: http://bugs.mysql.com/bug.php?id=17338 The bug is closed as "can't repeat", which can't be true because it's a classical race condition (double initialization w/out memory barrier). It can be reproduced by calling MySqlConnection.Open () with connection pooling turned on from several threads. See the attached patch. Robert -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: MySqlPoolManager.cs.diff Url: http://lists.ximian.com/pipermail/mono-list/attachments/20061020/7c2f0e74/attachment.pl From rjdyer at vcu.edu Fri Oct 20 17:04:36 2006 From: rjdyer at vcu.edu (Rodney J. Dyer) Date: Fri, 20 Oct 2006 17:04:36 -0400 Subject: [Mono-list] More TreeView Message-ID: <453939E4.8010003@vcu.edu> Another question regarding the use of a TreeView. I'm using it as a spreadsheet with a ListStore model and I would like to be able to select multiple TreeViewColumns at one time. Is this possible? I've looked around and haven't found anything on it. I'm hoping there is a wanky work-around for it as for the addition of a popup menu to a TreeViewColumn (Bug 141937). Any help would be appreciated. Thanks, -- Rodney J. Dyer, PhD Department of Biology Virginia Commonwealth University http://dyerlab.bio.vcu.edu From rykr at comcast.net Fri Oct 20 17:55:01 2006 From: rykr at comcast.net (Reggie Burnett) Date: Fri, 20 Oct 2006 16:55:01 -0500 Subject: [Mono-list] MySQL Connector/Net 1.0.8 RC has been released. In-Reply-To: References: <01df01c6f483$2a997130$7fcc5390$@net> Message-ID: <023501c6f492$64981990$2dc84cb0$@net> > > Reggie Burnett wrote: > > MySQL Connector/Net 1.0.8 RC has been released. MySQL Connector/Net > > is an all-managed ADO.Net provider for MySQL. While this release is > > suitable for any version of MySQL, it is strongly encouraged that > this > > release not be used on any production data. > > BTW, it would be nice if the new release would fix this bug: > > http://bugs.mysql.com/bug.php?id=17338 > > The bug is closed as "can't repeat", which can't be true because it's a > classical race condition (double initialization w/out memory barrier). > > It can be reproduced by calling MySqlConnection.Open () with connection > pooling turned on from several threads. > > See the attached patch. > > Robert You are right. I'll make sure it gets fixed in 1.0.9 and 5.0.2. Thanks for the patch. From marco.ridoni at virgilio.it Fri Oct 20 17:57:54 2006 From: marco.ridoni at virgilio.it (Marco Ridoni) Date: Fri, 20 Oct 2006 23:57:54 +0200 Subject: [Mono-list] Font problem in WinForms app Message-ID: <45394662.3040905@virgilio.it> I'm trying to run a small SWF application and I have a (probably) stupid but nasty configuration problem: when my forms are displayed, text labels in buttons, checkboxes, etc., are rendered as weird glyphs (vertical bars, spaces, etc.). The text in groupboxes labels displays fine! I have another machine which runs this app fine, but since that has been updated and fine-tuned during the last couple of years, there's probably some configuration issue I can't reproduce on my new notebook. Both machines run Dapper 6.06 + mono 1.1.18 with the mscorefonts package. It seems that SWF can't find the font, but I also tried to manually set a font for a given button to no extent. MONO_LOG_LEVEL=debug shows no useful info. The code below will expose the problem on my machine Thanks Marco //====================================== using System.Windows.Forms; using System.Drawing; public class Test : Form { public static void Main() { Test t = new Test(); Button b = new Button(); // The app behaves the same, regardless of this line and of the font name b.Font = new Font ("Tahoma", 12); b.Text = "Click Me!"; t.Controls.Add(b); t.ShowDialog(); } } From lee.jenkins at datatrakpos.com Thu Oct 19 10:56:40 2006 From: lee.jenkins at datatrakpos.com (Lee Jenkins (DataTrakPOS)) Date: Thu, 19 Oct 2006 10:56:40 -0400 Subject: [Mono-list] ASP 2.0 Question Message-ID: <20061019145652.MIYJ23386.ibm61aec.bellsouth.net@YOUR588B4A13EA> Curious if mono supports uploading of files as does ASP 2.0? Thank you, Warm Regards, Lee From jrwren at gmail.com Fri Oct 20 14:32:41 2006 From: jrwren at gmail.com (Jay R. Wren) Date: Fri, 20 Oct 2006 14:32:41 -0400 Subject: [Mono-list] Putting together a Mono presentation In-Reply-To: <1160951843.30933.1.camel@ws01.whitemice.org> References: <140160570610151002ue7dcb0cm35b2c6d1334c7326@mail.gmail.com> <1160951843.30933.1.camel@ws01.whitemice.org> Message-ID: <45391649.60401@gmail.com> I presented both an ASP.NET centered presentation and a desktop application centered presentation about Mono at Penguicon 4.0 I presented variants of these at MDLUG, SEMISLUG and Ann Arbor Dot Net Developers Group. Variants of these are available at: Desktop Apps: http://home.comcast.net/~jrwren04/presentations/ClientMonoIntro/Presentation.html http://home.comcast.net/~jrwren04/presentations/ClientMonoIntro/README (include a short and long abstract for use in UG announcements) http://home.comcast.net/~jrwren04/presentations/ClientMonoIntro/Notes.txt (my own notes, so that I remember what to say - these are a disorganized mess and for me only, but maybe you will find them useful) The demos of building a trivial GTK# app and running it on windows as well as building a trivial Windows Forms app in Visual Studio and running it in Linux did get some audible "oohs and aahs" at a couple of the events. Similarly for ASP.NET: http://home.comcast.net/~jrwren04/presentations/ASPNETMonoIntro/Presentation.html http://home.comcast.net/~jrwren04/presentations/ASPNETMonoIntro/ASPNETNotes.txt (my own notes) I based what I did off of a presentation which Buddy Lindsey gave and was kind enough to share the PPT back in January or February. -- Jay R. Wren Adam Williams wrote: >> I'm hoping to put together a presentation on Mono for my local .NET >> users group and my local Linux Users group. Naturally, the exact same >> presentation couldn't be used for both (not all the LUG users are >> familiar with .NET/Mono). >> Anyway, I was wondering if anybody had resources they could share with >> me. Both presentations would be delivered the first week of November >> 2006. > > I did a presentation for a LUG awhile ago - > ftp://kalamazoolinux.org/pub/pdf/mono.pdf > > I can send you the source (OpenOffice) document off-list if you are > interested. > > Note that their FTP server is *f*l*a*k*y* so it make take a couple of > tries to actually get the document > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From cole-anstey at ntlworld.com Fri Oct 20 14:33:57 2006 From: cole-anstey at ntlworld.com (cole-anstey at ntlworld.com) Date: Fri, 20 Oct 2006 18:33:57 +0000 Subject: [Mono-list] Raising GAPI bugs Message-ID: <20061020183357.CKBN15733.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com> I believe I have found a bug to do with the gapi2-parser, so this will be the first mono related bug I have raised. Now it is Friday night and I've had a couple of pints of cider so excuse me if this is daft. I'm not 100% sure about where to raise bugs for mono. Do I raise them at https://bugzilla.novell.com (which does not appear to mention mono) or via the link at http://mono-project.com/Contributing which redirects you to http://bugzilla.ximian.com/ What confused me is the ximian sites OS versions only go up to SUSE 9.2. I'm on OpenSUSE 10.1. Also Fedora is missing, so this site appears old. Regards, have a good weekend ----------------------------------------- Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information From carlosble at shidix.com Sat Oct 21 10:10:08 2006 From: carlosble at shidix.com (Carlos Ble) Date: Sat, 21 Oct 2006 15:10:08 +0100 Subject: [Mono-list] More TreeView In-Reply-To: <453939E4.8010003@vcu.edu> References: <453939E4.8010003@vcu.edu> Message-ID: <1161439808.5633.2.camel@laptop1> Take a look at http://www.gnome.org/projects/gnumeric/ , it is a spreadsheet using Gtk+. El vie, 20-10-2006 a las 17:04 -0400, Rodney J. Dyer escribi?: > Another question regarding the use of a TreeView. I'm using it as a > spreadsheet with a ListStore model and I would like to be able to select > multiple TreeViewColumns at one time. Is this possible? I've looked > around and haven't found anything on it. I'm hoping there is a wanky > work-around for it as for the addition of a popup menu to a > TreeViewColumn (Bug 141937). Any help would be appreciated. > > Thanks, > -- Carlos Ble www.shidix.com/carlosble From xiii29 at free.fr Sat Oct 21 10:49:16 2006 From: xiii29 at free.fr (xiii29) Date: Sat, 21 Oct 2006 16:49:16 +0200 Subject: [Mono-list] Trouble when generating the doc Message-ID: <453A336C.5040902@free.fr> Hi, I'm trying to generate doc from my source code. When i launch one the tool, I get the same error message : 1. ** (/donnees/Applications/Dev/Mono/mono-1.1.17.0/lib/monodoc/monodocer.exe:9689): WARNING **: Missing method .ctor in assembly /donnees/Documents/Projets/MonoDevelop/MyProject/src/MyProject/bin/Debug/MyProjectLib.dll, type System.Runtime.CompilerServices.RuntimeCompatibilityAttribute 2. 3. ** ERROR **: Can't find custom attr constructor image: /donnees/Documents/Projets/MonoDevelop/MyProject/src/MyProject/bin/Debug/MyProjectLib.dll mtoken: 0x0a00004b 4. aborting... 5. 6. ================================================================= 7. Got a SIGABRT while executing native code. This usually indicates 8. a fatal error in the mono runtime or one of the native libraries 9. used by your application. 10. ================================================================= 11. 12. Stacktrace: 13. 14. at (wrapper managed-to-native) System.MonoCustomAttrs.GetCustomAttributesInternal (System.Reflection.ICustomAttributeProvider,System.Type,bool) <0x00004> 15. at (wrapper managed-to-native) System.MonoCustomAttrs.GetCustomAttributesInternal (System.Reflection.ICustomAttributeProvider,System.Type,bool) <0xffffffff> 16. at System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider,System.Type) <0x00025> 17. at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider,bool) <0x00029> 18. at System.Reflection.Assembly.GetCustomAttributes (bool) <0x0000f> 19. at Stub.MakeAttributes (System.Xml.XmlElement,System.Reflection.ICustomAttributeProvider,bool) <0x00073> 20. at Stub.AddIndexAssembly (System.Reflection.Assembly,System.Xml.XmlElement) <0x000d1> 21. at Stub.DoUpdateAssemblies (string,string) <0x00202> 22. at Stub.Main (string[]) <0x00488> 23. at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff> 24. 25. Native stacktrace: 26. 27. /donnees/Applications/Dev/Mono/mono-1.1.17.0/bin/mono(mono_handle_native_sigsegv+0xe6) [0x815c436] 28. [0xbfffe440] 29. /lib/i686/libc.so.6(abort+0x101) [0xb7d0e851] 30. /usr/lib/libglib-2.0.so.0(g_logv+0x3ff) [0xb7e93d4f] 31. Abandon (core dumped) For info, my project is compiled in 2.0. Thanks ! From marek.sieradzki at gmail.com Sat Oct 21 11:06:22 2006 From: marek.sieradzki at gmail.com (Marek Sieradzki) Date: Sat, 21 Oct 2006 17:06:22 +0200 Subject: [Mono-list] Trouble when generating the doc In-Reply-To: <453A336C.5040902@free.fr> References: <453A336C.5040902@free.fr> Message-ID: <1d835b90610210806r6cee0465p63afaa1225020508@mail.gmail.com> On 10/21/06, xiii29 wrote: > Hi, > > I'm trying to generate doc from my source code. ... > For info, my project is compiled in 2.0. You need to recompile monodocer/(whatever tool you use) with gmcs. From cos at beeond.net Sat Oct 21 11:21:29 2006 From: cos at beeond.net (Costantino Pipero) Date: Sat, 21 Oct 2006 11:21:29 -0400 Subject: [Mono-list] Continuous Integration tools for Mono under Linux Message-ID: <453A3AF9.7040001@beeond.net> Does anyone know whether is possible to install and use Cruisecontrol.NET or Draco.NET under linux to manage a mono based CI environment? thanks Cos -------------- next part -------------- A non-text attachment was scrubbed... Name: cos.vcf Type: text/x-vcard Size: 289 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20061021/18cc1777/attachment.vcf From robertj at gmx.net Sat Oct 21 11:23:48 2006 From: robertj at gmx.net (Robert Jordan) Date: Sat, 21 Oct 2006 17:23:48 +0200 Subject: [Mono-list] Trouble when generating the doc In-Reply-To: <453A336C.5040902@free.fr> References: <453A336C.5040902@free.fr> Message-ID: xiii29 wrote: > Hi, > > I'm trying to generate doc from my source code. > > When i launch one the tool, I get the same error message : > ... > > For info, my project is compiled in 2.0. > IIRC, Monodoc didn't support 2.0 assemblies before Mono 1.1.18. Robert From sontek at gmail.com Sun Oct 22 05:33:52 2006 From: sontek at gmail.com (John Anderson) Date: Sun, 22 Oct 2006 05:33:52 -0400 Subject: [Mono-list] Continuous Integration tools for Mono under Linux In-Reply-To: <453A3AF9.7040001@beeond.net> References: <453A3AF9.7040001@beeond.net> Message-ID: <6938f5390610220233p51f2e259kd2955e5b9c3e2f71@mail.gmail.com> > Does anyone know whether is possible to install and use > Cruisecontrol.NET or Draco.NET under linux to manage a mono based CI > environment? > I have never used it but I've heard of a lot of opensource projects using it for their CI: http://buildbot.sourceforge.net/ From cos at beeond.net Sun Oct 22 06:48:36 2006 From: cos at beeond.net (Costantino Pipero) Date: Sun, 22 Oct 2006 06:48:36 -0400 Subject: [Mono-list] Continuous Integration tools for Mono under Linux In-Reply-To: <6938f5390610220233p51f2e259kd2955e5b9c3e2f71@mail.gmail.com> References: <453A3AF9.7040001@beeond.net> <6938f5390610220233p51f2e259kd2955e5b9c3e2f71@mail.gmail.com> Message-ID: <453B4C84.5000207@beeond.net> Thanks John, I also found the following entry in the ThoughtWorks issue tracking system: http://jira.public.thoughtworks.org/browse/CCNET-583 apparently, one could have CCNet running on Mono now. It's just not very well documented. At the end, CC seems to be more complete that BuildBot for now. John Anderson wrote: >> Does anyone know whether is possible to install and use >> Cruisecontrol.NET or Draco.NET under linux to manage a mono based CI >> environment? >> > > I have never used it but I've heard of a lot of opensource projects > using it for their CI: > > http://buildbot.sourceforge.net/ > > -------------- next part -------------- A non-text attachment was scrubbed... Name: cos.vcf Type: text/x-vcard Size: 289 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-list/attachments/20061022/933091b3/attachment.vcf From koxta at koxta.net Sun Oct 22 07:25:38 2006 From: koxta at koxta.net (Jurek Bartuszek) Date: Sun, 22 Oct 2006 13:25:38 +0200 Subject: [Mono-list] Mono-fuse depends on monodoc? Message-ID: <453B5532.8000601@koxta.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there! Am I wrong or monodoc is a hard dependency for building mono-fuse? Is there any possibility for having monodoc related stuff built optionally? Best regards, Jurek Bartuszek -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFO1Uy6l8uJkeTVlMRAqopAJ9khgBI1rCoMjtoZhotlFztjFVHVwCghzcW O8EHMEFJ7fTD174mdYdkkzA= =mEag -----END PGP SIGNATURE----- From kobruleht2 at hot.ee Sun Oct 22 08:44:15 2006 From: kobruleht2 at hot.ee (Andrus) Date: Sun, 22 Oct 2006 15:44:15 +0300 Subject: [Mono-list] System.InvalidCastException in Npgsql Message-ID: <003b01c6f5e0$87830d30$848b9fd9@acer> To reproduce, try to connect PostgreSQL database using 1.1.18 SQL# GTK How to fix this ? Where to find documentation of Mono.Data namespace ? I haven't found any information about this in monodoc browser. (1.1.17 works OK) Andrus. Result is: Attempt to open connection... Open was successfull. Error: Unable to connect. Reason: System.InvalidCastException: Cannot cast from source type to destination type. at Npgsql.NpgsqlDataReader.GetInt32 (Int32 i) [0x00000] at Mono.Data.SqlSharp.DatabaseBrowser.PostgreSqlMetaData.GetTableColumns (System.String owner, System.String tableName) [0x00000] at Mono.Data.SqlSharp.DatabaseBrowser.Schema.GetTableColumns (System.String owner, System.String tableName) [0x00000] at Mono.Data.SqlSharp.GtkSharp.SqlSharpGtk.PopulateTableColumns (TreeIter parentIter, Mono.Data.SqlSharp.DatabaseBrowser.MetaTable table, Mono.Data.SqlSharp.DatabaseBrowser.Schema browser) [0x00000] at Mono.Data.SqlSharp.GtkSharp.SqlSharpGtk.PopulateTables (TreeIter parentIter, Mono.Data.Provider provider, IDbConnection con) [0x00000] at Mono.Data.SqlSharp.GtkSharp.SqlSharpGtk.OpenDataSource (Mono.Data.Provider theProvider, System.String theConnectionString, System.String connectionName) [0x00000] at Mono.Data.SqlSharp.GtkSharp.LoginDialog.Connect_Action (System.Object o, System.EventArgs args) [0x00000] From marco.ridoni at virgilio.it Sun Oct 22 10:08:01 2006 From: marco.ridoni at virgilio.it (Marco Ridoni) Date: Sun, 22 Oct 2006 16:08:01 +0200 Subject: [Mono-list] [Mono-winforms-list] Font problem in WinForms app In-Reply-To: <45394662.3040905@virgilio.it> References: <45394662.3040905@virgilio.it> Message-ID: <453B7B41.9030606@virgilio.it> You can see a snapshot which details the problem here: http://crashdown.dyndns.org/snapshot1.png m. From lavi.kfir at gmail.com Sun Oct 22 10:08:07 2006 From: lavi.kfir at gmail.com (Kfir Lavi) Date: Sun, 22 Oct 2006 16:08:07 +0200 Subject: [Mono-list] Configuration of apache2 Message-ID: Hi, Here is my config file for Apache: Alias /alex "/home/alex/www/test" AddMonoApplications default "/alex:/home/alex/www/test" MonoExecutablePath default /usr/bin/mono MonoServerPath default /usr/lib/mono/2.0/mod-mono-server2.exe SetHandler mono I'm using Debian. Why should I add MonoExecutablePath default /usr/bin/mono MonoServerPath default /usr/lib/mono/2.0/mod-mono-server2.exe This paths are regular, so shouldn't they work automatically? Also with this configuration I get this error when loading page http://server/alex/WebForm1.aspx Server error in '/alex' application Description: Error processing request. Error Message: HTTP 500. Stack Trace: System.ComponentModel.Win32Exception: Some sort of w32 error occurred: 5 at System.IO.InotifyWatcher.StartMonitoringDirectory (System.IO.InotifyData data, Boolean justcreated) [0x00000] at System.IO.InotifyWatcher.StartDispatching (System.IO.FileSystemWatcher fsw) [0x00000] at System.IO.FileSystemWatcher.Start () [0x00000] at System.IO.FileSystemWatcher.set_EnableRaisingEvents (Boolean value) [0x00000] at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:set_EnableRaisingEvents (bool) at System.Web.HttpApplicationFactory.CreateWatcher (System.String file, System.IO.FileSystemEventHandler hnd, System.IO.RenamedEventHandler reh) [0x00000] at System.Web.HttpApplicationFactory.GetApplication (System.Web.HttpContext context) [0x00000] at System.Web.HttpRuntime.RealProcessRequest (System.Object o) [0x00000] Thanks for the help. Kfir From marco.ridoni at virgilio.it Sun Oct 22 10:08:09 2006 From: marco.ridoni at virgilio.it (Marco Ridoni) Date: Sun, 22 Oct 2006 16:08:09 +0200 Subject: [Mono-list] [Mono-winforms-list] Font problem in WinForms app In-Reply-To: <45394662.3040905@virgilio.it> References: <45394662.3040905@virgilio.it> Message-ID: <453B7B49.60802@virgilio.it> You can see a snapshot which details the problem here: http://crashdown.dyndns.org/snapshot1.png m. From robertj at gmx.net Sun Oct 22 11:01:47 2006 From: robertj at gmx.net (Robert Jordan) Date: Sun, 22 Oct 2006 17:01:47 +0200 Subject: [Mono-list] Font problem in WinForms app In-Reply-To: <45394662.3040905@virgilio.it> References: <45394662.3040905@virgilio.it> Message-ID: Marco Ridoni wrote: > I'm trying to run a small SWF application and I have a (probably) stupid > but nasty configuration problem: when my forms are displayed, text > labels in buttons, checkboxes, etc., are rendered as weird glyphs > (vertical bars, spaces, etc.). The text in groupboxes labels displays fine! > > I have another machine which runs this app fine, but since that has been > updated and fine-tuned during the last couple of years, there's probably > some configuration issue I can't reproduce on my new notebook. Both > machines run Dapper 6.06 + mono 1.1.18 with the mscorefonts package. > > It seems that SWF can't find the font, but I also tried to manually set > a font for a given button to no extent. MONO_LOG_LEVEL=debug shows no > useful info. > > The code below will expose the problem on my machine > > b.Font = new Font ("Tahoma", 12); Since Tahoma isn't free and not part mscorefonts, your new box probably doesn't have it. Robert From jonpryor at vt.edu Sun Oct 22 11:03:52 2006 From: jonpryor at vt.edu (Jonathan Pryor) Date: Sun, 22 Oct 2006 11:03:52 -0400 Subject: [Mono-list] Mono-fuse depends on monodoc? In-Reply-To: <453B5532.8000601@koxta.net> References: <453B5532.8000601@koxta.net> Message-ID: <1161529433.29539.3.camel@melchior.magi> On Sun, 2006-10-22 at 13:25 +0200, Jurek Bartuszek wrote: > Am I wrong or monodoc is a hard dependency for building mono-fuse? Is > there any possibility for having monodoc related stuff built optionally? It is because my config-fu could use some improvement. :-/ No matter, the docs aren't really needed, and they're built last, so if the build fails due to a missing monodoc you can ignore the error, as Mono.Fuse.dll, libMonoFuseHelper.so, and all of the examples are still built. - Jon From lavi.kfir at gmail.com Sun Oct 22 13:01:10 2006 From: lavi.kfir at gmail.com (Kfir Lavi) Date: Sun, 22 Oct 2006 19:01:10 +0200 Subject: [Mono-list] Debian mono tutorial? Message-ID: Hi, Can anybody recommend a good mono tutorial for Debian? Tnx Kfir From robertj at gmx.net Sun Oct 22 13:48:35 2006 From: robertj at gmx.net (Robert Jordan) Date: Sun, 22 Oct 2006 19:48:35 +0200 Subject: [Mono-list] Configuration of apache2 In-Reply-To: References: Message-ID: Kfir Lavi wrote: > Hi, > Here is my config file for Apache: > > Alias /alex "/home/alex/www/test" > AddMonoApplications default "/alex:/home/alex/www/test" > MonoExecutablePath default /usr/bin/mono > MonoServerPath default /usr/lib/mono/2.0/mod-mono-server2.exe > > > SetHandler mono > > > I'm using Debian. > Why should I add > MonoExecutablePath default /usr/bin/mono > MonoServerPath default /usr/lib/mono/2.0/mod-mono-server2.exe > > This paths are regular, so shouldn't they work automatically? The default is ASP.NET 1.1. That's why you need to specify another server assembly. > Also with this configuration I get this error when loading page > http://server/alex/WebForm1.aspx > > Server error in '/alex' application > Description: Error processing request. > > Error Message: HTTP 500. > > Stack Trace: > > System.ComponentModel.Win32Exception: Some sort of w32 error occurred: 5 > at System.IO.InotifyWatcher.StartMonitoringDirectory > (System.IO.InotifyData data, Boolean justcreated) [0x00000] > at System.IO.InotifyWatcher.StartDispatching > (System.IO.FileSystemWatcher fsw) [0x00000] > at System.IO.FileSystemWatcher.Start () [0x00000] > at System.IO.FileSystemWatcher.set_EnableRaisingEvents (Boolean > value) [0x00000] > at (wrapper remoting-invoke-with-check) > System.IO.FileSystemWatcher:set_EnableRaisingEvents (bool) > at System.Web.HttpApplicationFactory.CreateWatcher (System.String > file, System.IO.FileSystemEventHandler hnd, > System.IO.RenamedEventHandler reh) [0x00000] > at System.Web.HttpApplicationFactory.GetApplication > (System.Web.HttpContext context) [0x00000] > at System.Web.HttpRuntime.RealProcessRequest (System.Object o) [0x00000] "Some sort of w32 error occurred: 5" is ERROR_ACCESS_DENIED. Assure that the whole /home/alex/www/test/ tree is accessible by the apache user. Robert From monodanmorg at yahoo.com Sun Oct 22 13:51:36 2006 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Sun, 22 Oct 2006 10:51:36 -0700 (PDT) Subject: [Mono-list] System.InvalidCastException in Npgsql In-Reply-To: <003b01c6f5e0$87830d30$848b9fd9@acer> Message-ID: <20061022175136.67127.qmail@web30809.mail.mud.yahoo.com> Npgsql and Mono are okay. There is a bug in sqlsharpgtk. In subversion, this has been fixed. You can read about anonymous subversion access here. http://www.mono-project.com/AnonSVN This how you would use subversion to get sqlsharpgtk from the subversion trunk. svn co svn://svn.myrealbox.com/source/trunk/sqlsharpgtk Mono.Data.SqlSharp.GtkSharp is not part of Mono thus there is no documentation about it on Monodoc. What documentation are you interested in? The ProviderFactory which sqlsharpgtk uses, or the database browser, various data providers like Npgsql, Mono.Data.SybaseClient, Mono.Data.SqliteClient, System.Data.OracleClient? Have you looked into the MonoQuery add-in for MonoDevelop? I will try to release a new version of sqlsharpgtk which has the bug fixed. --- Andrus wrote: > To reproduce, try to connect PostgreSQL database > using 1.1.18 SQL# GTK > > How to fix this ? > > Where to find documentation of Mono.Data namespace ? > I haven't found any information about this in > monodoc browser. > > (1.1.17 works OK) > > > Andrus. > > Result is: > > Attempt to open connection... > Open was successfull. > Error: Unable to connect. Reason: > System.InvalidCastException: Cannot cast > from source type to destination type. > > at Npgsql.NpgsqlDataReader.GetInt32 (Int32 i) > [0x00000] > > at > Mono.Data.SqlSharp.DatabaseBrowser.PostgreSqlMetaData.GetTableColumns > (System.String owner, System.String tableName) > [0x00000] > > at > Mono.Data.SqlSharp.DatabaseBrowser.Schema.GetTableColumns > (System.String owner, System.String tableName) > [0x00000] > > at > Mono.Data.SqlSharp.GtkSharp.SqlSharpGtk.PopulateTableColumns > (TreeIter > parentIter, > Mono.Data.SqlSharp.DatabaseBrowser.MetaTable table, > Mono.Data.SqlSharp.DatabaseBrowser.Schema browser) > [0x00000] > > at > Mono.Data.SqlSharp.GtkSharp.SqlSharpGtk.PopulateTables > (TreeIter > parentIter, Mono.Data.Provider provider, > IDbConnection con) [0x00000] > > at > Mono.Data.SqlSharp.GtkSharp.SqlSharpGtk.OpenDataSource > (Mono.Data.Provider theProvider, System.String > theConnectionString, > System.String connectionName) [0x00000] > > at > Mono.Data.SqlSharp.GtkSharp.LoginDialog.Connect_Action > (System.Object > o, System.EventArgs args) [0x00000] > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From michael at synthesyssolutions.com Sun Oct 22 14:10:29 2006 From: michael at synthesyssolutions.com (Michael Schurter) Date: Sun, 22 Oct 2006 13:10:29 -0500 Subject: [Mono-list] Debian mono tutorial? In-Reply-To: References: Message-ID: <453BB415.60108@synthesyssolutions.com> Kfir Lavi wrote: > Hi, > Can anybody recommend a good mono tutorial for Debian? Mono on Debian Etch is quite up to date, so there's no much difference between Mono in Debian and Mono in distro X. If you're using Debian Sarge there appear to be some outdated Mono packages on backports, but I wouldn't recommend them. Oh and don't pay much attention to this page: http://pkg-mono.alioth.debian.org/ as its not kept up to date. Hope that helps, -- Michael Schurter Synthesys Solutions From rstaff at sprynet.com Sun Oct 22 16:49:37 2006 From: rstaff at sprynet.com (Richard Staff) Date: Sun, 22 Oct 2006 16:49:37 -0400 Subject: [Mono-list] Mono System.Data.Odbc question Message-ID: <453BD961.5030103@sprynet.com> I was much impressed with Mono 1.1.13 and Monodevelop. I have been able to take several MS Visual Studio projects, convert them to Mono, compile, and run them. Heck, even a project with a Windows Form object compiled and ran with a functional SWF popup object. Now I am trying to access a dBase file using Mono. (This is an actual C# .NET assignment from work, and I was hoping Mono would be the sandbox where I could learn how to do C# .NET stuff.) Mono failed. Here is the console output run results: . ricky at 1[Debug]$ mono FPParse.exe canada.dbf System.DllNotFoundException: libodbc.so in (wrapper managed-to-native) System.Data.Odbc.libodbc:SQLAllocHandle (System.Data.Odbc.OdbcHandleType,intptr,intptr&) in <0x00084> System.Data.Odbc.OdbcConnection:Open () ricky at 1[Debug]$ . I did put symbolic links to libodbc.so.1.0.0 as libodbc.so in the gac directory with the System.Data.dll's. Any other ideas? Rick From kobruleht2 at hot.ee Sun Oct 22 18:35:51 2006 From: kobruleht2 at hot.ee (Andrus) Date: Mon, 23 Oct 2006 01:35:51 +0300 Subject: [Mono-list] System.InvalidCastException in Npgsql References: <20061022175136.67127.qmail@web30809.mail.mud.yahoo.com> Message-ID: <010201c6f62b$6209bdb0$3205eb50@acer> Daniel, > There is a bug in sqlsharpgtk. > In subversion, this has been fixed. > This how you would use subversion to get sqlsharpgtk > from the subversion trunk. > > svn co > svn://svn.myrealbox.com/source/trunk/sqlsharpgtk Thank you. This is not critical for me so I can wait for next MONO Windows installation package. I noticed also that sqlsharpgtk shows only first PostgreSQL table in table list. This occurs also in 1.1.17 . Is this known issue ? > Mono.Data.SqlSharp.GtkSharp is not part of Mono thus > there is no documentation about it on Monodoc. What > documentation are you interested in? > The ProviderFactory which sqlsharpgtk uses, or the > database browser, various data providers like Npgsql, > Mono.Data.SybaseClient, Mono.Data.SqliteClient, > System.Data.OracleClient? I need to edit DataTable returned by Npgsql in grid. I'm studying GTK# and WinForms DataGrid for this. It would be nice if sqlsharpgtk allows edit tables in grid. I was looking for a sample GTK# code which allows to edit DataTable in grid but have'nt found any. So I think I will use WinForms. > Have you looked into the MonoQuery add-in for > MonoDevelop? Does MonoQuery allow to edit DataTable in grid ? I'm developing for MONO mostly in Windows (using Visual C# Express 2005 ) MonoDevelop does not run in Windows so I cannot look into it. Andrus. From kobruleht2 at hot.ee Sun Oct 22 18:41:55 2006 From: kobruleht2 at hot.ee (Andrus) Date: Mon, 23 Oct 2006 01:41:55 +0300 Subject: [Mono-list] Npgsql.NpgsqlClosedState.Open An exception was thrown by the type initializer for System.Net.Dns Message-ID: <010301c6f62b$62d4fcf0$3205eb50@acer> npgsqlConnection1.Open() causes error An exception was thrown by the type initializer for System.Net.Dns Stack trace: at Npgsql.NpgsqlClosedState.Open (Npgsql.NpgsqlConnector context) [0x00000] at Npgsql.NpgsqlConnector.Open () [0x00000] at Npgsql.NpgsqlConnectorPool.GetPooledConnector (Npgsql.NpgsqlConnection Connection) [0x00000] Stack trace from exception object is incomplete. I have no idea why. How to fix this ? I filed also a bug about this containing code to reproduce http://bugzilla.ximian.com/createattachment.cgi?id=79726 Andrus. Code which causes error: class DataGrid : System.Windows.Forms.DataGrid { private Npgsql.NpgsqlConnection npgsqlConnection1; private Npgsql.NpgsqlCommand npgsqlCommand1; private Npgsql.NpgsqlDataAdapter npgsqlDataAdapter1; private System.Data.DataSet dataSet1; public DataGrid() { InitializeComponent(); CreateLayout(); } void CreateLayout() { // this line causes error: npgsqlConnection1.Open(); npgsqlCommand1.CommandText = "select * FROM myschema.mytable order by 1"; npgsqlDataAdapter1.MissingSchemaAction = System.Data.MissingSchemaAction.AddWithKey; npgsqlDataAdapter1.Fill(dataSet1); DataSource = dataSet1.Tables[0]; } private void InitializeComponent() { this.npgsqlCommand1 = new Npgsql.NpgsqlCommand(); this.npgsqlConnection1 = new Npgsql.NpgsqlConnection(); this.npgsqlDataAdapter1 = new Npgsql.NpgsqlDataAdapter(); this.dataSet1 = new System.Data.DataSet(); ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); this.SuspendLayout(); // // npgsqlCommand1 // this.npgsqlCommand1.Connection = this.npgsqlConnection1; // // npgsqlConnection1 // this.npgsqlConnection1.ConnectionString = "SERVER=localhost;DATABASE=xxxxx;USER ID=xxxxxx;PASSWORD=xxxx;ENCODING=UNICODE;"; // // npgsqlDataAdapter1 // this.npgsqlDataAdapter1.DeleteCommand = null; this.npgsqlDataAdapter1.InsertCommand = null; this.npgsqlDataAdapter1.SelectCommand = this.npgsqlCommand1; this.npgsqlDataAdapter1.UpdateCommand = null; // // dataSet1 // this.dataSet1.DataSetName = "NewDataSet"; // // DataGrid // this.CaptionBackColor = System.Drawing.SystemColors.GradientActiveCaption; ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); this.ResumeLayout(false); } } From robertj at gmx.net Sun Oct 22 19:25:02 2006 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Oct 2006 01:25:02 +0200 Subject: [Mono-list] Npgsql.NpgsqlClosedState.Open An exception was thrown by the type initializer for System.Net.Dns In-Reply-To: <010301c6f62b$62d4fcf0$3205eb50@acer> References: <010301c6f62b$62d4fcf0$3205eb50@acer> Message-ID: Andrus wrote: > npgsqlConnection1.Open() causes error > > An exception was thrown by the type initializer for System.Net.Dns > > Stack trace: > at Npgsql.NpgsqlClosedState.Open (Npgsql.NpgsqlConnector context) [0x00000] > at Npgsql.NpgsqlConnector.Open () [0x00000] > at Npgsql.NpgsqlConnectorPool.GetPooledConnector (Npgsql.NpgsqlConnection > Connection) [0x00000] > > Stack trace from exception object is incomplete. I have no idea why. > How to fix this ? It looks like Mono can't find its machine.config. How do you invoke mono.exe? Robert From monodanmorg at yahoo.com Sun Oct 22 19:45:19 2006 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Sun, 22 Oct 2006 16:45:19 -0700 (PDT) Subject: [Mono-list] System.InvalidCastException in Npgsql In-Reply-To: <010201c6f62b$6209bdb0$3205eb50@acer> Message-ID: <20061022234519.65037.qmail@web30811.mail.mud.yahoo.com> Only one table is shown because the InvalidCastException was thrown which stopped sqlsharpgtk from getting anymore meta data. This is a known issue. This is resolved in subversion. > I noticed also that sqlsharpgtk shows only first > PostgreSQL table in table > list. This occurs also in 1.1.17 . Is this known > issue ? > > > I need to edit DataTable returned by Npgsql in grid. > I'm studying GTK# and WinForms DataGrid for this. > It would be nice if sqlsharpgtk allows edit tables > in grid. > I was looking for a sample GTK# code which allows to > edit DataTable in grid > but have'nt found any. > So I think I will use WinForms. > I can provide you with some sample code for an editable gtk# TreeView/ListStore. > Does MonoQuery allow to edit DataTable in grid ? No. The DataGrid in MonoQuery is based an old version of sqlsharpgtk. > I'm developing for MONO mostly in Windows (using > Visual C# Express 2005 ) > MonoDevelop does not run in Windows so I cannot look > into it. Currently, there is no release of MonoDevelop that runs on Windows, but someone did commit to subversion support to run on Windows. Hopefully, Paco or Wade can provide a runnining MonoDevelop with the next windows installer release of mono. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From steflik at binghamton.edu Sun Oct 22 20:02:06 2006 From: steflik at binghamton.edu (steflik) Date: Sun, 22 Oct 2006 20:02:06 -0400 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: References: <4537CC86.9040804@binghamton.edu> Message-ID: <453C067E.40103@binghamton.edu> Robert, I'ver built the web.config and done everything you said to but Mono still can't find MySql.Data. I tried putting the MySql.Data.dll in the application /bin directory and that seems to work but the better way to do this would be via the web.config. I'm trying to use Mono for an ASP.NET segment for a class I teach on web programming here at the University and I really hate to have each of the students place the .dll in their /bin directory. Dick Steflik Binghamton University Robert Jordan wrote: >Hi, > >You have to create web.config in the directory of the ASP.NET >application. Have a look at the test site that that gets >installed into $prefix/lib/xsp/test. > >MySql.Data.MySqlClient is just a namespace. The assembly is >MySql.Data. > >Robert > >steflik wrote: > > Robert, > > I'm new at this, where do I find the web.config file, I've been looking > > around and it isn't obvious. Also, my the impot that is failing is > > "import MySql.Data.MySqlClient"; is that the assembly you are >referring to? > > > > Dick Steflik > > > > Robert Jordan wrote: > > > >> Dick Steflik wrote: > >> > >> > >>> I can get Mono to build a command line program using MySql (and it > >>> runs nicely) but I have to tell the C# compiler where the dll is. > >>> How do I do this for ASP.NET using C#. > >>> I'm using Mono on FC5 with Apache and Mono 1.1.17.... > >>> > >> > >> Copy the MySql assembly into the bin folder of your ASP.NET app > >> or install the assembly into the GAC and specify the assembly name > >> in the web.config: > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> You can obtain the full assembly name with > >> > >> gacutil -l | grep MySql > >> > >> 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 rstaff at sprynet.com Sun Oct 22 21:12:14 2006 From: rstaff at sprynet.com (Richard Staff) Date: Sun, 22 Oct 2006 21:12:14 -0400 Subject: [Mono-list] Running a C# .NET Windows service on Linux using Mono. Message-ID: <453C16EE.3090605@sprynet.com> Is there a way to run a C# .NET Windows service on Linux using Mono? I imported the project to Mono from Visual Studio successfully. Heck, it even compiles without any errors. On Windows, a C# .NET is installed locally using "Installutil.exe", and using the Services applet (part of the Administrative Tools folder found in Windows' Control Panel) to start the service. Console output of tests: ricky at 1[Debug]$ mono Installutil.exe CarWinService.exe cannot open assembly Installutil.exe ricky at 1[Debug]$ mono CarWinService.exe ricky at 1[Debug]$ Second mono command did not really work. Remote client could NOT find a server. Test output: ricky at 2[Debug]$ mono CarProviderClient.exe Client started! Hit enter to end Unhandled Exception: System.Net.WebException: Error: ConnectFailure ... Rick From rstaff at sprynet.com Sun Oct 22 21:36:02 2006 From: rstaff at sprynet.com (Richard Staff) Date: Sun, 22 Oct 2006 21:36:02 -0400 Subject: [Mono-list] Accessing dBase dbf files using Mono. Message-ID: <453C1C82.4020103@sprynet.com> How do you access dBase dbf files using Mono? Is there an open source dBASE Driver or data provider usable with Mono? Rick From robertj at gmx.net Sun Oct 22 21:37:00 2006 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Oct 2006 03:37:00 +0200 Subject: [Mono-list] Running a C# .NET Windows service on Linux using Mono. In-Reply-To: <453C16EE.3090605@sprynet.com> References: <453C16EE.3090605@sprynet.com> Message-ID: Richard Staff wrote: > Is there a way to run a C# .NET Windows service on Linux using Mono? > I imported the project to Mono from Visual Studio successfully. > Heck, it even compiles without any errors. > On Windows, a C# .NET is installed locally using "Installutil.exe", > and using the Services applet (part of the Administrative Tools folder > found in Windows' Control Panel) to start the service. On Linux, services are started using the 'mono-service' tool. Robert From robertj at gmx.net Sun Oct 22 22:08:56 2006 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Oct 2006 04:08:56 +0200 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <453C067E.40103@binghamton.edu> References: <4537CC86.9040804@binghamton.edu> <453C067E.40103@binghamton.edu> Message-ID: Hi, Here we go: 1) install MySql.Data into the GAC: gacutil -i MySql.Data.dll 2) obtain MySql.Data's assembly name: gacutil -l MySql.Data The output should look like this (in one line), but your version might be different: MySql.Data, Version=1.0.7.30073, Culture=neutral, PublicKeyToken=8e323390df8d9ed4 3) create "web.config": 4) create a demo page "demo.aspx" <%@ Page %> <%@ Import namespace="MySql.Data.MySqlClient" %> Robert steflik wrote: > Robert, > I'ver built the web.config and done everything you said to but Mono > still can't find MySql.Data. > > I tried putting the MySql.Data.dll in the application /bin directory and > that seems to work but the better way to do this would be via the > web.config. > > I'm trying to use Mono for an ASP.NET segment for a class I teach on web > programming here at the University and I really hate to have each of the > students place the .dll in their /bin directory. > > Dick Steflik > Binghamton University > > Robert Jordan wrote: > >> Hi, >> >> You have to create web.config in the directory of the ASP.NET >> application. Have a look at the test site that that gets >> installed into $prefix/lib/xsp/test. >> >> MySql.Data.MySqlClient is just a namespace. The assembly is >> MySql.Data. >> >> Robert >> >> steflik wrote: >>> Robert, >>> I'm new at this, where do I find the web.config file, I've been looking >>> around and it isn't obvious. Also, my the impot that is failing is >>> "import MySql.Data.MySqlClient"; is that the assembly you are >> referring to? >>> Dick Steflik >>> >>> Robert Jordan wrote: >>> >>>> Dick Steflik wrote: >>>> >>>> >>>>> I can get Mono to build a command line program using MySql (and it >>>>> runs nicely) but I have to tell the C# compiler where the dll is. >>>>> How do I do this for ASP.NET using C#. >>>>> I'm using Mono on FC5 with Apache and Mono 1.1.17.... >>>>> >>>> Copy the MySql assembly into the bin folder of your ASP.NET app >>>> or install the assembly into the GAC and specify the assembly name >>>> in the web.config: >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> You can obtain the full assembly name with >>>> >>>> gacutil -l | grep MySql >>>> >>>> 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 >> >> >> > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From fxjrlists at yahoo.com.br Sun Oct 22 21:46:49 2006 From: fxjrlists at yahoo.com.br (Francisco Figueiredo Jr.) Date: Sun, 22 Oct 2006 23:46:49 -0200 Subject: [Mono-list] System.InvalidCastException in Npgsql In-Reply-To: <20061022234519.65037.qmail@web30811.mail.mud.yahoo.com> References: <20061022234519.65037.qmail@web30811.mail.mud.yahoo.com> Message-ID: <453C1F09.9070702@yahoo.com.br> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Morgan wrote: > >> I need to edit DataTable returned by Npgsql in grid. >> I'm studying GTK# and WinForms DataGrid for this. >> It would be nice if sqlsharpgtk allows edit tables >> in grid. >> I was looking for a sample GTK# code which allows to >> edit DataTable in grid >> but have'nt found any. >> So I think I will use WinForms. >> > > I can provide you with some sample code for an > editable gtk# TreeView/ListStore. > Hi Daniel! I would like to see this sample code. Would you mind if I put it on Npgsql project page as a sample? This would help new users to get used to Npgsql and gtk# at same time. :) - -- Regards, Francisco Figueiredo Jr. http://fxjr.blogspot.com Npgsql Lead Developer http://pgfoundry.org/projects/npgsql Mono Project Contributor http://www.go-mono.com MonoBrasil Project Founder Member http://monobrasil.softwarelivre.org - -- - Would you tell me, please, which way I ought to go from here? - That depends a good deal on where you want to get to. -- Lewis Carroll "Alice's Adventures in Wonderland" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRTwfCf7iFmsNzeXfAQKzWwgAm/6RW0SvQy5dKS4G2QEwd25XLWpFvjmx PnmX9rQxTbeB7ZalDmRofM3AOvJKO/c4CQmBcufTouQel9LYJm1y+uRTVDeT1Vv+ IsXn1bhOjKa8XSwjkyCWe1aMI7nbxlIoaaiKaod6cOwF9DayGoFhBcoXRawdAlFP 1sO/BJLke/LbBy6/DprJMnz08ZhXihyrBFij9I7lRyHo7XrxBTeV76Lt87UWqv2F lmg1metoI7GR69w4kiDz6/PLltG9yCwoB+sldNJPv/w+ld1cpuz1+pWC+2/dAcli 4rT1YpWcrXLC2XQHt4IW9iF9Iz4e4CslzwiaVX5BrIfq+9osiSXsGQ== =tg1W -----END PGP SIGNATURE----- _______________________________________________________ Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! http://br.mobile.yahoo.com/mailalertas/ From abe.gillespie at gmail.com Sun Oct 22 23:51:26 2006 From: abe.gillespie at gmail.com (Abe Gillespie) Date: Sun, 22 Oct 2006 23:51:26 -0400 Subject: [Mono-list] Fwd: Accessing dBase dbf files using Mono. In-Reply-To: References: <453C1C82.4020103@sprynet.com> Message-ID: Sorry, forgot to respond to the entire list. ---------- Forwarded message ---------- From: Abe Gillespie Date: Oct 22, 2006 11:50 PM Subject: Re: [Mono-list] Accessing dBase dbf files using Mono. To: Richard Staff Hi Rick, You should take a look at SharpMap: http://www.codeplex.com/Wiki/View.aspx?ProjectName=SharpMap You'll find code in the source that accesses DBF files. -Abe On 10/22/06, Richard Staff wrote: > How do you access dBase dbf files using Mono? > Is there an open source dBASE Driver or data provider usable with Mono? > > Rick > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From lavi.kfir at gmail.com Mon Oct 23 07:20:11 2006 From: lavi.kfir at gmail.com (Kfir Lavi) Date: Mon, 23 Oct 2006 13:20:11 +0200 Subject: [Mono-list] Configuration of apache2 In-Reply-To: References: Message-ID: Ok, The problem was pemissions of the directories and files. To solve it I did: find $DIR -type d -exec chmod 770 {} \; -exec chgrp www-data {} \; && find $DIR -type f -exec chmod 640 {} \; -exec chgrp www-data {} \; Where $DIR is the directory of the files. Thanks for the help. Kfir On 10/22/06, Robert Jordan wrote: > Kfir Lavi wrote: > > Hi, > > Here is my config file for Apache: > > > > Alias /alex "/home/alex/www/test" > > AddMonoApplications default "/alex:/home/alex/www/test" > > MonoExecutablePath default /usr/bin/mono > > MonoServerPath default /usr/lib/mono/2.0/mod-mono-server2.exe > > > > > > SetHandler mono > > > > > > I'm using Debian. > > Why should I add > > MonoExecutablePath default /usr/bin/mono > > MonoServerPath default /usr/lib/mono/2.0/mod-mono-server2.exe > > > > This paths are regular, so shouldn't they work automatically? > > The default is ASP.NET 1.1. That's why you need to specify > another server assembly. > > > Also with this configuration I get this error when loading page > > http://server/alex/WebForm1.aspx > > > > Server error in '/alex' application > > Description: Error processing request. > > > > Error Message: HTTP 500. > > > > Stack Trace: > > > > System.ComponentModel.Win32Exception: Some sort of w32 error occurred: 5 > > at System.IO.InotifyWatcher.StartMonitoringDirectory > > (System.IO.InotifyData data, Boolean justcreated) [0x00000] > > at System.IO.InotifyWatcher.StartDispatching > > (System.IO.FileSystemWatcher fsw) [0x00000] > > at System.IO.FileSystemWatcher.Start () [0x00000] > > at System.IO.FileSystemWatcher.set_EnableRaisingEvents (Boolean > > value) [0x00000] > > at (wrapper remoting-invoke-with-check) > > System.IO.FileSystemWatcher:set_EnableRaisingEvents (bool) > > at System.Web.HttpApplicationFactory.CreateWatcher (System.String > > file, System.IO.FileSystemEventHandler hnd, > > System.IO.RenamedEventHandler reh) [0x00000] > > at System.Web.HttpApplicationFactory.GetApplication > > (System.Web.HttpContext context) [0x00000] > > at System.Web.HttpRuntime.RealProcessRequest (System.Object o) [0x00000] > > "Some sort of w32 error occurred: 5" is ERROR_ACCESS_DENIED. > Assure that the whole /home/alex/www/test/ tree is accessible > by the apache user. > > Robert > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From steflik at binghamton.edu Mon Oct 23 08:53:15 2006 From: steflik at binghamton.edu (steflik) Date: Mon, 23 Oct 2006 08:53:15 -0400 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: References: <4537CC86.9040804@binghamton.edu> <453C067E.40103@binghamton.edu> Message-ID: <453CBB3B.6070406@binghamton.edu> Robert, Thanks for the patience but I got the same result. If the MySql.Data.dll isn't in the /bin directory the compuiler can't find it. This may sound stupid but what directory shoiuld the .dll be in? Thanks, Dick Steflik Binghamton University Robert Jordan wrote: >Hi, > >Here we go: > >1) install MySql.Data into the GAC: > >gacutil -i MySql.Data.dll > >2) obtain MySql.Data's assembly name: > >gacutil -l MySql.Data > >The output should look like this (in one line), but >your version might be different: > >MySql.Data, Version=1.0.7.30073, Culture=neutral, >PublicKeyToken=8e323390df8d9ed4 > > >3) create "web.config": > > > > > > > > > > > > > >4) create a demo page "demo.aspx" > ><%@ Page %> ><%@ Import namespace="MySql.Data.MySqlClient" %> > > > > > > > >Robert > > >steflik wrote: > > >>Robert, >>I'ver built the web.config and done everything you said to but Mono >>still can't find MySql.Data. >> >>I tried putting the MySql.Data.dll in the application /bin directory and >>that seems to work but the better way to do this would be via the >>web.config. >> >>I'm trying to use Mono for an ASP.NET segment for a class I teach on web >>programming here at the University and I really hate to have each of the >>students place the .dll in their /bin directory. >> >>Dick Steflik >>Binghamton University >> >>Robert Jordan wrote: >> >> >> >>>Hi, >>> >>>You have to create web.config in the directory of the ASP.NET >>>application. Have a look at the test site that that gets >>>installed into $prefix/lib/xsp/test. >>> >>>MySql.Data.MySqlClient is just a namespace. The assembly is >>>MySql.Data. >>> >>>Robert >>> >>>steflik wrote: >>> >>> >>>>Robert, >>>>I'm new at this, where do I find the web.config file, I've been looking >>>>around and it isn't obvious. Also, my the impot that is failing is >>>>"import MySql.Data.MySqlClient"; is that the assembly you are >>>> >>>> >>>referring to? >>> >>> >>>>Dick Steflik >>>> >>>>Robert Jordan wrote: >>>> >>>> >>>> >>>>>Dick Steflik wrote: >>>>> >>>>> >>>>> >>>>> >>>>>>I can get Mono to build a command line program using MySql (and it >>>>>>runs nicely) but I have to tell the C# compiler where the dll is. >>>>>>How do I do this for ASP.NET using C#. >>>>>>I'm using Mono on FC5 with Apache and Mono 1.1.17.... >>>>>> >>>>>> >>>>>> >>>>>Copy the MySql assembly into the bin folder of your ASP.NET app >>>>>or install the assembly into the GAC and specify the assembly name >>>>>in the web.config: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>You can obtain the full assembly name with >>>>> >>>>>gacutil -l | grep MySql >>>>> >>>>>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 >>> >>> >>> >>> >>> >>_______________________________________________ >>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 robertj at gmx.net Mon Oct 23 10:40:07 2006 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Oct 2006 16:40:07 +0200 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <453CBB3B.6070406@binghamton.edu> References: <4537CC86.9040804@binghamton.edu> <453C067E.40103@binghamton.edu> <453CBB3B.6070406@binghamton.edu> Message-ID: Dick, steflik wrote: > Thanks for the patience but I got the same result. If the MySql.Data.dll > isn't in the /bin directory the compuiler can't find it. This may sound > stupid but what directory shoiuld the .dll be in? In the GAC (Global Assembly Cache), see (1) below. Robert > > Thanks, > > Dick Steflik > Binghamton University > > Robert Jordan wrote: > >> Hi, >> >> Here we go: >> >> 1) install MySql.Data into the GAC: >> >> gacutil -i MySql.Data.dll >> >> 2) obtain MySql.Data's assembly name: >> >> gacutil -l MySql.Data >> >> The output should look like this (in one line), but >> your version might be different: >> >> MySql.Data, Version=1.0.7.30073, Culture=neutral, >> PublicKeyToken=8e323390df8d9ed4 >> >> >> 3) create "web.config": >> >> >> >> >> >> >> >> >> >> >> >> >> >> 4) create a demo page "demo.aspx" >> >> <%@ Page %> >> <%@ Import namespace="MySql.Data.MySqlClient" %> >> >> >> >> >> >> >> >> Robert >> >> >> steflik wrote: >> >> >>> Robert, >>> I'ver built the web.config and done everything you said to but Mono >>> still can't find MySql.Data. >>> >>> I tried putting the MySql.Data.dll in the application /bin directory and >>> that seems to work but the better way to do this would be via the >>> web.config. >>> >>> I'm trying to use Mono for an ASP.NET segment for a class I teach on web >>> programming here at the University and I really hate to have each of the >>> students place the .dll in their /bin directory. >>> >>> Dick Steflik >>> Binghamton University >>> >>> Robert Jordan wrote: >>> >>> >>> >>>> Hi, >>>> >>>> You have to create web.config in the directory of the ASP.NET >>>> application. Have a look at the test site that that gets >>>> installed into $prefix/lib/xsp/test. >>>> >>>> MySql.Data.MySqlClient is just a namespace. The assembly is >>>> MySql.Data. >>>> >>>> Robert >>>> >>>> steflik wrote: >>>> >>>> >>>>> Robert, >>>>> I'm new at this, where do I find the web.config file, I've been looking >>>>> around and it isn't obvious. Also, my the impot that is failing is >>>>> "import MySql.Data.MySqlClient"; is that the assembly you are >>>>> >>>>> >>>> referring to? >>>> >>>> >>>>> Dick Steflik >>>>> >>>>> Robert Jordan wrote: >>>>> >>>>> >>>>> >>>>>> Dick Steflik wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> I can get Mono to build a command line program using MySql (and it >>>>>>> runs nicely) but I have to tell the C# compiler where the dll is. >>>>>>> How do I do this for ASP.NET using C#. >>>>>>> I'm using Mono on FC5 with Apache and Mono 1.1.17.... >>>>>>> >>>>>>> >>>>>>> >>>>>> Copy the MySql assembly into the bin folder of your ASP.NET app >>>>>> or install the assembly into the GAC and specify the assembly name >>>>>> in the web.config: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> You can obtain the full assembly name with >>>>>> >>>>>> gacutil -l | grep MySql >>>>>> >>>>>> 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 >>>> >>>> >>>> >>>> >>>> >>> _______________________________________________ >>> 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 >> >> >> > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From pbradley at uwic.ac.uk Mon Oct 23 11:08:37 2006 From: pbradley at uwic.ac.uk (Bradley, Peter) Date: Mon, 23 Oct 2006 16:08:37 +0100 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient Message-ID: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> Dick, I'm sorry to butt in, but I noticed things looked as though they might start recursing. Infinitely, possibly :) First up: do you understand what the GAC is? Second: do you understand how the .NET Framework searches for referenced assemblies? Third: do you understand what strongly named assemblies are, and how you refer to them (i.e. with their strong name)? If you have a problem with any of these, perhaps we should take a step back and explain some of those things first. If you already understand all that stuff, please just ignore me and I promise I'll go away. Peter -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan Sent: 23 October 2006 15:40 To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] How do i tell Mono (for ASP.NET,C#) where to find MySQL.Data.MySqlClient Dick, steflik wrote: > Thanks for the patience but I got the same result. If the MySql.Data.dll > isn't in the /bin directory the compuiler can't find it. This may sound > stupid but what directory shoiuld the .dll be in? In the GAC (Global Assembly Cache), see (1) below. Robert > > Thanks, > > Dick Steflik > Binghamton University > > Robert Jordan wrote: > >> Hi, >> >> Here we go: >> >> 1) install MySql.Data into the GAC: >> >> gacutil -i MySql.Data.dll >> >> 2) obtain MySql.Data's assembly name: >> >> gacutil -l MySql.Data >> >> The output should look like this (in one line), but >> your version might be different: >> >> MySql.Data, Version=1.0.7.30073, Culture=neutral, >> PublicKeyToken=8e323390df8d9ed4 >> >> >> 3) create "web.config": >> >> >> >> >> >> >> >> >> >> >> >> >> >> 4) create a demo page "demo.aspx" >> >> <%@ Page %> >> <%@ Import namespace="MySql.Data.MySqlClient" %> >> >> >> >> >> >> >> >> Robert >> >> >> steflik wrote: >> >> >>> Robert, >>> I'ver built the web.config and done everything you said to but Mono >>> still can't find MySql.Data. >>> >>> I tried putting the MySql.Data.dll in the application /bin directory and >>> that seems to work but the better way to do this would be via the >>> web.config. >>> >>> I'm trying to use Mono for an ASP.NET segment for a class I teach on web >>> programming here at the University and I really hate to have each of the >>> students place the .dll in their /bin directory. >>> >>> Dick Steflik >>> Binghamton University >>> >>> Robert Jordan wrote: >>> >>> >>> >>>> Hi, >>>> >>>> You have to create web.config in the directory of the ASP.NET >>>> application. Have a look at the test site that that gets >>>> installed into $prefix/lib/xsp/test. >>>> >>>> MySql.Data.MySqlClient is just a namespace. The assembly is >>>> MySql.Data. >>>> >>>> Robert >>>> >>>> steflik wrote: >>>> >>>> >>>>> Robert, >>>>> I'm new at this, where do I find the web.config file, I've been looking >>>>> around and it isn't obvious. Also, my the impot that is failing is >>>>> "import MySql.Data.MySqlClient"; is that the assembly you are >>>>> >>>>> >>>> referring to? >>>> >>>> >>>>> Dick Steflik >>>>> >>>>> Robert Jordan wrote: >>>>> >>>>> >>>>> >>>>>> Dick Steflik wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> I can get Mono to build a command line program using MySql (and it >>>>>>> runs nicely) but I have to tell the C# compiler where the dll is. >>>>>>> How do I do this for ASP.NET using C#. >>>>>>> I'm using Mono on FC5 with Apache and Mono 1.1.17.... >>>>>>> >>>>>>> >>>>>>> >>>>>> Copy the MySql assembly into the bin folder of your ASP.NET app >>>>>> or install the assembly into the GAC and specify the assembly name >>>>>> in the web.config: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> You can obtain the full assembly name with >>>>>> >>>>>> gacutil -l | grep MySql >>>>>> >>>>>> 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 >>>> >>>> >>>> >>>> >>>> >>> _______________________________________________ >>> 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 >> >> >> > _______________________________________________ > 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 NGoldstein at nds.com Mon Oct 23 11:29:11 2006 From: NGoldstein at nds.com (Goldstein, Nachum (Jonathan)) Date: Mon, 23 Oct 2006 17:29:11 +0200 Subject: [Mono-list] Question re: mono app deployment on Windows Message-ID: For a particular customer, I want to deploy an existing C# app to Windows XP hosts. This deployment is to occur via the web, and it must occur "quickly". The size of the compiled app assembly is several hundred Kb. All required classes are known at compile-time. I cannot force the end-user to install .NET - it will take too long. Microsoft has confirmed that .NET was not bundled with XP, so I cannot rely on it "already being there". Hence I am investigating mono. I want to use it to compile the C#, and then deploy something less bulky than .NET in order to run on the end-user hosts. I searched all the available documentation, and the only deployment instructions I find are: 1. install mono on the target host 2. use mkbundle 1 is unacceptable - for the same reasons that we cannot force an installation .NET. 2 is listed in the documentation as being available only on linux. So would someone please answer the following: 1. What is the minimum runtime file-set required in order to run a mono app on a "clean" host? 2. Can mkbundle be used for a windows target? Thank you in advance for any assistance offered. *********************************************************************************** This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message. *********************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061023/f146e2d0/attachment.html From kobruleht2 at hot.ee Mon Oct 23 11:42:14 2006 From: kobruleht2 at hot.ee (Andrus) Date: Mon, 23 Oct 2006 18:42:14 +0300 Subject: [Mono-list] Npgsql.NpgsqlClosedState.Open An exception was thrown by the type initializer for System.Net.Dns References: <010301c6f62b$62d4fcf0$3205eb50@acer> Message-ID: <4e0601c6f6b9$d7b517b0$2300b3a8@Andrus> >> npgsqlConnection1.Open() causes error >> An exception was thrown by the type initializer for System.Net.Dns > It looks like Mono can't find its machine.config. > How do you invoke mono.exe? I use shortcut icon in quick launch. Target is "C:\Program Files\Mono-1.1.17.1\bin\mono.exe" i:\mydir\myapp\myapp\bin\debug\myapp.exe Andrus. From robertj at gmx.net Mon Oct 23 11:59:15 2006 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Oct 2006 17:59:15 +0200 Subject: [Mono-list] Question re: mono app deployment on Windows In-Reply-To: References: Message-ID: Goldstein, Nachum (Jonathan) wrote: > I searched all the available documentation, and the only deployment > instructions I find are: > > 1. install mono on the target host > 2. use mkbundle > > 1 is unacceptable - for the same reasons that we cannot force an > installation .NET. > > 2 is listed in the documentation as being available only on linux. Mkbundle works on Windows. Where did you read it doesn't? > So would someone please answer the following: > > 1. What is the minimum runtime file-set required in order to run a mono > app on a "clean" host? Your assemblies, their referenced system assemblies and all DLLs installed into Mono's bin directory. Robert From robertj at gmx.net Mon Oct 23 12:02:07 2006 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Oct 2006 18:02:07 +0200 Subject: [Mono-list] Npgsql.NpgsqlClosedState.Open An exception was thrown by the type initializer for System.Net.Dns In-Reply-To: <4e0601c6f6b9$d7b517b0$2300b3a8@Andrus> References: <010301c6f62b$62d4fcf0$3205eb50@acer> <4e0601c6f6b9$d7b517b0$2300b3a8@Andrus> Message-ID: Andrus wrote: >>> npgsqlConnection1.Open() causes error >>> An exception was thrown by the type initializer for System.Net.Dns > >> It looks like Mono can't find its machine.config. >> How do you invoke mono.exe? > > I use shortcut icon in quick launch. Target is > > "C:\Program Files\Mono-1.1.17.1\bin\mono.exe" i:\mydir\myapp\myapp\bin\debug\myapp.exe Assure that the "run directory" of the shortcut is "C:\Program Files\Mono-1.1.17.1\bin\". Robert From steflik at binghamton.edu Mon Oct 23 12:40:07 2006 From: steflik at binghamton.edu (Dick Steflik) Date: Mon, 23 Oct 2006 12:40:07 -0400 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> Message-ID: <453CF067.7080005@binghamton.edu> Peter, Thanks for butting in; answering your questions: First: I think the GAC is kinda like the Windows registry in that it allows me to make use of Windows dynamic link libraries that haven't been written to us windows specific APIs Second: Focusing only on ASP.NET it searches for a referenced assembly in web.config then in the application /bin director or vice versa; or is there somthing else happening?. Third: this is pretty vague to me When I look in the GAC using gacutil I can see everything that has been registered but I don't see anything that says where the assemblies are physically located. Explanations would be helpful, I'm trying to get this running for a class I'm teaching and would really hate to have many copies of the .dll laying around in the /bin directories of the student applications. Most of my experience has been with Tomcat, JBoss, JSPs, servlets and Java Web Services and am trying to give unbiased coverage to PHP and ASP.NET. The similaritiest between ASP.NET with C# and Java Server Pages and servlets is quite uncanny. Thanks for being patient. Dick Steflik Binghamton University Bradley, Peter wrote: >Dick, > >I'm sorry to butt in, but I noticed things looked as though they might >start recursing. Infinitely, possibly :) > >First up: do you understand what the GAC is? > >Second: do you understand how the .NET Framework searches for referenced >assemblies? > >Third: do you understand what strongly named assemblies are, and how you >refer to them (i.e. with their strong name)? > >If you have a problem with any of these, perhaps we should take a step >back and explain some of those things first. If you already understand >all that stuff, please just ignore me and I promise I'll go away. > > >Peter > > >-----Original Message----- >From: mono-list-bounces at lists.ximian.com >[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan >Sent: 23 October 2006 15:40 >To: Mono-list at lists.ximian.com >Subject: Re: [Mono-list] How do i tell Mono (for ASP.NET,C#) where to >find MySQL.Data.MySqlClient > >Dick, > >steflik wrote: > > >>Thanks for the patience but I got the same result. If the >> >> >MySql.Data.dll > > >>isn't in the /bin directory the compuiler can't find it. This may >> >> >sound > > >>stupid but what directory shoiuld the .dll be in? >> >> > >In the GAC (Global Assembly Cache), see (1) below. > >Robert > > > >>Thanks, >> >>Dick Steflik >>Binghamton University >> >>Robert Jordan wrote: >> >> >> >>>Hi, >>> >>>Here we go: >>> >>>1) install MySql.Data into the GAC: >>> >>>gacutil -i MySql.Data.dll >>> >>>2) obtain MySql.Data's assembly name: >>> >>>gacutil -l MySql.Data >>> >>>The output should look like this (in one line), but >>>your version might be different: >>> >>>MySql.Data, Version=1.0.7.30073, Culture=neutral, >>>PublicKeyToken=8e323390df8d9ed4 >>> >>> >>>3) create "web.config": >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>4) create a demo page "demo.aspx" >>> >>><%@ Page %> >>><%@ Import namespace="MySql.Data.MySqlClient" %> >>> >>> >>> >>> >>> >>> >>> >>>Robert >>> >>> >>>steflik wrote: >>> >>> >>> >>> >>>>Robert, >>>>I'ver built the web.config and done everything you said to but Mono >>>>still can't find MySql.Data. >>>> >>>>I tried putting the MySql.Data.dll in the application /bin directory >>>> >>>> >and > > >>>>that seems to work but the better way to do this would be via the >>>>web.config. >>>> >>>>I'm trying to use Mono for an ASP.NET segment for a class I teach on >>>> >>>> >web > > >>>>programming here at the University and I really hate to have each of >>>> >>>> >the > > >>>>students place the .dll in their /bin directory. >>>> >>>>Dick Steflik >>>>Binghamton University >>>> >>>>Robert Jordan wrote: >>>> >>>> >>>> >>>> >>>> >>>>>Hi, >>>>> >>>>>You have to create web.config in the directory of the ASP.NET >>>>>application. Have a look at the test site that that gets >>>>>installed into $prefix/lib/xsp/test. >>>>> >>>>>MySql.Data.MySqlClient is just a namespace. The assembly is >>>>>MySql.Data. >>>>> >>>>>Robert >>>>> >>>>>steflik wrote: >>>>> >>>>> >>>>> >>>>> >>>>>>Robert, >>>>>>I'm new at this, where do I find the web.config file, I've been >>>>>> >>>>>> >looking > > >>>>>>around and it isn't obvious. Also, my the impot that is failing >>>>>> >>>>>> >is > > >>>>>>"import MySql.Data.MySqlClient"; is that the assembly you are >>>>>> >>>>>> >>>>>> >>>>>> >>>>>referring to? >>>>> >>>>> >>>>> >>>>> >>>>>>Dick Steflik >>>>>> >>>>>>Robert Jordan wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Dick Steflik wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>I can get Mono to build a command line program using MySql (and >>>>>>>> >>>>>>>> >it > > >>>>>>>>runs nicely) but I have to tell the C# compiler where the dll >>>>>>>> >>>>>>>> >is. > > >>>>>>>>How do I do this for ASP.NET using C#. >>>>>>>>I'm using Mono on FC5 with Apache and Mono 1.1.17.... >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>Copy the MySql assembly into the bin folder of your ASP.NET app >>>>>>>or install the assembly into the GAC and specify the assembly >>>>>>> >>>>>>> >name > > >>>>>>>in the web.config: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>You can obtain the full assembly name with >>>>>>> >>>>>>>gacutil -l | grep MySql >>>>>>> >>>>>>>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 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>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 >>> >>> >>> >>> >>> >>_______________________________________________ >>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 > >_______________________________________________ >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/20061023/46eec27c/attachment.html From steflik at binghamton.edu Mon Oct 23 13:17:07 2006 From: steflik at binghamton.edu (Dick Steflik) Date: Mon, 23 Oct 2006 13:17:07 -0400 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> Message-ID: <453CF913.9070804@binghamton.edu> Peter, OK, I've read the documentaion on Mono Assemblies and the GAC and feel reasonably comfortable with it. One thing it doesn't say is "what an assembly is" I guess I know that a .dll an be an assembly but are there other things that are assemblies? When I put the .dll (MtSql.Data.dll in ny application /bin directory, everything works OK ; but when I remove it and put the reference in web.config (just like Robert said to the compiler can't find it. Dick Steflik Binghamton University Bradley, Peter wrote: >Dick, > >I'm sorry to butt in, but I noticed things looked as though they might >start recursing. Infinitely, possibly :) > >First up: do you understand what the GAC is? > >Second: do you understand how the .NET Framework searches for referenced >assemblies? > >Third: do you understand what strongly named assemblies are, and how you >refer to them (i.e. with their strong name)? > >If you have a problem with any of these, perhaps we should take a step >back and explain some of those things first. If you already understand >all that stuff, please just ignore me and I promise I'll go away. > > >Peter > > >-----Original Message----- >From: mono-list-bounces at lists.ximian.com >[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan >Sent: 23 October 2006 15:40 >To: Mono-list at lists.ximian.com >Subject: Re: [Mono-list] How do i tell Mono (for ASP.NET,C#) where to >find MySQL.Data.MySqlClient > >Dick, > >steflik wrote: > > >>Thanks for the patience but I got the same result. If the >> >> >MySql.Data.dll > > >>isn't in the /bin directory the compuiler can't find it. This may >> >> >sound > > >>stupid but what directory shoiuld the .dll be in? >> >> > >In the GAC (Global Assembly Cache), see (1) below. > >Robert > > > >>Thanks, >> >>Dick Steflik >>Binghamton University >> >>Robert Jordan wrote: >> >> >> >>>Hi, >>> >>>Here we go: >>> >>>1) install MySql.Data into the GAC: >>> >>>gacutil -i MySql.Data.dll >>> >>>2) obtain MySql.Data's assembly name: >>> >>>gacutil -l MySql.Data >>> >>>The output should look like this (in one line), but >>>your version might be different: >>> >>>MySql.Data, Version=1.0.7.30073, Culture=neutral, >>>PublicKeyToken=8e323390df8d9ed4 >>> >>> >>>3) create "web.config": >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>4) create a demo page "demo.aspx" >>> >>><%@ Page %> >>><%@ Import namespace="MySql.Data.MySqlClient" %> >>> >>> >>> >>> >>> >>> >>> >>>Robert >>> >>> >>>steflik wrote: >>> >>> >>> >>> >>>>Robert, >>>>I'ver built the web.config and done everything you said to but Mono >>>>still can't find MySql.Data. >>>> >>>>I tried putting the MySql.Data.dll in the application /bin directory >>>> >>>> >and > > >>>>that seems to work but the better way to do this would be via the >>>>web.config. >>>> >>>>I'm trying to use Mono for an ASP.NET segment for a class I teach on >>>> >>>> >web > > >>>>programming here at the University and I really hate to have each of >>>> >>>> >the > > >>>>students place the .dll in their /bin directory. >>>> >>>>Dick Steflik >>>>Binghamton University >>>> >>>>Robert Jordan wrote: >>>> >>>> >>>> >>>> >>>> >>>>>Hi, >>>>> >>>>>You have to create web.config in the directory of the ASP.NET >>>>>application. Have a look at the test site that that gets >>>>>installed into $prefix/lib/xsp/test. >>>>> >>>>>MySql.Data.MySqlClient is just a namespace. The assembly is >>>>>MySql.Data. >>>>> >>>>>Robert >>>>> >>>>>steflik wrote: >>>>> >>>>> >>>>> >>>>> >>>>>>Robert, >>>>>>I'm new at this, where do I find the web.config file, I've been >>>>>> >>>>>> >looking > > >>>>>>around and it isn't obvious. Also, my the impot that is failing >>>>>> >>>>>> >is > > >>>>>>"import MySql.Data.MySqlClient"; is that the assembly you are >>>>>> >>>>>> >>>>>> >>>>>> >>>>>referring to? >>>>> >>>>> >>>>> >>>>> >>>>>>Dick Steflik >>>>>> >>>>>>Robert Jordan wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Dick Steflik wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>I can get Mono to build a command line program using MySql (and >>>>>>>> >>>>>>>> >it > > >>>>>>>>runs nicely) but I have to tell the C# compiler where the dll >>>>>>>> >>>>>>>> >is. > > >>>>>>>>How do I do this for ASP.NET using C#. >>>>>>>>I'm using Mono on FC5 with Apache and Mono 1.1.17.... >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>Copy the MySql assembly into the bin folder of your ASP.NET app >>>>>>>or install the assembly into the GAC and specify the assembly >>>>>>> >>>>>>> >name > > >>>>>>>in the web.config: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>You can obtain the full assembly name with >>>>>>> >>>>>>>gacutil -l | grep MySql >>>>>>> >>>>>>>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 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>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 >>> >>> >>> >>> >>> >>_______________________________________________ >>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 > >_______________________________________________ >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/20061023/b1009c09/attachment-0001.html From kobruleht2 at hot.ee Mon Oct 23 13:14:47 2006 From: kobruleht2 at hot.ee (Andrus) Date: Mon, 23 Oct 2006 20:14:47 +0300 Subject: [Mono-list] Npgsql.NpgsqlClosedState.Open An exception was thrown by the type initializer for System.Net.Dns References: <010301c6f62b$62d4fcf0$3205eb50@acer> <4e0601c6f6b9$d7b517b0$2300b3a8@Andrus> Message-ID: <4e3601c6f6c8$12b37240$2300b3a8@Andrus> >>> It looks like Mono can't find its machine.config. >>> How do you invoke mono.exe? >> >> I use shortcut icon in quick launch. Target is >> >> "C:\Program Files\Mono-1.1.17.1\bin\mono.exe" i:\mydir\myapp\myapp\bin\debug\myapp.exe > > Assure that the "run directory" of the shortcut is > "C:\Program Files\Mono-1.1.17.1\bin\". Thank you. This is my "run directory" but the problem persists. After deleting i:\mydir\myapp\myapp\bin\debug\myapp.exe.config file my application starts. So it seems that something in application config file causes this error. Why this confing file causes error ? Andrus.
From robertj at gmx.net Mon Oct 23 13:26:47 2006 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Oct 2006 19:26:47 +0200 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <453CF913.9070804@binghamton.edu> References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> Message-ID: Dick Steflik wrote: > When I put the .dll (MtSql.Data.dll in ny application /bin directory, > everything works OK ; but when I remove it and put the reference in > web.config (just like Robert said to the compiler can't find it. Did you install the assembly into the GAC as already told a few times? :-) Robert > > Dick Steflik > Binghamton University > > Bradley, Peter wrote: > >> Dick, >> >> I'm sorry to butt in, but I noticed things looked as though they might >> start recursing. Infinitely, possibly :) >> >> First up: do you understand what the GAC is? >> >> Second: do you understand how the .NET Framework searches for referenced >> assemblies? >> >> Third: do you understand what strongly named assemblies are, and how you >> refer to them (i.e. with their strong name)? >> >> If you have a problem with any of these, perhaps we should take a step >> back and explain some of those things first. If you already understand >> all that stuff, please just ignore me and I promise I'll go away. >> >> >> Peter >> >> >> -----Original Message----- >> From: mono-list-bounces at lists.ximian.com >> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan >> Sent: 23 October 2006 15:40 >> To: Mono-list at lists.ximian.com >> Subject: Re: [Mono-list] How do i tell Mono (for ASP.NET,C#) where to >> find MySQL.Data.MySqlClient >> >> Dick, >> >> steflik wrote: >> >> >>> Thanks for the patience but I got the same result. If the >>> >> MySql.Data.dll >> >>> isn't in the /bin directory the compuiler can't find it. This may >>> >> sound >> >>> stupid but what directory shoiuld the .dll be in? >>> >> >> In the GAC (Global Assembly Cache), see (1) below. >> >> Robert >> >> >> >>> Thanks, >>> >>> Dick Steflik >>> Binghamton University >>> >>> Robert Jordan wrote: >>> >>> >>>> Hi, >>>> >>>> Here we go: >>>> >>>> 1) install MySql.Data into the GAC: >>>> >>>> gacutil -i MySql.Data.dll >>>> >>>> 2) obtain MySql.Data's assembly name: >>>> >>>> gacutil -l MySql.Data >>>> >>>> The output should look like this (in one line), but >>>> your version might be different: >>>> >>>> MySql.Data, Version=1.0.7.30073, Culture=neutral, >>>> PublicKeyToken=8e323390df8d9ed4 >>>> >>>> >>>> 3) create "web.config": >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> 4) create a demo page "demo.aspx" >>>> >>>> <%@ Page %> >>>> <%@ Import namespace="MySql.Data.MySqlClient" %> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Robert >>>> >>>> >>>> steflik wrote: >>>> >>>> >>>> >>>>> Robert, >>>>> I'ver built the web.config and done everything you said to but Mono >>>>> still can't find MySql.Data. >>>>> >>>>> I tried putting the MySql.Data.dll in the application /bin directory >>>>> >> and >> >>>>> that seems to work but the better way to do this would be via the >>>>> web.config. >>>>> >>>>> I'm trying to use Mono for an ASP.NET segment for a class I teach on >>>>> >> web >> >>>>> programming here at the University and I really hate to have each of >>>>> >> the >> >>>>> students place the .dll in their /bin directory. >>>>> >>>>> Dick Steflik >>>>> Binghamton University >>>>> >>>>> Robert Jordan wrote: >>>>> >>>>> >>>>> >>>>>> Hi, >>>>>> >>>>>> You have to create web.config in the directory of the ASP.NET >>>>>> application. Have a look at the test site that that gets >>>>>> installed into $prefix/lib/xsp/test. >>>>>> >>>>>> MySql.Data.MySqlClient is just a namespace. The assembly is >>>>>> MySql.Data. >>>>>> >>>>>> Robert >>>>>> >>>>>> steflik wrote: >>>>>> >>>>>> >>>>>>> Robert, >>>>>>> I'm new at this, where do I find the web.config file, I've been >>>>>>> >> looking >> >> >>>>>>> around and it isn't obvious. Also, my the impot that is failing >>>>>>> >> is >> >> >>>>>>> "import MySql.Data.MySqlClient"; is that the assembly you are >>>>>>> >>>>>> referring to? >>>>>> >>>>>> >>>>>>> Dick Steflik >>>>>>> >>>>>>> Robert Jordan wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Dick Steflik wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> I can get Mono to build a command line program using MySql (and >>>>>>>>> >> it >> >> >>>>>>>>> runs nicely) but I have to tell the C# compiler where the dll >>>>>>>>> >> is. >> >> >>>>>>>>> How do I do this for ASP.NET using C#. >>>>>>>>> I'm using Mono on FC5 with Apache and Mono 1.1.17.... >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> Copy the MySql assembly into the bin folder of your ASP.NET app >>>>>>>> or install the assembly into the GAC and specify the assembly >>>>>>>> >> name >> >> >>>>>>>> in the web.config: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> You can obtain the full assembly name with >>>>>>>> >>>>>>>> gacutil -l | grep MySql >>>>>>>> >>>>>>>> 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>>> >>>> >>>> >>> _______________________________________________ >>> 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 >> >> _______________________________________________ >> 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 steflik at binghamton.edu Mon Oct 23 13:35:41 2006 From: steflik at binghamton.edu (Dick Steflik) Date: Mon, 23 Oct 2006 13:35:41 -0400 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> Message-ID: <453CFD6D.1030409@binghamton.edu> Robert, Yes, I have and when I look in the GAC using gacutil it says that it is there. Was I supposed to do something with the -package option on the gacutil command when I put it onto the GAC (I followed the direction on the MySql site and your instructions)? Dick Robert Jordan wrote: >Dick Steflik wrote: > > >>When I put the .dll (MtSql.Data.dll in ny application /bin directory, >>everything works OK ; but when I remove it and put the reference in >>web.config (just like Robert said to the compiler can't find it. >> >> > >Did you install the assembly into the GAC as already told >a few times? :-) > >Robert > > > >>Dick Steflik >>Binghamton University >> >>Bradley, Peter wrote: >> >> >> >>>Dick, >>> >>>I'm sorry to butt in, but I noticed things looked as though they might >>>start recursing. Infinitely, possibly :) >>> >>>First up: do you understand what the GAC is? >>> >>>Second: do you understand how the .NET Framework searches for referenced >>>assemblies? >>> >>>Third: do you understand what strongly named assemblies are, and how you >>>refer to them (i.e. with their strong name)? >>> >>>If you have a problem with any of these, perhaps we should take a step >>>back and explain some of those things first. If you already understand >>>all that stuff, please just ignore me and I promise I'll go away. >>> >>> >>>Peter >>> >>> >>>-----Original Message----- >>>From: mono-list-bounces at lists.ximian.com >>>[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan >>>Sent: 23 October 2006 15:40 >>>To: Mono-list at lists.ximian.com >>>Subject: Re: [Mono-list] How do i tell Mono (for ASP.NET,C#) where to >>>find MySQL.Data.MySqlClient >>> >>>Dick, >>> >>>steflik wrote: >>> >>> >>> >>> >>>>Thanks for the patience but I got the same result. If the >>>> >>>> >>>> >>>MySql.Data.dll >>> >>> >>> >>>>isn't in the /bin directory the compuiler can't find it. This may >>>> >>>> >>>> >>>sound >>> >>> >>> >>>>stupid but what directory shoiuld the .dll be in? >>>> >>>> >>>> >>>In the GAC (Global Assembly Cache), see (1) below. >>> >>>Robert >>> >>> >>> >>> >>> >>>>Thanks, >>>> >>>>Dick Steflik >>>>Binghamton University >>>> >>>>Robert Jordan wrote: >>>> >>>> >>>> >>>> >>>>>Hi, >>>>> >>>>>Here we go: >>>>> >>>>>1) install MySql.Data into the GAC: >>>>> >>>>>gacutil -i MySql.Data.dll >>>>> >>>>>2) obtain MySql.Data's assembly name: >>>>> >>>>>gacutil -l MySql.Data >>>>> >>>>>The output should look like this (in one line), but >>>>>your version might be different: >>>>> >>>>>MySql.Data, Version=1.0.7.30073, Culture=neutral, >>>>>PublicKeyToken=8e323390df8d9ed4 >>>>> >>>>> >>>>>3) create "web.config": >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>4) create a demo page "demo.aspx" >>>>> >>>>><%@ Page %> >>>>><%@ Import namespace="MySql.Data.MySqlClient" %> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>Robert >>>>> >>>>> >>>>>steflik wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Robert, >>>>>>I'ver built the web.config and done everything you said to but Mono >>>>>>still can't find MySql.Data. >>>>>> >>>>>>I tried putting the MySql.Data.dll in the application /bin directory >>>>>> >>>>>> >>>>>> >>>and >>> >>> >>> >>>>>>that seems to work but the better way to do this would be via the >>>>>>web.config. >>>>>> >>>>>>I'm trying to use Mono for an ASP.NET segment for a class I teach on >>>>>> >>>>>> >>>>>> >>>web >>> >>> >>> >>>>>>programming here at the University and I really hate to have each of >>>>>> >>>>>> >>>>>> >>>the >>> >>> >>> >>>>>>students place the .dll in their /bin directory. >>>>>> >>>>>>Dick Steflik >>>>>>Binghamton University >>>>>> >>>>>>Robert Jordan wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Hi, >>>>>>> >>>>>>>You have to create web.config in the directory of the ASP.NET >>>>>>>application. Have a look at the test site that that gets >>>>>>>installed into $prefix/lib/xsp/test. >>>>>>> >>>>>>>MySql.Data.MySqlClient is just a namespace. The assembly is >>>>>>>MySql.Data. >>>>>>> >>>>>>>Robert >>>>>>> >>>>>>>steflik wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>Robert, >>>>>>>>I'm new at this, where do I find the web.config file, I've been >>>>>>>> >>>>>>>> >>>>>>>> >>>looking >>> >>> >>> >>> >>>>>>>>around and it isn't obvious. Also, my the impot that is failing >>>>>>>> >>>>>>>> >>>>>>>> >>>is >>> >>> >>> >>> >>>>>>>>"import MySql.Data.MySqlClient"; is that the assembly you are >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>referring to? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>Dick Steflik >>>>>>>> >>>>>>>>Robert Jordan wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>Dick Steflik wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>I can get Mono to build a command line program using MySql (and >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>it >>> >>> >>> >>> >>>>>>>>>>runs nicely) but I have to tell the C# compiler where the dll >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>is. >>> >>> >>> >>> >>>>>>>>>>How do I do this for ASP.NET using C#. >>>>>>>>>>I'm using Mono on FC5 with Apache and Mono 1.1.17.... >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>Copy the MySql assembly into the bin folder of your ASP.NET app >>>>>>>>>or install the assembly into the GAC and specify the assembly >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>name >>> >>> >>> >>> >>>>>>>>>in the web.config: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>You can obtain the full assembly name with >>>>>>>>> >>>>>>>>>gacutil -l | grep MySql >>>>>>>>> >>>>>>>>>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 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>_______________________________________________ >>>>>>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 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>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 >>> >>>_______________________________________________ >>>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 >> >> > >_______________________________________________ >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/20061023/8c63f4c9/attachment-0001.html From andreas.faerber at web.de Mon Oct 23 13:42:33 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Mon, 23 Oct 2006 19:42:33 +0200 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> Message-ID: <10FB5166-7A26-42EC-87BB-CB33B0C94905@web.de> Am 23.10.2006 um 19:26 schrieb Robert Jordan: > Dick Steflik wrote: >> When I put the .dll (MtSql.Data.dll in ny application /bin directory, >> everything works OK ; but when I remove it and put the reference in >> web.config (just like Robert said to the compiler can't find it. > > Did you install the assembly into the GAC as already told > a few times? :-) Wasn't there a recent discussion about putting an assembly into Mono's GAC not being enough? I thought I overheard someone mentioning one additionally needed a symlink in one of the Mono directories for mcs to find it. Don't know much about ASP.NET though and whether this applies here, too. Andreas From robertj at gmx.net Mon Oct 23 14:07:36 2006 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Oct 2006 20:07:36 +0200 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <10FB5166-7A26-42EC-87BB-CB33B0C94905@web.de> References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> <10FB5166-7A26-42EC-87BB-CB33B0C94905@web.de> Message-ID: Andreas F?rber wrote: > Am 23.10.2006 um 19:26 schrieb Robert Jordan: > >> Dick Steflik wrote: >>> When I put the .dll (MtSql.Data.dll in ny application /bin directory, >>> everything works OK ; but when I remove it and put the reference in >>> web.config (just like Robert said to the compiler can't find it. >> Did you install the assembly into the GAC as already told >> a few times? :-) > > Wasn't there a recent discussion about putting an assembly into > Mono's GAC not being enough? I thought I overheard someone mentioning > one additionally needed a symlink in one of the Mono directories for > mcs to find it. Don't know much about ASP.NET though and whether this > applies here, too. That's necessary when compiling from the command line. ASP.NET uses the same compiler, but one can specify the assemblies either by their assembly name using the web.config or by dropping them into the bin directory of the application. Symlinking assemblies in $prefix/lib/mono/x.x/ should work with both ASP.NET and normal apps, but it's a hack. Normal apps and ASP.NET codebehind should use pkgconfig, whereas plain ASP.NET (the aspx files) should use web.config or the bin folder. Robert From P.Bradley at dsl.pipex.com Mon Oct 23 14:17:06 2006 From: P.Bradley at dsl.pipex.com (Peter Bradley) Date: Mon, 23 Oct 2006 19:17:06 +0100 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <453CF067.7080005@binghamton.edu> References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF067.7080005@binghamton.edu> Message-ID: <453D0722.7030007@dsl.pipex.com> Ysgrifennodd Dick Steflik: > Peter, > Thanks for butting in; answering your questions: > First: I think the GAC is kinda like the Windows registry in that it > allows me to make use of Windows dynamic link libraries that haven't > been written to us windows specific APIs Well, not really. The GAC is a physical file locations holding physical directories and physical files. Assemblies are stored in the GAC, an operation that you carry out using the gacutil tool. > Second: Focusing only on ASP.NET it searches for a referenced assembly > in web.config then in the application /bin director or vice versa; or > is there somthing else happening?. Again, not really. If I understand things correctly, when the runtime searches for a referenced assembly it first looks in the GAC and then in the same directory as the assembly it's executing. The Web.config entry simply tells it the name of the assembly it needs to look for. I may be less than 100% accurate on this; but someone will correct me if I'm wrong. > Third: this is pretty vague to me Giving an assembly a strong name means blessing it with a public and private key. You use the tool called sn.exe to do this. If you do sn -h sn, you get this output: peter at linux:~> sn -h sn Mono StrongName - version 1.1.8.0 StrongName utility for signing assemblies Copyright 2002, 2003 Motus Technologies. Copyright 2004-2005 Novell. BSD licensed. Usage: sn [-q | -quiet] options [parameters] -q | -quiet Quiet mode (minimal display) StrongName signing options -D assembly1 assembly2 Compare assembly1 and assembly2 (without signatures) -k keypair.snk Create a new keypair in the specified file -R assembly keypair.snk Resign the assembly with the specified StrongName key file -Rc assembly container Resign the assembly with the specified CSP container -t file Show the public key from the specified file -tp file Show the public key and pk token from the specified file -T assembly Show the public key from the specified assembly -Tp assembly Show the public key and pk token from the specified assembly -v assembly Verify the specified assembly signature -vf assembly Verify the specified assembly signature (even if disabled). <1> Currently not implemented in the tool peter at linux:~> To give an assembly a strong name you first need to create your key pair (sn -k ). Keep your private key safe somewhere. In your project, edit AssemblyInfo.cs. Give your version a fixed version number (no * in it), and point to your keypair file (the one you just created). Something like this: |[assembly: AssemblyCulture("")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("C:\\myKeyPair.snk")] [assembly: AssemblyKeyName("")]| Now recompile. This will compile your assembly with a strong name. You can't put anything in the GAC until it has a strong name. Finally, use gacutil as outlined by Robert to put your assembly in the GAC, and alter Web.config to look for the strongly named assembly. > When I look in the GAC using gacutil I can see everything that has > been registered but I don't see anything that says where the > assemblies are physically located. Are you on linux? On my SuSE box, the GAC is at /usr/lib/mono/gac. Each assembly has a directory. Under that each version of the assembly has a directory. The assemblies themselves along with any configuration files are in these directories. HTH. And I hope anyone more expert than me will correct any errors, ambiguities or over-simplifications. Cheers Peter From P.Bradley at dsl.pipex.com Mon Oct 23 14:19:59 2006 From: P.Bradley at dsl.pipex.com (Peter Bradley) Date: Mon, 23 Oct 2006 19:19:59 +0100 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <453CF913.9070804@binghamton.edu> References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> Message-ID: <453D07CF.5000007@dsl.pipex.com> Ysgrifennodd Dick Steflik: > Peter, > OK, I've read the documentaion on Mono Assemblies and the GAC and feel > reasonably comfortable with it. One thing it doesn't say is "what an > assembly is" I guess I know that a .dll an be an assembly but are > there other things that are assemblies? Yeah. Just think of them as being DLLs and EXE files. If you need to get more sophisticated than that, you'll know it! > > When I put the .dll (MtSql.Data.dll in ny application /bin directory, > everything works OK ; but when I remove it and put the reference in > web.config (just like Robert said to the compiler can't find it. You must refer to the correct strong name. Try reading this: http://www.c-sharpcorner.com/Code/2003/March/StrongNamedAssemblies.asp It's windows-centric, so substitute your Linux paths for Windows paths &c Peter From robertj at gmx.net Mon Oct 23 14:26:46 2006 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Oct 2006 20:26:46 +0200 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <453CFD6D.1030409@binghamton.edu> References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> <453CFD6D.1030409@binghamton.edu> Message-ID: Dick Steflik wrote: > Robert, > Yes, I have and when I look in the GAC using gacutil it says that it is > there. Was I supposed to do something with the -package option on the > gacutil command when I put it onto the GAC (I followed the direction on > the MySql site and your instructions)? I was pretty sure you're trying to run an aspx file, but now I have the impression you're compiling from the command line. If so, install the assembly using pkgconfig -package mysql -i MySql.Data and compile using mcs -lib:/usr/lib/mono/MySql -r:MySql.Data ... Replace /usr with your mono prefix. Robert > > Dick > > Robert Jordan wrote: > >> Dick Steflik wrote: >> >> >>> When I put the .dll (MtSql.Data.dll in ny application /bin directory, >>> everything works OK ; but when I remove it and put the reference in >>> web.config (just like Robert said to the compiler can't find it. >>> >> >> Did you install the assembly into the GAC as already told >> a few times? :-) >> >> Robert >> >> >> >>> Dick Steflik >>> Binghamton University >>> >>> Bradley, Peter wrote: >>> >>> >>>> Dick, >>>> >>>> I'm sorry to butt in, but I noticed things looked as though they might >>>> start recursing. Infinitely, possibly :) >>>> >>>> First up: do you understand what the GAC is? >>>> >>>> Second: do you understand how the .NET Framework searches for >>>> referenced >>>> assemblies? >>>> >>>> Third: do you understand what strongly named assemblies are, and how >>>> you >>>> refer to them (i.e. with their strong name)? >>>> >>>> If you have a problem with any of these, perhaps we should take a step >>>> back and explain some of those things first. If you already understand >>>> all that stuff, please just ignore me and I promise I'll go away. >>>> >>>> >>>> Peter >>>> >>>> >>>> -----Original Message----- >>>> From: mono-list-bounces at lists.ximian.com >>>> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan >>>> Sent: 23 October 2006 15:40 >>>> To: Mono-list at lists.ximian.com >>>> Subject: Re: [Mono-list] How do i tell Mono (for ASP.NET,C#) where to >>>> find MySQL.Data.MySqlClient >>>> >>>> Dick, >>>> >>>> steflik wrote: >>>> >>>> >>>> >>>>> Thanks for the patience but I got the same result. If the >>>>> >>>>> >>>> MySql.Data.dll >>>> >>>>> isn't in the /bin directory the compuiler can't find it. This may >>>>> >>>>> >>>> sound >>>> >>>>> stupid but what directory shoiuld the .dll be in? >>>>> >>>>> >>>> In the GAC (Global Assembly Cache), see (1) below. >>>> >>>> Robert >>>> >>>> >>>> >>>> >>>>> Thanks, >>>>> >>>>> Dick Steflik >>>>> Binghamton University >>>>> >>>>> Robert Jordan wrote: >>>>> >>>>> >>>>> >>>>>> Hi, >>>>>> >>>>>> Here we go: >>>>>> >>>>>> 1) install MySql.Data into the GAC: >>>>>> >>>>>> gacutil -i MySql.Data.dll >>>>>> >>>>>> 2) obtain MySql.Data's assembly name: >>>>>> >>>>>> gacutil -l MySql.Data >>>>>> >>>>>> The output should look like this (in one line), but >>>>>> your version might be different: >>>>>> >>>>>> MySql.Data, Version=1.0.7.30073, Culture=neutral, >>>>>> PublicKeyToken=8e323390df8d9ed4 >>>>>> >>>>>> >>>>>> 3) create "web.config": >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> 4) create a demo page "demo.aspx" >>>>>> >>>>>> <%@ Page %> >>>>>> <%@ Import namespace="MySql.Data.MySqlClient" %> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Robert >>>>>> >>>>>> steflik wrote: >>>>>> >>>>>> >>>>>> >>>>>>> Robert, >>>>>>> I'ver built the web.config and done everything you said to but >>>>>>> Mono still can't find MySql.Data. >>>>>>> >>>>>>> I tried putting the MySql.Data.dll in the application /bin directory >>>>>>> >>>> and >>>> >>>>>>> that seems to work but the better way to do this would be via the >>>>>>> web.config. >>>>>>> >>>>>>> I'm trying to use Mono for an ASP.NET segment for a class I teach on >>>>>>> >>>> web >>>> >>>>>>> programming here at the University and I really hate to have each of >>>>>>> >>>> the >>>> >>>>>>> students place the .dll in their /bin directory. >>>>>>> >>>>>>> Dick Steflik >>>>>>> Binghamton University >>>>>>> >>>>>>> Robert Jordan wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> You have to create web.config in the directory of the ASP.NET >>>>>>>> application. Have a look at the test site that that gets >>>>>>>> installed into $prefix/lib/xsp/test. >>>>>>>> >>>>>>>> MySql.Data.MySqlClient is just a namespace. The assembly is >>>>>>>> MySql.Data. >>>>>>>> >>>>>>>> Robert >>>>>>>> >>>>>>>> steflik wrote: >>>>>>>> >>>>>>>>> Robert, >>>>>>>>> I'm new at this, where do I find the web.config file, I've been >>>>>>>>> >>>> looking >>>> >>>> >>>> >>>>>>>>> around and it isn't obvious. Also, my the impot that is failing >>>>>>>>> >>>> is >>>> >>>> >>>> >>>>>>>>> "import MySql.Data.MySqlClient"; is that the assembly you >>>>>>>>> are >>>>>>>> referring to? >>>>>>>> >>>>>>>>> Dick Steflik >>>>>>>>> >>>>>>>>> Robert Jordan wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>>> Dick Steflik wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> I can get Mono to build a command line program using MySql (and >>>>>>>>>>> >>>> it >>>> >>>> >>>> >>>>>>>>>>> runs nicely) but I have to tell the C# compiler where the dll >>>>>>>>>>> >>>> is. >>>> >>>> >>>> >>>>>>>>>>> How do I do this for ASP.NET using C#. >>>>>>>>>>> I'm using Mono on FC5 with Apache and Mono 1.1.17.... >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> Copy the MySql assembly into the bin folder of your ASP.NET app >>>>>>>>>> or install the assembly into the GAC and specify the assembly >>>>>>>>>> >>>> name >>>> >>>> >>>> >>>>>>>>>> in the web.config: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> You can obtain the full assembly name with >>>>>>>>>> >>>>>>>>>> gacutil -l | grep MySql >>>>>>>>>> >>>>>>>>>> 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 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>>> _______________________________________________ >>>> 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 >>> >> >> _______________________________________________ >> 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 robertj at gmx.net Mon Oct 23 14:46:27 2006 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Oct 2006 20:46:27 +0200 Subject: [Mono-list] Npgsql.NpgsqlClosedState.Open An exception was thrown by the type initializer for System.Net.Dns In-Reply-To: <4e3601c6f6c8$12b37240$2300b3a8@Andrus> References: <010301c6f62b$62d4fcf0$3205eb50@acer> <4e0601c6f6b9$d7b517b0$2300b3a8@Andrus> <4e3601c6f6c8$12b37240$2300b3a8@Andrus> Message-ID: Andrus wrote: >>>> It looks like Mono can't find its machine.config. >>>> How do you invoke mono.exe? >>> I use shortcut icon in quick launch. Target is >>> >>> "C:\Program Files\Mono-1.1.17.1\bin\mono.exe" i:\mydir\myapp\myapp\bin\debug\myapp.exe >> Assure that the "run directory" of the shortcut is >> "C:\Program Files\Mono-1.1.17.1\bin\". > > Thank you. This is my "run directory" but the problem persists. > After deleting i:\mydir\myapp\myapp\bin\debug\myapp.exe.config file my application starts. > So it seems that something in application config file causes this error. > Why this confing file causes error ? The content of the config is probably irrelevant. I guess solely the existence of the config is triggering the error. Restore the .config and try to start the app from the command line (use the "Mono-1.1.17.1 Command Line" shortcut). Does the error persist? Robert From steflik at binghamton.edu Mon Oct 23 14:50:17 2006 From: steflik at binghamton.edu (Dick Steflik) Date: Mon, 23 Oct 2006 14:50:17 -0400 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> <453CFD6D.1030409@binghamton.edu> Message-ID: <453D0EE9.8060401@binghamton.edu> Robert, You were correct the first time. I am trying to run an aspx file; I'm not trying to any command line mono stuff (desktop applications) only aspx stuff with associated C# file that get compiled automatically. Dick > > From robertj at gmx.net Mon Oct 23 14:56:28 2006 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Oct 2006 20:56:28 +0200 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <453D0EE9.8060401@binghamton.edu> References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> <453CFD6D.1030409@binghamton.edu> <453D0EE9.8060401@binghamton.edu> Message-ID: Dick Steflik wrote: > Robert, > You were correct the first time. I am trying to run an aspx file; I'm > not trying to any command line mono stuff (desktop applications) only > aspx stuff with associated C# file that get compiled automatically. Hmm, I don't know what I could be then. Which Mono version are you using? My step-by-step sample was tested with 1.1.17. Robert From steflik at binghamton.edu Mon Oct 23 15:03:12 2006 From: steflik at binghamton.edu (Dick Steflik) Date: Mon, 23 Oct 2006 15:03:12 -0400 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> <453CFD6D.1030409@binghamton.edu> <453D0EE9.8060401@binghamton.edu> Message-ID: <453D11F0.3050304@binghamton.edu> Robert, Yep, I'm using the same thing. Just out of curiosity....what directory do you have MySql.Data.dll in? Dick Robert Jordan wrote: >Dick Steflik wrote: > > >>Robert, >>You were correct the first time. I am trying to run an aspx file; I'm >>not trying to any command line mono stuff (desktop applications) only >>aspx stuff with associated C# file that get compiled automatically. >> >> > >Hmm, I don't know what I could be then. Which Mono version >are you using? My step-by-step sample was tested with 1.1.17. > >Robert > >_______________________________________________ >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/20061023/2172c538/attachment.html From robertj at gmx.net Mon Oct 23 15:41:58 2006 From: robertj at gmx.net (Robert Jordan) Date: Mon, 23 Oct 2006 21:41:58 +0200 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <453D11F0.3050304@binghamton.edu> References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> <453CFD6D.1030409@binghamton.edu> <453D0EE9.8060401@binghamton.edu> <453D11F0.3050304@binghamton.edu> Message-ID: Dick Steflik wrote: > Robert, > Yep, I'm using the same thing. Just out of curiosity....what directory > do you have MySql.Data.dll in? Mine is only in the GAC, because from C# files I'm referencing it through a factory: http://www.mono-project.com/Provider_Factory Robert From P.Bradley at dsl.pipex.com Mon Oct 23 16:37:29 2006 From: P.Bradley at dsl.pipex.com (Peter Bradley) Date: Mon, 23 Oct 2006 21:37:29 +0100 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <453D11F0.3050304@binghamton.edu> References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> <453CFD6D.1030409@binghamton.edu> <453D0EE9.8060401@binghamton.edu> <453D11F0.3050304@binghamton.edu> Message-ID: <453D2809.3050604@dsl.pipex.com> Ysgrifennodd Dick Steflik: > Robert, > Yep, I'm using the same thing. Just out of curiosity....what > directory do you have MySql.Data.dll in? > > Dick Dick, There's some piece missing here, I'm sure. Could you post the exact path to your MySql.Data.dll file in the GAC (i.e. something like /usr/lib/mono/gac/MySql.Data/1.0.7.30073__8e323390df8d9ed4/MySqlData.dll)? Could you also post your Web.config file, please? Cheers Peter From steflik at binghamton.edu Mon Oct 23 17:28:41 2006 From: steflik at binghamton.edu (Dick Steflik) Date: Mon, 23 Oct 2006 17:28:41 -0400 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <453D2809.3050604@dsl.pipex.com> References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> <453CFD6D.1030409@binghamton.edu> <453D0EE9.8060401@binghamton.edu> <453D11F0.3050304@binghamton.edu> <453D2809.3050604@dsl.pipex.com> Message-ID: <453D3409.9020301@binghamton.edu> Peter & Robert, /home/steflik.mono-1.1.17.1/lib/mono/gac/MySql.Data/1.0.7.30073__8e323390df8d9ed4/MySql.Data.dll Have to go teach a class for the next couple of hours, I'll be on later though. Thanks for the help. Dick Peter Bradley wrote: > Ysgrifennodd Dick Steflik: > >> Robert, >> Yep, I'm using the same thing. Just out of curiosity....what >> directory do you have MySql.Data.dll in? >> >> Dick > > Dick, > > There's some piece missing here, I'm sure. > > Could you post the exact path to your MySql.Data.dll file in the GAC > (i.e. something like > /usr/lib/mono/gac/MySql.Data/1.0.7.30073__8e323390df8d9ed4/MySqlData.dll)? > > > Could you also post your Web.config file, please? > > Cheers > > > Peter > > From P.Bradley at dsl.pipex.com Mon Oct 23 18:07:55 2006 From: P.Bradley at dsl.pipex.com (Peter Bradley) Date: Mon, 23 Oct 2006 23:07:55 +0100 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <453D3409.9020301@binghamton.edu> References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> <453CFD6D.1030409@binghamton.edu> <453D0EE9.8060401@binghamton.edu> <453D11F0.3050304@binghamton.edu> <453D2809.3050604@dsl.pipex.com> <453D3409.9020301@binghamton.edu> Message-ID: <453D3D3B.5000006@dsl.pipex.com> Ysgrifennodd Dick Steflik: > Peter & Robert, > /home/steflik.mono-1.1.17.1/lib/mono/gac/MySql.Data/1.0.7.30073__8e323390df8d9ed4/MySql.Data.dll > > > > > > > > > > > > > Have to go teach a class for the next couple of hours, I'll be on > later though. Thanks for the help. > > Dick Robert - would Apache (mod_mono) be able to find and read the GAC at that location? Would it have permissions? Sorry, it's beyond my ken. Peter From pbradley at uwic.ac.uk Tue Oct 24 02:37:25 2006 From: pbradley at uwic.ac.uk (Bradley, Peter) Date: Tue, 24 Oct 2006 07:37:25 +0100 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient Message-ID: <033E2875D2616747AA6FC2C0DF8072AC0107A2EF@mailll02.internal.uwic.ac.uk> -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Peter Bradley Sent: 23 October 2006 23:08 Robert - would Apache (mod_mono) be able to find and read the GAC at that location? Would it have permissions? Sorry, it's beyond my ken. Peter _________________ Of course it occurred to me as I dropped off to sleep last night that you may not be using Apache ... What Web server are you using? Under what uid is the server process running? For example, Apache usually runs as wwwrun. If this is the same uid responsible for xsp/mod_mono, does it have permission to read (and execute?) stuff that's in your home directory? On my box, for example, only I have permission to read stuff in my home directory and sub-directories. I'm a bit out of my depth here - just trying out a few ideas in the hope they'll perhaps inspire someone more knowledgeable. HTH Peter From NGoldstein at nds.com Tue Oct 24 03:03:12 2006 From: NGoldstein at nds.com (Goldstein, Nachum (Jonathan)) Date: Tue, 24 Oct 2006 09:03:12 +0200 Subject: [Mono-list] Question re: mono app deployment on Windows In-Reply-To: Message-ID: Thanks. I will try mkbundle. http://www.mono-project.com/Guide:Running_Mono_Applications has: Bundles (Linux only) -----Original Message----- From: Robert Jordan [mailto:robertj at gmx.net] Sent: Monday, October 23, 2006 17:59 To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] Question re: mono app deployment on Windows Goldstein, Nachum (Jonathan) wrote: > I searched all the available documentation, and the only deployment > instructions I find are: > > 1. install mono on the target host > 2. use mkbundle > > 1 is unacceptable - for the same reasons that we cannot force an > installation .NET. > > 2 is listed in the documentation as being available only on linux. Mkbundle works on Windows. Where did you read it doesn't? > So would someone please answer the following: > > 1. What is the minimum runtime file-set required in order to run a > mono app on a "clean" host? Your assemblies, their referenced system assemblies and all DLLs installed into Mono's bin directory. Robert *********************************************************************************** This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message. *********************************************************************************** From pbradley at uwic.ac.uk Tue Oct 24 08:39:37 2006 From: pbradley at uwic.ac.uk (Bradley, Peter) Date: Tue, 24 Oct 2006 13:39:37 +0100 Subject: [Mono-list] FW: How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient Message-ID: <033E2875D2616747AA6FC2C0DF8072AC0107A48D@mailll02.internal.uwic.ac.uk> OK. You're using Apache. Presumably it's running as user wwwrun. The question is, can that user access the gac, and if so what kind of access does it have? Presumably you've aliased the directory holding your asp.net application in your apache configuration so that it becomes, in effect, a part of apache's file system - and you will have had to have granted sufficient permissions to the apache user for it to do this. So clearly it can access anything in the /bin folder. That's not a mystery, I don't think. My best guess as to what's happening is that this user doesn't have the correct permissions on the gac: but I could be way off beam. I just wish some else would jump in - because I'm not on familiar territory at all here. One advantage, I suppose, of having the gac at /usr/lib/mono/gac is that you know everyone can access it. Another question occurs to me. If you're using this for a class exercise, how will the students' code access the gac if it's buried in your private file system? HTH Peter -----Original Message----- From: steflik [mailto:steflik at binghamton.edu] Sent: 24 October 2006 13:09 To: Bradley, Peter Subject: Re: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient Good morning gentlemen, I am running Apache on Fedora Core 5, I did a ps and a grep for you on apache , here it is: apache 1891 0.0 1.4 24644 7608 ? S Oct23 0:00 /usr/sbin/httpd apache 1894 0.0 1.3 24844 7072 ? S Oct23 0:00 /usr/sbin/httpd apache 1897 0.0 1.3 24684 6792 ? S Oct23 0:00 /usr/sbin/httpd apache 1900 0.0 1.3 24672 6776 ? S Oct23 0:00 /usr/sbin/httpd apache 1902 0.0 1.3 24596 6760 ? S Oct23 0:00 /usr/sbin/httpd apache 1904 0.0 1.3 24596 6776 ? S Oct23 0:00 /usr/sbin/httpd apache 1907 0.0 1.3 24584 6760 ? S Oct23 0:00 /usr/sbin/httpd apache 1909 0.0 1.3 21920 6980 ? Ssl Oct23 0:00 /usr/bin/mono /usr/lib/mono/1.0/m$ apache 1910 0.0 1.3 24592 6788 ? S Oct23 0:00 /usr/sbin/httpd apache 3279 0.0 1.3 24596 7204 ? S Oct23 0:00 /usr/sbin/httpd steflik 8038 0.0 0.1 3912 664 pts/2 R+ 08:03 0:00 grep apache Remember, everything seems to work OK if i put the .dll in /home/steflik/public_html/bin. Dick Bradley, Peter wrote: >-----Original Message----- >From: mono-list-bounces at lists.ximian.com >[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Peter Bradley >Sent: 23 October 2006 23:08 > >Robert - would Apache (mod_mono) be able to find and read the GAC at >that location? Would it have permissions? Sorry, it's beyond my ken. > > >Peter > >_________________ > >Of course it occurred to me as I dropped off to sleep last night that >you may not be using Apache ... > >What Web server are you using? Under what uid is the server process >running? For example, Apache usually runs as wwwrun. If this is the >same uid responsible for xsp/mod_mono, does it have permission to read >(and execute?) stuff that's in your home directory? On my box, for >example, only I have permission to read stuff in my home directory and >sub-directories. > >I'm a bit out of my depth here - just trying out a few ideas in the hope >they'll perhaps inspire someone more knowledgeable. > >HTH > > >Peter > > > > > From robertj at gmx.net Tue Oct 24 08:45:38 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 24 Oct 2006 14:45:38 +0200 Subject: [Mono-list] FW: How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <033E2875D2616747AA6FC2C0DF8072AC0107A48D@mailll02.internal.uwic.ac.uk> References: <033E2875D2616747AA6FC2C0DF8072AC0107A48D@mailll02.internal.uwic.ac.uk> Message-ID: > -----Original Message----- > From: steflik [mailto:steflik at binghamton.edu] > Sent: 24 October 2006 13:09 > To: Bradley, Peter > Subject: Re: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to > find MySQL.Data.MySqlClient > > Good morning gentlemen, > > I am running Apache on Fedora Core 5, I did a ps and a grep for you on > apache , here it is: > > apache 1909 0.0 1.3 21920 6980 ? Ssl Oct23 0:00 > /usr/bin/mono /usr/lib/mono/1.0/m$ /usr/bin/mono is another mono installation. In your previous mail you showed us another Mono path: /home/steflik.mono-1.1.17.1/ MySql.Data must be installed in the GAC of the /usr/bin/mono installation. Robert From pbradley at uwic.ac.uk Tue Oct 24 08:48:07 2006 From: pbradley at uwic.ac.uk (Bradley, Peter) Date: Tue, 24 Oct 2006 13:48:07 +0100 Subject: [Mono-list] Security and Firefox 2.0 Message-ID: <033E2875D2616747AA6FC2C0DF8072AC0107A497@mailll02.internal.uwic.ac.uk> I wonder if I could pick some brains? According to the BBC: "Firefox 2.0 also has an improved session restoration system that will let users resurrect tabbed webpages they accidentally closed or will re-start a net session at the point before a crash." We already have difficulties with tabbed browsers in the sense that if a user closes a tab, it doesn't close the session so users (and therefore potentially others if the user leaves the machine unguarded) can jump back into a session. Does the feature above mean life is going to be even more difficult? Will sessions even be restored if the browser is closed and re-opened? This is very important to us, because many of our applications run on computers in public access areas. So they do get left unguarded, and the urls to access the systems are obviously well known: but they do deal with sensitive information, like disability data &c. Or is there something in the .NET security model we should be using that we've missed? Thanks Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061024/67c0fe4a/attachment.html From madars.vitolins at gmail.com Tue Oct 24 09:54:01 2006 From: madars.vitolins at gmail.com (Madars Vitolins) Date: Tue, 24 Oct 2006 16:54:01 +0300 Subject: [Mono-list] Compiling and running ASP.NET 2.0 applications Message-ID: <3c5e57bd0610240654m77182a70j4f2ca06249bbba6c@mail.gmail.com> Hi Sirs, Is somewhere manual how to do this? I am using VS 2005 for building apps. Some time ago I tried to run ASP.NET 1.1 apps and all was OK. But with asp.net 2.0 and "App_Code" stuff it seems that it doesn't work. To run ASP.NET 2.0 I need to fully compile all the source in binary dll manually? (*aspx.cs files too?). And What are file paths should be used? ./bin for dll? . - for aspx, and other stuff, like web.config.... Running the uncompiled VS2005 created project with XSP2 I got following error: XML Parsing Error: no *element* found Location: http://127.0.0.1:1234/Default.aspx Line Number 1, Column 1: Thanks a lot in advance, Madars. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061024/68f9aa49/attachment.html From robertj at gmx.net Tue Oct 24 10:12:52 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 24 Oct 2006 16:12:52 +0200 Subject: [Mono-list] Security and Firefox 2.0 In-Reply-To: <033E2875D2616747AA6FC2C0DF8072AC0107A497@mailll02.internal.uwic.ac.uk> References: <033E2875D2616747AA6FC2C0DF8072AC0107A497@mailll02.internal.uwic.ac.uk> Message-ID: Bradley, Peter wrote: > I wonder if I could pick some brains? > > According to the BBC: > > "Firefox 2.0 also has an improved session restoration system that will > let users resurrect tabbed webpages they accidentally closed or will > re-start a net session at the point before a crash." > > We already have difficulties with tabbed browsers in the sense that if a > user closes a tab, it doesn't close the session so users (and therefore > potentially others if the user leaves the machine unguarded) can jump > back into a session. Does the feature above mean life is going to be > even more difficult? Will sessions even be restored if the browser is > closed and re-opened? This is very important to us, because many of our > applications run on computers in public access areas. So they do get > left unguarded, and the urls to access the systems are obviously well > known: but they do deal with sensitive information, like disability data > &c. > > Or is there something in the .NET security model we should be using that > we've missed? I'm supposing you mean ASP.NET. By default, ASP.NET sessions expire after 10 minutes of inactivity. This can be controlled with web.config's setting. During this time window, the browser can be recycled w/out losing the session. However, sensitive information is usually protected by an additional authentication layer. If this layer employs cookies, their expiration must not be set => browsers will not store the cookies on the disk either => recycling the browser kills the session. If a browser doesn't respect the empty expiration value, then ASP.NET (or any other web server framework that uses cookies for authentication) can't do nothing about it. Robert From pbradley at uwic.ac.uk Tue Oct 24 10:46:09 2006 From: pbradley at uwic.ac.uk (Bradley, Peter) Date: Tue, 24 Oct 2006 15:46:09 +0100 Subject: [Mono-list] Security and Firefox 2.0 Message-ID: <033E2875D2616747AA6FC2C0DF8072AC0107A507@mailll02.internal.uwic.ac.uk> Nice one, Robert. We'd missed the one about the expiration of the authentication cookie. I'm not sure how we avoid setting it though. By way of explanation, here's the way we set the authentication cookie: //add user groups (roles in MS-speak) to session FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, txtUid.Text, DateTime.Now, DateTime.Now.AddMinutes(Session.Timeout), false, groups.ToString()); //Now encrypt the ticket string encryptedTicket = FormsAuthentication.Encrypt(authTicket); // Create a cookie and add the encrypted ticket to the // cookie as data HttpCookie authCookie = new HttpCookie( FormsAuthentication.FormsCookieName, encryptedTicket); //Add the cookie to the outgoing cookies collection Response.Cookies.Add(authCookie); I'm not quite sure how we avoid setting some sort of time in the FormsAuthenticationTicket because it wants a DateTime value (which as you know cannot be null). The actual cookie itself is constructed from the ticket. Now, does this mean the cookie has an expiration or not. Our tests suggest it does. If we use the HttpCookieInstance.Expires(DateTime dt) method, once again we have to give it a value, because it expects a DateTime. Cheers (and thanks) Peter -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan Sent: 24 October 2006 15:13 To: Mono-list at lists.ximian.com Subject: Re: [Mono-list] Security and Firefox 2.0 Bradley, Peter wrote: > I wonder if I could pick some brains? > > According to the BBC: > > "Firefox 2.0 also has an improved session restoration system that will > let users resurrect tabbed webpages they accidentally closed or will > re-start a net session at the point before a crash." > > We already have difficulties with tabbed browsers in the sense that if a > user closes a tab, it doesn't close the session so users (and therefore > potentially others if the user leaves the machine unguarded) can jump > back into a session. Does the feature above mean life is going to be > even more difficult? Will sessions even be restored if the browser is > closed and re-opened? This is very important to us, because many of our > applications run on computers in public access areas. So they do get > left unguarded, and the urls to access the systems are obviously well > known: but they do deal with sensitive information, like disability data > &c. > > Or is there something in the .NET security model we should be using that > we've missed? I'm supposing you mean ASP.NET. By default, ASP.NET sessions expire after 10 minutes of inactivity. This can be controlled with web.config's setting. During this time window, the browser can be recycled w/out losing the session. However, sensitive information is usually protected by an additional authentication layer. If this layer employs cookies, their expiration must not be set => browsers will not store the cookies on the disk either => recycling the browser kills the session. If a browser doesn't respect the empty expiration value, then ASP.NET (or any other web server framework that uses cookies for authentication) can't do nothing about it. Robert _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From rjdyer at vcu.edu Tue Oct 24 11:28:06 2006 From: rjdyer at vcu.edu (Rodney J. Dyer) Date: Tue, 24 Oct 2006 11:28:06 -0400 Subject: [Mono-list] Resource Question Message-ID: <453E3106.6090206@vcu.edu> I'm using monodev and I have imported a text file into the resources (say it is file.txt). Now, I want to load the contents of that file into a string and I'm at a loss as to how to go about that. The System.ResourceReader cannot find a resource named "file.txt" and a regular old file will not get it either. Aren't the resources compiled into the app? How do I get it? Thanks, R From lorenb at mmgsecurity.com Tue Oct 24 11:39:32 2006 From: lorenb at mmgsecurity.com (Loren Bandiera) Date: Tue, 24 Oct 2006 11:39:32 -0400 Subject: [Mono-list] Resource Question In-Reply-To: <453E3106.6090206@vcu.edu> References: <453E3106.6090206@vcu.edu> Message-ID: <1161704372.27730.23.camel@war.420consulting.com> Hi, There might be an easier way but I believe you can do it like this: using System.IO; using System.Reflection; Assembly asm = Assembly.GetExecutingAssembly(); StreamReader sr = new StreamReader (asm.GetManifestResourceStream("foo.txt")); On Tue, 2006-10-24 at 11:28 -0400, Rodney J. Dyer wrote: > I'm using monodev and I have imported a text file into the resources > (say it is file.txt). Now, I want to load the contents of that file > into a string and I'm at a loss as to how to go about that. The > System.ResourceReader cannot find a resource named "file.txt" and a > regular old file will not get it either. Aren't the resources > compiled > into the app? How do I get it? -- Loren Bandiera MMG Security, Inc. From andreas.faerber at web.de Tue Oct 24 12:24:33 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Tue, 24 Oct 2006 18:24:33 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: <419D06A8-7D7F-4374-B9EC-E2345082E6A7@web.de> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> <1161049587.30002.38.camel@erandi.dom> <419D06A8-7D7F-4374-B9EC-E2345082E6A7@web.de> Message-ID: <6A27F3AA-6508-4D10-901C-0FB74E4D6EC9@web.de> Hi, > Am 17.10.2006 um 23:52 schrieb Robert Jordan: > >> That's rather a cookbook than a self-containing test case ;-) >> Please provide the complete Xcode project. >> >> I tried an own Cocoa app and a Cocoa bundle. Both were working, >> the latter with the environ 'trick'. So before starting to rename >> those symbols, I'd like to be convinced that it can't be fixed by >> removing/adding some smart linker option. > > Attached is a new simplified Xcode project, compiled on PowerPC for > ppc, which works on ppc but not on i386 when re-compiled on Intel > for i386. Installation instructions still apply but otherwise "self- > contained" and hopefully self-explaining! > > Btw, as a side effect changing the linker option indeed resulted in > an additional warning for _GetCurrentThread appearing. So far I haven't received any feedback on the test case I submitted... I have done the following in the meantime: - manually applied Allan Hsu's patch to allow compiling on Intel OS X w/ Xcode 2.4 (compiled, but test still failed) - manually applied your symbols.h etc. patch - compiled, but test still fails! (didn't find a way to apply the patch automagically; svn diff only creates one and svn help wasn't helpful) I re-ran autogen.sh, then make, then make install; I removed the Mono.framework reference in the Xcode project and replaced it with a reference to libmono.dylib in the new Mono. The plugin was cleanly compiled for each Mono. And I tried a second time using make clean, make, make install. So all in all until now the patches and suggestions have helped build Mono at all on Intel, improve the quality of embedding Mono on OS X by eliminating the _environ error and the duplicate symbols warnings - but unfortunately my plugin's mono_thread_attach assertion failure persists. Your symbols.h patch did appear to rename the functions via #defines, no? [what did your remark above about starting to rename mean then?] It should no longer be a name clash now, or could it still be? If my test case for some reason does work on your system then I'd really like to hear about it! Maybe I missed something. Andreas From steflik at binghamton.edu Tue Oct 24 12:55:04 2006 From: steflik at binghamton.edu (Dick Steflik) Date: Tue, 24 Oct 2006 12:55:04 -0400 Subject: [Mono-list] FW: How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: References: <033E2875D2616747AA6FC2C0DF8072AC0107A48D@mailll02.internal.uwic.ac.uk> Message-ID: <453E4568.9060605@binghamton.edu> Peter & Robert, I never noticed it before but somehow mono got installed twice once in my home directory and once in usr. I was looking at the one in my home directory all this time. I copied the assembly MySql.Data from the installation in my home directory to the GAC in usr and everything started working the way it should. I don't know how it got in both places because I did a yum install. Anyway it seems to be working OK now. I don't understand how gacutil was showing me the wrong one. I think I should be able to just delete the one from my home directory. I really appreciate all of the advice and patience from both of you. Dick Steflik Binghamton University Robert Jordan wrote: >>-----Original Message----- >>From: steflik [mailto:steflik at binghamton.edu] >>Sent: 24 October 2006 13:09 >>To: Bradley, Peter >>Subject: Re: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to >>find MySQL.Data.MySqlClient >> >>Good morning gentlemen, >> >>I am running Apache on Fedora Core 5, I did a ps and a grep for you on >>apache , here it is: >> >>apache 1909 0.0 1.3 21920 6980 ? Ssl Oct23 0:00 >>/usr/bin/mono /usr/lib/mono/1.0/m$ >> >> > >/usr/bin/mono is another mono installation. > >In your previous mail you showed us another Mono path: > >/home/steflik.mono-1.1.17.1/ > >MySql.Data must be installed in the GAC of the /usr/bin/mono >installation. > >Robert > >_______________________________________________ >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/20061024/b4d583c3/attachment.html From robertj at gmx.net Tue Oct 24 12:59:58 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 24 Oct 2006 18:59:58 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: <6A27F3AA-6508-4D10-901C-0FB74E4D6EC9@web.de> References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> <1161049587.30002.38.camel@erandi.dom> <419D06A8-7D7F-4374-B9EC-E2345082E6A7@web.de> <6A27F3AA-6508-4D10-901C-0FB74E4D6EC9@web.de> Message-ID: Andreas F?rber wrote: > Hi, > >> Am 17.10.2006 um 23:52 schrieb Robert Jordan: >> >>> That's rather a cookbook than a self-containing test case ;-) >>> Please provide the complete Xcode project. >>> >>> I tried an own Cocoa app and a Cocoa bundle. Both were working, >>> the latter with the environ 'trick'. So before starting to rename >>> those symbols, I'd like to be convinced that it can't be fixed by >>> removing/adding some smart linker option. >> Attached is a new simplified Xcode project, compiled on PowerPC for >> ppc, which works on ppc but not on i386 when re-compiled on Intel >> for i386. Installation instructions still apply but otherwise "self- >> contained" and hopefully self-explaining! I didn't receive the project. Maybe it was too large for the list. Please send it as PM. > Your symbols.h patch did appear to rename the functions via #defines, > no? [what did your remark above about starting to rename mean then?] Because the '#define MonoFoo Foo' stuff is just a hack. > It should no longer be a name clash now, or could it still be? If my It can't be, unless one of Mono's sources doesn't include the WAPI/io-layer headers, but then it won't work on Windows. Robert From andreas.faerber at web.de Tue Oct 24 13:09:28 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Tue, 24 Oct 2006 19:09:28 +0200 Subject: [Mono-list] io-layer naming issues on OSX. In-Reply-To: References: <1160435515.4966.12.camel@erandi.dom> <4601115D-3A39-442B-9A7C-1E2D89E26740@web.de> <1160603641.4828.51.camel@erandi.dom> <1160662485.9862.543.camel@hagbard.apathetic.discordia.org.uk> <492E833B-557A-405D-AEE5-BF05BABDE453@web.de> <1161049587.30002.38.camel@erandi.dom> <419D06A8-7D7F-4374-B9EC-E2345082E6A7@web.de> <6A27F3AA-6508-4D10-901C-0FB74E4D6EC9@web.de> Message-ID: <0A678A8E-8952-4B0E-8A64-D238054C7A11@web.de> Hi, Am 24.10.2006 um 18:59 schrieb Robert Jordan: > Andreas F?rber wrote: >>>> That's rather a cookbook than a self-containing test case ;-) >>>> Please provide the complete Xcode project. >>> Attached is a new simplified Xcode project > > I didn't receive the project. Maybe it was too large > for the list. Please send it as PM. It was too large for the list, like I feared (which was why I gave the bandwidth-saving "recipe" in the first place), and was subsequently rejected by the list admin. I did cc you though and recently already inquired whether you received it. Did you check your spam filter? Will re-send it anyway. Andreas From P.Bradley at dsl.pipex.com Tue Oct 24 13:30:08 2006 From: P.Bradley at dsl.pipex.com (Peter Bradley) Date: Tue, 24 Oct 2006 18:30:08 +0100 Subject: [Mono-list] FW: How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: <453E4568.9060605@binghamton.edu> References: <033E2875D2616747AA6FC2C0DF8072AC0107A48D@mailll02.internal.uwic.ac.uk> <453E4568.9060605@binghamton.edu> Message-ID: <453E4DA0.6020202@dsl.pipex.com> Ysgrifennodd Dick Steflik: > Peter & Robert, > I never noticed it before but somehow mono got installed twice once in > my home directory and once in usr. I was looking at the one in my home > directory all this time. I copied the assembly MySql.Data from the > installation in my home directory to the GAC in usr and everything > started working the way it should. I don't know how it got in both > places because I did a yum install. Anyway it seems to be working OK > now. I don't understand how gacutil was showing me the wrong one. I > think I should be able to just delete the one from my home directory. > > I really appreciate all of the advice and patience from both of you. > > Dick Steflik > Binghamton University > Heh! I think all the advice came from Robert. You just got wild thrashing about in the dark from me. :) Glad it's all sorted. Peter From kobruleht2 at hot.ee Tue Oct 24 15:19:50 2006 From: kobruleht2 at hot.ee (Andrus) Date: Tue, 24 Oct 2006 22:19:50 +0300 Subject: [Mono-list] Npgsql.NpgsqlClosedState.Open An exception was thrown by the type initializer for System.Net.Dns Message-ID: <033c01c6f7a1$6265ec80$2300b3a8@Andrus> > The content of the config is probably irrelevant. I guess > solely the existence of the config is triggering the error. > > Restore the .config and try to start the app from the > command line (use the "Mono-1.1.17.1 Command Line" shortcut). > Does the error persist? I restored config file (build my VCS 2005 project) and opened mono command prompt. Then I make cd to my application directory and ran mono myapp.exe Same error occurs. Andrus. From koxta at koxta.net Tue Oct 24 19:41:34 2006 From: koxta at koxta.net (Jurek Bartuszek) Date: Wed, 25 Oct 2006 01:41:34 +0200 Subject: [Mono-list] Internal server error Message-ID: <453EA4AE.7060707@koxta.net> Hi there, I'm having a hard time making mod_mono work with apache. I keep getting the Internal Server Error when I want to access some ASP.NET pages. There is no difference whether I use AutoHosting or setup the application manually. I use mono/xsp/mod_mono 1.1.18 with generic mod_mono.conf. Server logs say absolutely nothing about that issue despite setting LogLevel to "debug". Can you give me some hints where can I check what's wrong in here? I've already spent a few hours trying to make things work :\ Best regards, Jurek Bartuszek From matthijsterwoord at gmail.com Sun Oct 22 06:01:08 2006 From: matthijsterwoord at gmail.com (Matthijs ter Woord) Date: Sun, 22 Oct 2006 12:01:08 +0200 Subject: [Mono-list] Continuous Integration tools for Mono under Linux References: <453A3AF9.7040001@beeond.net> Message-ID: Cruisecontrol.NET is supposed to be working on Mono. The only issues are related to tools it uses, like NAnt and MSBuild.... "Costantino Pipero" wrote in message news:453A3AF9.7040001 at beeond.net... > Does anyone know whether is possible to install and use > Cruisecontrol.NET or Draco.NET under linux to manage a mono based CI > environment? > > thanks > > Cos > -------------------------------------------------------------------------------- > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From steflik at binghamton.edu Mon Oct 23 14:40:11 2006 From: steflik at binghamton.edu (Dick Steflik) Date: Mon, 23 Oct 2006 14:40:11 -0400 Subject: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient In-Reply-To: References: <033E2875D2616747AA6FC2C0DF8072AC0107A296@mailll02.internal.uwic.ac.uk> <453CF913.9070804@binghamton.edu> <453CFD6D.1030409@binghamton.edu> Message-ID: <453D0C8B.40905@binghamton.edu> Robert, You were correct the first time. I am trying to run an aspx file; I'm not trying to any command line mono stuff (destop applications) only aspx stuff with associated C# file that get compiled automatically. Dick Robert Jordan wrote: >Dick Steflik wrote: > > >>Robert, >>Yes, I have and when I look in the GAC using gacutil it says that it is >>there. Was I supposed to do something with the -package option on the >>gacutil command when I put it onto the GAC (I followed the direction on >>the MySql site and your instructions)? >> >> > >I was pretty sure you're trying to run an aspx file, but now I have >the impression you're compiling from the command line. > >If so, install the assembly using > > pkgconfig -package mysql -i MySql.Data > >and compile using > > mcs -lib:/usr/lib/mono/MySql -r:MySql.Data ... > >Replace /usr with your mono prefix. > >Robert > > > >>Dick >> >>Robert Jordan wrote: >> >> >> >>>Dick Steflik wrote: >>> >>> >>> >>> >>>>When I put the .dll (MtSql.Data.dll in ny application /bin directory, >>>>everything works OK ; but when I remove it and put the reference in >>>>web.config (just like Robert said to the compiler can't find it. >>>> >>>> >>>> >>>Did you install the assembly into the GAC as already told >>>a few times? :-) >>> >>>Robert >>> >>> >>> >>> >>> >>>>Dick Steflik >>>>Binghamton University >>>> >>>>Bradley, Peter wrote: >>>> >>>> >>>> >>>> >>>>>Dick, >>>>> >>>>>I'm sorry to butt in, but I noticed things looked as though they might >>>>>start recursing. Infinitely, possibly :) >>>>> >>>>>First up: do you understand what the GAC is? >>>>> >>>>>Second: do you understand how the .NET Framework searches for >>>>>referenced >>>>>assemblies? >>>>> >>>>>Third: do you understand what strongly named assemblies are, and how >>>>>you >>>>>refer to them (i.e. with their strong name)? >>>>> >>>>>If you have a problem with any of these, perhaps we should take a step >>>>>back and explain some of those things first. If you already understand >>>>>all that stuff, please just ignore me and I promise I'll go away. >>>>> >>>>> >>>>>Peter >>>>> >>>>> >>>>>-----Original Message----- >>>>>From: mono-list-bounces at lists.ximian.com >>>>>[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan >>>>>Sent: 23 October 2006 15:40 >>>>>To: Mono-list at lists.ximian.com >>>>>Subject: Re: [Mono-list] How do i tell Mono (for ASP.NET,C#) where to >>>>>find MySQL.Data.MySqlClient >>>>> >>>>>Dick, >>>>> >>>>>steflik wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Thanks for the patience but I got the same result. If the >>>>>> >>>>>> >>>>>> >>>>>> >>>>>MySql.Data.dll >>>>> >>>>> >>>>> >>>>>>isn't in the /bin directory the compuiler can't find it. This may >>>>>> >>>>>> >>>>>> >>>>>> >>>>>sound >>>>> >>>>> >>>>> >>>>>>stupid but what directory shoiuld the .dll be in? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>In the GAC (Global Assembly Cache), see (1) below. >>>>> >>>>>Robert >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Thanks, >>>>>> >>>>>>Dick Steflik >>>>>>Binghamton University >>>>>> >>>>>>Robert Jordan wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Hi, >>>>>>> >>>>>>>Here we go: >>>>>>> >>>>>>>1) install MySql.Data into the GAC: >>>>>>> >>>>>>>gacutil -i MySql.Data.dll >>>>>>> >>>>>>>2) obtain MySql.Data's assembly name: >>>>>>> >>>>>>>gacutil -l MySql.Data >>>>>>> >>>>>>>The output should look like this (in one line), but >>>>>>>your version might be different: >>>>>>> >>>>>>>MySql.Data, Version=1.0.7.30073, Culture=neutral, >>>>>>>PublicKeyToken=8e323390df8d9ed4 >>>>>>> >>>>>>> >>>>>>>3) create "web.config": >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>4) create a demo page "demo.aspx" >>>>>>> >>>>>>><%@ Page %> >>>>>>><%@ Import namespace="MySql.Data.MySqlClient" %> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>Robert >>>>>>> >>>>>>>steflik wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>Robert, >>>>>>>>I'ver built the web.config and done everything you said to but >>>>>>>>Mono still can't find MySql.Data. >>>>>>>> >>>>>>>>I tried putting the MySql.Data.dll in the application /bin directory >>>>>>>> >>>>>>>> >>>>>>>> >>>>>and >>>>> >>>>> >>>>> >>>>>>>>that seems to work but the better way to do this would be via the >>>>>>>>web.config. >>>>>>>> >>>>>>>>I'm trying to use Mono for an ASP.NET segment for a class I teach on >>>>>>>> >>>>>>>> >>>>>>>> >>>>>web >>>>> >>>>> >>>>> >>>>>>>>programming here at the University and I really hate to have each of >>>>>>>> >>>>>>>> >>>>>>>> >>>>>the >>>>> >>>>> >>>>> >>>>>>>>students place the .dll in their /bin directory. >>>>>>>> >>>>>>>>Dick Steflik >>>>>>>>Binghamton University >>>>>>>> >>>>>>>>Robert Jordan wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>Hi, >>>>>>>>> >>>>>>>>>You have to create web.config in the directory of the ASP.NET >>>>>>>>>application. Have a look at the test site that that gets >>>>>>>>>installed into $prefix/lib/xsp/test. >>>>>>>>> >>>>>>>>>MySql.Data.MySqlClient is just a namespace. The assembly is >>>>>>>>>MySql.Data. >>>>>>>>> >>>>>>>>>Robert >>>>>>>>> >>>>>>>>>steflik wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>Robert, >>>>>>>>>>I'm new at this, where do I find the web.config file, I've been >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>looking >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>>>>around and it isn't obvious. Also, my the impot that is failing >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>is >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>>>>"import MySql.Data.MySqlClient"; is that the assembly you >>>>>>>>>>are >>>>>>>>>> >>>>>>>>>> >>>>>>>>>referring to? >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>Dick Steflik >>>>>>>>>> >>>>>>>>>>Robert Jordan wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>Dick Steflik wrote: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>>I can get Mono to build a command line program using MySql (and >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>it >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>>>>>>runs nicely) but I have to tell the C# compiler where the dll >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>is. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>>>>>>How do I do this for ASP.NET using C#. >>>>>>>>>>>>I'm using Mono on FC5 with Apache and Mono 1.1.17.... >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>Copy the MySql assembly into the bin folder of your ASP.NET app >>>>>>>>>>>or install the assembly into the GAC and specify the assembly >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>name >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>>>>>in the web.config: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>You can obtain the full assembly name with >>>>>>>>>>> >>>>>>>>>>>gacutil -l | grep MySql >>>>>>>>>>> >>>>>>>>>>>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 >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>_______________________________________________ >>>>>>>>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 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>_______________________________________________ >>>>>>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 >>>>> >>>>>_______________________________________________ >>>>>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 >>>> >>>> >>>> >>>_______________________________________________ >>>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 >> >> > >_______________________________________________ >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/20061023/a74edbdd/attachment-0001.html From madars at silodev.eu Tue Oct 24 19:51:19 2006 From: madars at silodev.eu (Madars Vitolins) Date: Wed, 25 Oct 2006 02:51:19 +0300 Subject: [Mono-list] Internal server error In-Reply-To: <453EA4AE.7060707@koxta.net> References: <453EA4AE.7060707@koxta.net> Message-ID: <453EA6F7.2060400@silodev.eu> I have the same problem. and with running xsp2 in asp.net application directory I got following: ------------- XML Parsing Error: no element found Location: http://localhost:1234/Default.aspx Line Number 1, Column 1: ------------- I have compiled mod_mono with debug option on, and it seems that problem persist within mod-mono-server Here is some debug, and seems that http error 500 is returned [Wed Oct 25 03:42:14 2006] [warn] handler: mono [Wed Oct 25 03:42:14 2006] [warn] config = 135167808 [Wed Oct 25 03:42:14 2006] [warn] dir_config = 135539856 [Wed Oct 25 03:42:14 2006] [warn] idx = 1 [Wed Oct 25 03:42:14 2006] [warn] Socket file name /tmp/mod_mono_server_xsp2 [Wed Oct 25 03:42:14 2006] [warn] try_connect: 0 [Wed Oct 25 03:42:14 2006] [warn] After setup_socket [Wed Oct 25 03:42:14 2006] [warn] Sending init data [Wed Oct 25 03:42:14 2006] [warn] Send init1 [Wed Oct 25 03:42:14 2006] [warn] Host: silodev.eu [Wed Oct 25 03:42:14 2006] [warn] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 [Wed Oct 25 03:42:14 2006] [warn] Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8 ,image/png,*/*;q=0.5 [Wed Oct 25 03:42:14 2006] [warn] Accept-Language: en-us,en;q=0.5 [Wed Oct 25 03:42:14 2006] [warn] Accept-Encoding: gzip,deflate [Wed Oct 25 03:42:14 2006] [warn] Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 [Wed Oct 25 03:42:14 2006] [warn] Keep-Alive: 300 [Wed Oct 25 03:42:14 2006] [warn] Connection: keep-alive [Wed Oct 25 03:42:14 2006] [warn] Loop [Wed Oct 25 03:42:14 2006] [warn] Done. Status: 500 May this debug helps? But I think better would be somewhere to get logs from mod-mono-server2 Thanks, Madars. Jurek Bartuszek wrote: > Hi there, I'm having a hard time making mod_mono work with apache. I > keep getting the Internal Server Error when I want to access some > ASP.NET pages. There is no difference whether I use AutoHosting or setup > the application manually. > > I use mono/xsp/mod_mono 1.1.18 with generic mod_mono.conf. Server logs > say absolutely nothing about that issue despite setting LogLevel to "debug". > > Can you give me some hints where can I check what's wrong in here? I've > already spent a few hours trying to make things work :\ > > Best regards, > Jurek Bartuszek > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From thisaddressisnotmine at td.selfip.net Wed Oct 25 05:20:15 2006 From: thisaddressisnotmine at td.selfip.net (Oleg Deribas) Date: Wed, 25 Oct 2006 12:20:15 +0300 Subject: [Mono-list] xsp in mono 1.1.18 Message-ID: <453F2C4F.20100@td.selfip.net> Hello, I'm trying xsp test web server. I've installed mono 1.1.18 and run "XSP 2.0 Test Web Server" When trying to access http://localhost:8088/1.1/webservice/TestService.asmx I have the following exception: System.DllNotFoundException: libc.so.6 When I'm trying to run "XSP Test Web Server" (without 2.0), TestService's page works, but service proxy generation doesn't work anyway with the System.InvalidOperationException. Then I decided to try the same on the linux computer. And with xsp the results were the same while with xsp2 it worked. So I have a question. Is xsp supposed to work on windows or should I leave my attempts and use linux? -- Oleg From colin at breame.net Wed Oct 25 07:14:43 2006 From: colin at breame.net (Colin JN Breame) Date: Wed, 25 Oct 2006 12:14:43 +0100 Subject: [Mono-list] Determining if a name is a valid C# name Message-ID: <200610251214.43524.colin@breame.net> Hi, Can anyone tell me if there is a way of determining if a string is a valid C# name? e.g. valid for use as a namespace/class name/variable name. Is there a method that does this in the mcs source? Thanks Colin From pbradley at uwic.ac.uk Wed Oct 25 07:26:58 2006 From: pbradley at uwic.ac.uk (Bradley, Peter) Date: Wed, 25 Oct 2006 12:26:58 +0100 Subject: [Mono-list] Determining if a name is a valid C# name Message-ID: <033E2875D2616747AA6FC2C0DF8072AC0107A641@mailll02.internal.uwic.ac.uk> Here you go: http://www.jaggersoft.com/csharp_standard/9.4.2.htm Enjoy! Peter -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Colin JN Breame Sent: 25 October 2006 12:15 To: mono-list at lists.ximian.com Subject: [Mono-list] Determining if a name is a valid C# name Hi, Can anyone tell me if there is a way of determining if a string is a valid C# name? e.g. valid for use as a namespace/class name/variable name. Is there a method that does this in the mcs source? Thanks Colin _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From koxta at koxta.net Wed Oct 25 07:49:43 2006 From: koxta at koxta.net (Jurek Bartuszek) Date: Wed, 25 Oct 2006 13:49:43 +0200 Subject: [Mono-list] Internal server error In-Reply-To: <453F41D0.2010108@silodev.eu> References: <453EA4AE.7060707@koxta.net> <3c5e57bd0610241652o4411d5cbnf0116f562cdee954@mail.gmail.com> <453F4090.5030003@koxta.net> <453F41D0.2010108@silodev.eu> Message-ID: <453F4F57.1060608@koxta.net> Ok, I've found the source of my problems. Those problems were caused by mod_mono-1.1.18. Both of my linux boxes (Slackware/Gentoo) behaved that way after this upgrade. Downgrading mod_mono to 1.1.17 helped. Now, does anyone have any idea why does mod_mono-1.1.18 break stuff here? Best regards, Jurek Bartuszek From colin at breame.net Wed Oct 25 07:53:36 2006 From: colin at breame.net (Colin JN Breame) Date: Wed, 25 Oct 2006 12:53:36 +0100 Subject: [Mono-list] Internal server error In-Reply-To: <453F4F57.1060608@koxta.net> References: <453EA4AE.7060707@koxta.net> <453F41D0.2010108@silodev.eu> <453F4F57.1060608@koxta.net> Message-ID: <200610251253.36670.colin@breame.net> possibly related - i've got an application that dynamically compiles C#. After upgrading to 1.1.18 I get some crashes when compiling - I haven't had time to investigate fully but downgrading to 1.1.17 fixes. This only seems to happen on one of my debian boxes... On Wednesday 25 October 2006 12:49, Jurek Bartuszek wrote: > Ok, I've found the source of my problems. Those problems were caused by > mod_mono-1.1.18. Both of my linux boxes (Slackware/Gentoo) behaved that > way after this upgrade. Downgrading mod_mono to 1.1.17 helped. > > Now, does anyone have any idea why does mod_mono-1.1.18 break stuff here? > > Best regards, > Jurek Bartuszek > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From colin at breame.net Wed Oct 25 07:56:35 2006 From: colin at breame.net (Colin JN Breame) Date: Wed, 25 Oct 2006 12:56:35 +0100 Subject: [Mono-list] Determining if a name is a valid C# name In-Reply-To: <033E2875D2616747AA6FC2C0DF8072AC0107A641@mailll02.internal.uwic.ac.uk> References: <033E2875D2616747AA6FC2C0DF8072AC0107A641@mailll02.internal.uwic.ac.uk> Message-ID: <200610251256.36002.colin@breame.net> Thanks Peter - I wasn't aware of the verbatim @. On Wednesday 25 October 2006 12:26, Bradley, Peter wrote: > Here you go: > > http://www.jaggersoft.com/csharp_standard/9.4.2.htm > > Enjoy! > > > Peter > > -----Original Message----- > From: mono-list-bounces at lists.ximian.com > [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Colin JN Breame > Sent: 25 October 2006 12:15 > To: mono-list at lists.ximian.com > Subject: [Mono-list] Determining if a name is a valid C# name > > Hi, > > Can anyone tell me if there is a way of determining if a string is a > valid C# > name? e.g. valid for use as a namespace/class name/variable name. Is > there a > method that does this in the mcs source? > > Thanks > Colin > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From alessandro-bottoni at libero.it Wed Oct 25 07:57:06 2006 From: alessandro-bottoni at libero.it (Alessandro Bottoni) Date: Wed, 25 Oct 2006 13:57:06 +0200 Subject: [Mono-list] Mono and MS Singularity Message-ID: <453F5112.4070304@libero.it> I'm sure you know MS Singularity (http://research.microsoft.com/os/singularity/). Singularity is something like a kernel (similar to Mach) + a virtual machine (similar to Mono/.NET VM) + a language (similar to C# but with special contract-programming and multithreading features). (Yes, it is much more than this but... ignore that, for the moment). I wonder if anybody has even thought to re-create something like Singularity starting from Mono (or GNU.NET). I mean, something like this: 1) a kernel (Linux, Mach, a "managed code" kernel written in C#, whatever...) 2) the Mono virtual machine (maybe with support for "channels" and other stuff) 3) C# or, much better, a contract-programming enabled version of C# (something like Sing#) 4) Something like a "message passing" system to support concurrent/distributed programming (something like the "channels" used by Singularity) 5) a (minimalistic) set of device driver written in C#. Do anybody thought about this possibility? >From the point of view of Mono, what do you think of Singularity? -- ------------------------ Alessandro Bottoni From colin at breame.net Wed Oct 25 08:12:32 2006 From: colin at breame.net (Colin JN Breame) Date: Wed, 25 Oct 2006 13:12:32 +0100 Subject: [Mono-list] Mono and MS Singularity In-Reply-To: <453F5112.4070304@libero.it> References: <453F5112.4070304@libero.it> Message-ID: <200610251312.32753.colin@breame.net> You might find some inspiration here: http://jos.sf.net On Wednesday 25 October 2006 12:57, Alessandro Bottoni wrote: > I'm sure you know MS Singularity > (http://research.microsoft.com/os/singularity/). > > Singularity is something like a kernel (similar to Mach) + a virtual > machine (similar to Mono/.NET VM) + a language (similar to C# but with > special contract-programming and multithreading features). (Yes, it is much > more than this but... ignore that, for the moment). > > I wonder if anybody has even thought to re-create something like > Singularity starting from Mono (or GNU.NET). I mean, something like this: > 1) a kernel (Linux, Mach, a "managed code" kernel written in C#, > whatever...) 2) the Mono virtual machine (maybe with support for "channels" > and other stuff) 3) C# or, much better, a contract-programming enabled > version of C# (something like Sing#) > 4) Something like a "message passing" system to support > concurrent/distributed programming (something like the "channels" used by > Singularity) > 5) a (minimalistic) set of device driver written in C#. > > Do anybody thought about this possibility? > > >From the point of view of Mono, what do you think of Singularity? From robertj at gmx.net Wed Oct 25 08:24:53 2006 From: robertj at gmx.net (Robert Jordan) Date: Wed, 25 Oct 2006 14:24:53 +0200 Subject: [Mono-list] Internal server error In-Reply-To: <453F4F57.1060608@koxta.net> References: <453EA4AE.7060707@koxta.net> <3c5e57bd0610241652o4411d5cbnf0116f562cdee954@mail.gmail.com> <453F4090.5030003@koxta.net> <453F41D0.2010108@silodev.eu> <453F4F57.1060608@koxta.net> Message-ID: Jurek Bartuszek wrote: > Ok, I've found the source of my problems. Those problems were caused by > mod_mono-1.1.18. Both of my linux boxes (Slackware/Gentoo) behaved that > way after this upgrade. Downgrading mod_mono to 1.1.17 helped. > > Now, does anyone have any idea why does mod_mono-1.1.18 break stuff here? Because it introduced a regression. Stick with mod_mono-1.1.17 until a new version is available. Robert From koxta at koxta.net Wed Oct 25 08:35:30 2006 From: koxta at koxta.net (Jurek Bartuszek) Date: Wed, 25 Oct 2006 14:35:30 +0200 Subject: [Mono-list] Internal server error In-Reply-To: <453F4FBC.10501@silodev.eu> References: <453EA4AE.7060707@koxta.net> <3c5e57bd0610241652o4411d5cbnf0116f562cdee954@mail.gmail.com> <453F4090.5030003@koxta.net> <453F41D0.2010108@silodev.eu> <453F4F4B.1030608@koxta.net> <453F4FBC.10501@silodev.eu> Message-ID: <453F5A12.8010600@koxta.net> Madars Vitolins napisa?(a): > The same problem for me are from version 1.1.13 on gentoo box. > > Nor 1.1.16, 17, 18 helps :( > > Are you running ASP.NET 1.1 projects or ASP.NET 2.0 I'm running mod-mono-server.exe (not 2.0) with MonoRunXSP set to True. Now I know that mod_mono 1.1.17 works good for me, but I didn't test any previous versions. However, I'm about to spend some time on 1.1.13.x as those are maintentance releases. I'll commit the changes to the portage tree as soon as my testing is over (which will probably be today or tomorrow). Best regards, Jurek Bartuszek From jit at occams.info Wed Oct 25 08:31:22 2006 From: jit at occams.info (Joshua Tauberer) Date: Wed, 25 Oct 2006 08:31:22 -0400 Subject: [Mono-list] Mono and MS Singularity In-Reply-To: <453F5112.4070304@libero.it> References: <453F5112.4070304@libero.it> Message-ID: <453F591A.1080304@occams.info> Alessandro Bottoni wrote: > I'm sure you know MS Singularity (http://research.microsoft.com/os/singularity/). > > Singularity is something like a kernel (similar to Mach) + a virtual machine > (similar to Mono/.NET VM) + a language (similar to C# but with special > contract-programming and multithreading features). (Yes, it is much more than > this but... ignore that, for the moment). > > I wonder if anybody has even thought to re-create something like Singularity > starting from Mono (or GNU.NET). I mean, something like this: > 1) a kernel (Linux, Mach, a "managed code" kernel written in C#, whatever...) > 2) the Mono virtual machine (maybe with support for "channels" and other stuff) I don't know how relevant it is -- for this thread and the other about a C# operating system -- but I was playing around with writing a managed runtime last month, that is, a .NET VM written in C#. Some info here: http://razor.occams.info/blog/?p=41 And code here: http://razor.occams.info/code/repo/?action=view&url=/mmr/ Though it can run *very* basic .NET programs, it's many man-months away from being able to run anything useful, mostly due to the need to reimplement a good chunk of the class library to fit with the VM. I think anyone interested in doing an OS or something low-level like that ought to consider the huge amount of effort that would be needed to re-create the base class library.... -- - Joshua Tauberer http://razor.occams.info "Strike up the klezmer and start acting like a man. You're about to have a truth-mitzvah." -- The Colbert Report From pbradley at uwic.ac.uk Wed Oct 25 09:18:26 2006 From: pbradley at uwic.ac.uk (Bradley, Peter) Date: Wed, 25 Oct 2006 14:18:26 +0100 Subject: [Mono-list] Determining if a name is a valid C# name Message-ID: <033E2875D2616747AA6FC2C0DF8072AC0107A690@mailll02.internal.uwic.ac.uk> Invaluable for Windows paths. Saves all those pesky backslashes. :) Peter -----Original Message----- From: Colin JN Breame [mailto:colin at breame.net] Sent: 25 October 2006 12:57 To: Bradley, Peter Cc: mono-list at lists.ximian.com Subject: Re: [Mono-list] Determining if a name is a valid C# name Thanks Peter - I wasn't aware of the verbatim @. On Wednesday 25 October 2006 12:26, Bradley, Peter wrote: > Here you go: > > http://www.jaggersoft.com/csharp_standard/9.4.2.htm > > Enjoy! > > > Peter > > -----Original Message----- > From: mono-list-bounces at lists.ximian.com > [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Colin JN Breame > Sent: 25 October 2006 12:15 > To: mono-list at lists.ximian.com > Subject: [Mono-list] Determining if a name is a valid C# name > > Hi, > > Can anyone tell me if there is a way of determining if a string is a > valid C# > name? e.g. valid for use as a namespace/class name/variable name. Is > there a > method that does this in the mcs source? > > Thanks > Colin > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From tleslie at tcn.net Wed Oct 25 09:28:05 2006 From: tleslie at tcn.net (ted leslie) Date: Wed, 25 Oct 2006 09:28:05 -0400 Subject: [Mono-list] running two different versions on mono on one box? Message-ID: <1161782885.11708.231.camel@stan64.site> I have a need to keep one particular older version of mono on computer, because it's included in a system that I have deployed and need to support, and it not convenient to upgrade those environments at this time, but yet still update applications written against that older version of mono. But, I'd like to run the newest stable version too on my machine. Write now i do this by having a script, a pre-script/post-script that moves the mono binary, libs and /etc/mono to the version I want, runs the program, and then changes it back. There must be an easier way? to selectively run a mono app against a particular mono version, and do so with different versions on the same machine? I am thinking there is a set of environment variables? I can dig on it, but figuring someone can probably post there sol'n in 2 seconds. -tl From kornelpal at gmail.com Wed Oct 25 09:46:12 2006 From: kornelpal at gmail.com (=?iso-8859-1?B?S29ybulsIFDhbA==?=) Date: Wed, 25 Oct 2006 15:46:12 +0200 Subject: [Mono-list] running two different versions on mono on one box? References: <1161782885.11708.231.camel@stan64.site> Message-ID: <001201c6f83b$ef9a8d00$0100a8c0@kornelpal.hu> Different versions of Mono or even multiple instances of the same version can be installed on different prefixes. The easiest thing to do is to install multiple Mono versions to different locations and execute the mono binary you want to use. It will find it's own class library and GAC. Korn?l ----- Original Message ----- From: "ted leslie" To: Sent: Wednesday, October 25, 2006 3:28 PM Subject: [Mono-list] running two different versions on mono on one box? >I have a need to keep one particular older version of mono on computer, > because it's included in a system that I have deployed and need to > support, and it not convenient to upgrade those environments at this > time, but yet still update applications written against that older > version of mono. > But, > I'd like to run the newest stable version too on my machine. > Write now i do this by having a script, a pre-script/post-script > that moves the mono binary, libs and /etc/mono to the version > I want, runs the program, and then changes it back. > There must be an easier way? to selectively run a mono app against > a particular mono version, and do so with different versions on the > same machine? I am thinking there is a set of environment variables? > I can dig on it, but figuring someone can probably post there sol'n > in 2 seconds. > > -tl > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From alessandro-bottoni at libero.it Wed Oct 25 09:54:26 2006 From: alessandro-bottoni at libero.it (Alessandro Bottoni) Date: Wed, 25 Oct 2006 15:54:26 +0200 Subject: [Mono-list] Mono and MS Singularity In-Reply-To: <200610251312.32753.colin@breame.net> References: <453F5112.4070304@libero.it> <200610251312.32753.colin@breame.net> Message-ID: <453F6C92.5050407@libero.it> Colin JN Breame ha scritto: > You might find some inspiration here: > http://jos.sf.net Thanks. I knew of Java OS (now considered a legacy system by Sun) but not of JOS. It looks like JOS is defunct now or, at least, the development is very, very slow (last events on the wiki date back to 2004). Looking around I found JNode: http://www.jnode.org/ . JNode seems to be alive (last version was realeased on March 2006). Thanks again. ------------------------ Alessandro Bottoni From marek.sieradzki at gmail.com Wed Oct 25 10:12:44 2006 From: marek.sieradzki at gmail.com (Marek Sieradzki) Date: Wed, 25 Oct 2006 16:12:44 +0200 Subject: [Mono-list] running two different versions on mono on one box? In-Reply-To: <1161782885.11708.231.camel@stan64.site> References: <1161782885.11708.231.camel@stan64.site> Message-ID: <1d835b90610250712t2ba334bco11c2d6efbc0ac1de@mail.gmail.com> On 10/25/06, ted leslie wrote: > I have a need to keep one particular older version of mono on computer, > because it's included in a system that I have deployed and need to > support, and it not convenient to upgrade those environments at this > time, but yet still update applications written against that older > version of mono. > But, > I'd like to run the newest stable version too on my machine. > Write now i do this by having a script, a pre-script/post-script > that moves the mono binary, libs and /etc/mono to the version > I want, runs the program, and then changes it back. > There must be an easier way? to selectively run a mono app against > a particular mono version, and do so with different versions on the > same machine? I am thinking there is a set of environment variables? > I can dig on it, but figuring someone can probably post there sol'n > in 2 seconds. > http://www.mono-project.com/Parallel_Mono_Environments From miguel at ximian.com Wed Oct 25 10:30:25 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Wed, 25 Oct 2006 10:30:25 -0400 Subject: [Mono-list] running two different versions on mono on one box? In-Reply-To: <1161782885.11708.231.camel@stan64.site> References: <1161782885.11708.231.camel@stan64.site> Message-ID: <1161786625.10488.40.camel@erandi.dom> Hello, > I'd like to run the newest stable version too on my machine. > Write now i do this by having a script, a pre-script/post-script > that moves the mono binary, libs and /etc/mono to the version > I want, runs the program, and then changes it back. You compile Mono to be installed in a particular prefix, like this: ./configure --prefix=/mono (Thats what I use), so you end up with a Mono in /usr/bin/mono and another in /mono/bin/mono. Then you run a script like this to switch from the standard system mono, to the mono installed in /mono: bash$ source setup-mono The "source" command there is important, then the setup-mono file looks like this: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mono/lib export C_INCLUDE_PATH=/mono/include export ACLOCAL_PATH=/mono/share/aclocal export PKG_CONFIG_PATH=/mono/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/usr/local/lib/pkgconfig PATH=/mono/bin:$PATH PS1="mono$ " Miguel. From miguel at ximian.com Wed Oct 25 10:31:45 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Wed, 25 Oct 2006 10:31:45 -0400 Subject: [Mono-list] running two different versions on mono on one box? In-Reply-To: <1d835b90610250712t2ba334bco11c2d6efbc0ac1de@mail.gmail.com> References: <1161782885.11708.231.camel@stan64.site> <1d835b90610250712t2ba334bco11c2d6efbc0ac1de@mail.gmail.com> Message-ID: <1161786705.10488.42.camel@erandi.dom> > http://www.mono-project.com/Parallel_Mono_Environments Ah, that is a much better answer ;-) From andreas.faerber at web.de Wed Oct 25 13:15:15 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Wed, 25 Oct 2006 19:15:15 +0200 Subject: [Mono-list] Mono and MS Singularity In-Reply-To: <453F591A.1080304@occams.info> References: <453F5112.4070304@libero.it> <453F591A.1080304@occams.info> Message-ID: Hi Joshua, > Alessandro Bottoni wrote: >> I'm sure you know MS Singularity (http://research.microsoft.com/os/ >> singularity/). >> >> Singularity is something like a kernel (similar to Mach) + a >> virtual machine >> (similar to Mono/.NET VM) + a language (similar to C# but with >> special >> contract-programming and multithreading features). (Yes, it is >> much more than >> this but... ignore that, for the moment). >> >> I wonder if anybody has even thought to re-create something like >> Singularity >> starting from Mono (or GNU.NET). I mean, something like this: >> 1) a kernel (Linux, Mach, a "managed code" kernel written in C#, >> whatever...) >> 2) the Mono virtual machine (maybe with support for "channels" and >> other stuff) > > [...] I was playing around with writing a managed > runtime last month, that is, a .NET VM written in C#. Some info here: > > http://razor.occams.info/blog/?p=41 I've been looking into the idea of writing a CLI interpreter myself and I noticed that mcs and gmcs emit a Microsoft-style metadata version string in the assembly. Did you find a way for your assemblies to strictly adhere to the ECMA standard? ECMA-335 3rd and 4th edition both define "Standard CLI 2005" whereas [g]mcs uses .NET's proprietary "v1.1.4322" and "v2.0.50727", in theory making assemblies incompatible with purely ECMA-compliant CLI implementations. Andreas (btw http://www.mono-project.com/ECMA still needs to be updated with 4th ed.!) From andreas.faerber at web.de Wed Oct 25 13:32:40 2006 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Wed, 25 Oct 2006 19:32:40 +0200 Subject: [Mono-list] Mono and MS Singularity In-Reply-To: <453F591A.1080304@occams.info> References: <453F5112.4070304@libero.it> <453F591A.1080304@occams.info> Message-ID: <0ADBAFCD-411E-4B72-82A6-D101F02C53F9@web.de> Hi, Am 25.10.2006 um 14:31 schrieb Joshua Tauberer: > Alessandro Bottoni wrote: >> I'm sure you know MS Singularity (http://research.microsoft.com/os/ >> singularity/). >> >> Singularity is something like a kernel (similar to Mach) + a >> virtual machine >> (similar to Mono/.NET VM) + a language (similar to C# but with >> special >> contract-programming and multithreading features). (Yes, it is >> much more than >> this but... ignore that, for the moment). >> >> I wonder if anybody has even thought to re-create something like >> Singularity >> starting from Mono (or GNU.NET). I mean, something like this: >> 1) a kernel (Linux, Mach, a "managed code" kernel written in C#, >> whatever...) >> 2) the Mono virtual machine (maybe with support for "channels" and >> other stuff) > > I don't know how relevant it is -- for this thread and the other > about a > C# operating system -- but I was playing around with writing a managed > runtime last month, that is, a .NET VM written in C#. Some info here: > > http://razor.occams.info/blog/?p=41 > > And code here: > > http://razor.occams.info/code/repo/?action=view&url=/mmr/ > > Though it can run *very* basic .NET programs, it's many man-months > away > from being able to run anything useful, mostly due to the need to > reimplement a good chunk of the class library to fit with the VM. > > I think anyone interested in doing an OS or something low-level like > that ought to consider the huge amount of effort that would be > needed to > re-create the base class library.... Some months ago there was an admittedly short discussion on the list of Mono's future in the case of a managed Microsoft OS (see the archive) where I mentioned Singularity and pointed out the possibility to port Mono to such an OS in order to run any CLI we like - that would come close to Joshua's managed runtime project. (however I still don't believe Microsoft would put Singulary on the market as such, it's a research project) Concerning the thought of a managed OS, wouldn't that either mean you'd have to write it in assembler and thus architecture-specific or you'd need CLI-specific hardware? I thought I heard for Java there was some research to create a processor that could directly execute Java bytecode, don't have any links though. Anyway, there are a number of both experimental and commercial operating systems out there, each with their unique pros and cons - even if Novell as a widely known company said its OS would in a future version be fully managed, then that would still mean that they would have to "re-invent" everything from the ground up (resource management, threading etc.) just like any other OS (e.g. Linux) and even if they did and supplied drivers for virtually every device as well as a set of apps then that would still not assure a commercial success in the sense of a large user base. (think BeOS) Same argument as for Singularity. However, this is in no way intended to stop you from proving it can be done. :-) Andreas From mysql.jorge at decimal.pt Wed Oct 25 14:07:28 2006 From: mysql.jorge at decimal.pt (Jorge Bastos) Date: Wed, 25 Oct 2006 19:07:28 +0100 Subject: [Mono-list] TabControl Message-ID: <018a01c6f860$6ecb6490$0301a8c0@hercules.decimalint.pt> Hi guys, Sorry this question, Who can advice me a good tabcontrol, datagrid and chart assembly's for asp.net ? Sorry this offtopic question :P Jorge From jit at occams.info Wed Oct 25 14:41:45 2006 From: jit at occams.info (Joshua Tauberer) Date: Wed, 25 Oct 2006 14:41:45 -0400 Subject: [Mono-list] Mono and MS Singularity In-Reply-To: References: <453F5112.4070304@libero.it> <453F591A.1080304@occams.info> Message-ID: <453FAFE9.60605@occams.info> Andreas F?rber wrote: >> Alessandro Bottoni wrote: >>> I'm sure you know MS Singularity >>> (http://research.microsoft.com/os/singularity/). >>> >>> Singularity is something like a kernel (similar to Mach) + a >>> virtual machine (similar to Mono/.NET VM) + a language (similar >>> to C# but with special contract-programming and multithreading >>> features). (Yes, it is much more than this but... ignore that, >>> for the moment). >>> >>> I wonder if anybody has even thought to re-create something like >>> Singularity starting from Mono (or GNU.NET). I mean, something >>> like this: 1) a kernel (Linux, Mach, a "managed code" kernel >>> written in C#, whatever...) 2) the Mono virtual machine (maybe >>> with support for "channels" and other stuff) >> >> [...] I was playing around with writing a managed runtime last >> month, that is, a .NET VM written in C#. Some info here: >> >> http://razor.occams.info/blog/?p=41 > > I've been looking into the idea of writing a CLI interpreter myself > and I noticed that mcs and gmcs emit a Microsoft-style metadata > version string in the assembly. Did you find a way for your > assemblies to strictly adhere to the ECMA standard? Strict adherence is something well beyond what I got to the point of thinking about. I was following ECMA-335 June 2006 (to the extent I was following anything). > Concerning the thought of a managed OS, wouldn't that either mean > you'd have to write it in assembler and thus architecture-specific or > you'd need CLI-specific hardware? It turns out (IMO) that the notion of CLI-specific hardware isn't so interesting, or practical. The part of my managed runtime that involves executing IL instructions is pretty minimal compared to the infrastructure necessary to handle the whole type system, for instance. callvirt, castclass, and newobj are all very complicated instructions -- especially compared to native instructions like add, mov, etc. In order to have CLI-specific hardware, you'd really need to have the whole Mono runtime implemented in hardware, and that seems kind of ridiculous. :) -- - Joshua Tauberer http://razor.occams.info "Strike up the klezmer and start acting like a man. You're about to have a truth-mitzvah." -- The Colbert Report From alessandro-bottoni at libero.it Thu Oct 26 02:31:47 2006 From: alessandro-bottoni at libero.it (Alessandro Bottoni) Date: Thu, 26 Oct 2006 08:31:47 +0200 Subject: [Mono-list] Mono and MS Singularity In-Reply-To: <0ADBAFCD-411E-4B72-82A6-D101F02C53F9@web.de> References: <453F5112.4070304@libero.it> <453F591A.1080304@occams.info> <0ADBAFCD-411E-4B72-82A6-D101F02C53F9@web.de> Message-ID: <45405653.6090003@libero.it> Andreas F?rber ha scritto: > Concerning the thought of a managed OS, wouldn't that either mean you'd > have to write it in assembler and thus architecture-specific or you'd > need CLI-specific hardware? I thought I heard for Java there was some > research to create a processor that could directly execute Java > bytecode, don't have any links though. Myabe it was JOP: http://www.jopdesign.com/ (FPGA based). > Anyway, there are a number of both experimental and commercial operating > systems out there, each with their unique pros and cons - I'm having a look at those, for example: http://www.jnode.org/ (http://en.wikipedia.org/wiki/JNode) http://www.vitanuova.com/inferno/index.html (http://en.wikipedia.org/wiki/Inferno_%28operating_system%29) They are quite interesting. In particular, Inferno is quite mature and its language, Limbo, is quite similar to C#. I know of a few others, as well: http://www.eros-os.org/ (uperseded by coyotos and capros) (http://en.wikipedia.org/wiki/Extremely_Reliable_Operating_System) http://www.coyotos.org/ (used by HURD) http://www.capros.org/ (successor of EROS) http://www.bluebottle.ethz.ch/ (based on Oberon) They are all, more or less, experimental and they are almost completely unable to run on a machine that is different form the one used for their development because of the lack of drivers. > even if Novell > as a widely known company said its OS would in a future version be fully > managed, then that would still mean that they would have to "re-invent" > everything from the ground up (resource management, threading etc.) just > like any other OS (e.g. Linux) and even if they did and supplied drivers > for virtually every device as well as a set of apps then that would > still not assure a commercial success in the sense of a large user base. > (think BeOS) Same argument as for Singularity. However, this is in no > way intended to stop you from proving it can be done. :-) Yes, it would be a huge effort and it would not have any guarantee to be appreciated by the market. BeOS demonstrated how a good OS can be ignored by the market. Anyway, if MS will go ahead on this road, the FLOSS world will have to follow it. Inferno, Mono and CoyotOS could be good starting points. Thanks for your time. ------------------------ Alessandro Bottoni From madtom1999 at yahoo.com Thu Oct 26 04:26:26 2006 From: madtom1999 at yahoo.com (tom potts) Date: Thu, 26 Oct 2006 09:26:26 +0100 (BST) Subject: [Mono-list] Documentation Message-ID: <20061026082626.20603.qmail@web51515.mail.yahoo.com> A recent post mentioned http://www.mono-project.com/Parallel_Mono_Environments It may be just me but I cant 'find' that documentation from the root of the web - is there a wealth of orphaned documentation out there? Or more likely I've missed something - but what? Tom Send instant messages to your online friends http://uk.messenger.yahoo.com From alan.mcgovern at gmail.com Thu Oct 26 05:50:56 2006 From: alan.mcgovern at gmail.com (Alan McGovern) Date: Thu, 26 Oct 2006 10:50:56 +0100 Subject: [Mono-list] GConf 2 error (windows) Message-ID: <117799f00610260250x30cf301et4ce799181bb3e282@mail.gmail.com> Hi, I'm trying to load up a GTK# based app on Windows and i've encountered a few problems. Firstly i had problems with library XXX.so could not be found. The first library that couldn't be found was libMonoPosixHelper.so. So i removed that entry from the configuration file and the error disappeared, but now i had a mising libc.so.6 problem. Then i removed *all* the dllmap entries in the configuration file and the application started loading up. The only problem now is that, a call to GConf.Client client = new GConf.Client() throws this exception: Unhandled Exception: System.DllNotFoundException: gconf-2 at (wrapper managed-to-native) GConf.ClientBase:gconf_is_initialized () at GConf.ClientBase.Initialize () [0x00000] at GConf.Client..ctor () [0x00000] at MonoTorrent.Interface.Settings.GConfSettingsStorage..ctor ( System.String ba seKey) [0x00000] at MonoTorrent.Interface.Settings.SettingsStorage..ctor () [0x00000] at MonoTorrent.Interface.Settings.SettingsStorage.get_Instance () [0x00000] at MonoTorrent.Interface.Settings.Configuration..ctor () [0x00000] So, does anyone have any advice for me? Firstly, was it ok to remove all those DLLMap entries? Also, how do i set up the application to run under MS.NET? At the moment MS.NET is throwing the same missing dll exceptions that mono used to throw until i removed the dllmap entries. Secondly, (and more importantly) how do i get GConf to not throw that exception ;) Thanks, Alan. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061026/834e8dbd/attachment.html From miguel at ximian.com Thu Oct 26 11:26:45 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Thu, 26 Oct 2006 11:26:45 -0400 Subject: [Mono-list] Mono Meeting slides are now available Message-ID: <1161876405.3929.15.camel@erandi.dom> We have uploaded the slides used at the Mono meeting: http://www.go-mono.com/meeting/schedule.aspx Miguel From koxta at koxta.net Thu Oct 26 12:39:30 2006 From: koxta at koxta.net (Jurek Bartuszek) Date: Thu, 26 Oct 2006 18:39:30 +0200 Subject: [Mono-list] Building mod_mono-1.1.13.5 (maintenance release) against apache 2.0 fails Message-ID: <4540E4C2.4000601@koxta.net> Hi there, I'm trying to build mod_mono-1.1.13.5 against apache 2.0 but configure shows that my apache version is 1.3. I need to pass --with-apr-config=/usr/bin/apr-config manually. Is there any other way to fix this (possibly a patch against configure/configure.in)? Best regards, Jurek Bartuszek From koxta at koxta.net Thu Oct 26 21:01:05 2006 From: koxta at koxta.net (Jurek Bartuszek) Date: Fri, 27 Oct 2006 03:01:05 +0200 Subject: [Mono-list] Hosting ASP.NET 2.0 applications by default Message-ID: <45415A51.4020703@koxta.net> Hi there, I'm trying to configure mod_mono.conf so that mod_mono spawns a mod-mono-server2.exe to handle ASP.NET applications. Therefore I've added the line below: MonoServerPath "/usr/lib/xsp/2.0/mod-mono-server2.exe" However, this causes _both_ mod-mono-server.exe and mod-mono-server2.exe to be started: apache 15676 7.1 0.6 17540 6396 ? Ssl 02:55 0:00 /usr/lib/pkgconfig/../../bin/mono /usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --nonstop --master apache 15699 10.6 0.8 19688 8352 ? Ssl 02:55 0:00 /usr/lib/pkgconfig/../../bin/mono /usr/lib/xsp/2.0/mod-mono-server2.exe --filename /tmp/mod_mono_server_default --applications /mono:/usr/lib/xsp/test --nonstop This of course causes server internal errors. Any ideas how to stop the unwanted server? Best regards, Jurek Bartuszek From james_barbetti at yahoo.com Fri Oct 27 00:02:39 2006 From: james_barbetti at yahoo.com (James Barbetti) Date: Thu, 26 Oct 2006 21:02:39 -0700 (PDT) Subject: [Mono-list] Equivalent for local machine registry settings Message-ID: <20061027040239.56799.qmail@web90412.mail.mud.yahoo.com> Can anyone tell me if there is a common convention for simulating HKEY_LOCAL_MACHINE registry settings properly? From what I have read in the Mono documentation for the (Microsoft.Win32) Registry and RegistryKey classes, LocalMachine is simulated via subdirectories under the user's $HOME directory, which means that the registry settings under LocalMachine are per-user, and *not* per-machine. For us, that rules out using Registry.LocalMachine to store per-machine settings. What are other people using (if anything) to store per-machine settings from applications written in .Net, running on Linux via Mono. Configuration files? If so, where should they be? Would symbolic links (with the per-user subdirectories corresponding to local machine mapped to a per-machine directory) work? I'm comfortable with using Mono's Registry classes for per-user settings, but - out of the box - they aren't up to the job for per-machine settings. What are the alternatives and/or workarounds? ____________________________________________________ On Yahoo!7 Break a world record with Total Girl's World?s Largest Slumber Party http://www.totalgirl.com.au/slumberparty From robertj at gmx.net Fri Oct 27 03:28:26 2006 From: robertj at gmx.net (Robert Jordan) Date: Fri, 27 Oct 2006 09:28:26 +0200 Subject: [Mono-list] Hosting ASP.NET 2.0 applications by default In-Reply-To: <45415A51.4020703@koxta.net> References: <45415A51.4020703@koxta.net> Message-ID: Jurek Bartuszek wrote: > Hi there, > > I'm trying to configure mod_mono.conf so that mod_mono spawns a > mod-mono-server2.exe to handle ASP.NET applications. Therefore I've > added the line below: > > MonoServerPath "/usr/lib/xsp/2.0/mod-mono-server2.exe" > > However, this causes _both_ mod-mono-server.exe and mod-mono-server2.exe > to be started: > > apache 15676 7.1 0.6 17540 6396 ? Ssl 02:55 0:00 > /usr/lib/pkgconfig/../../bin/mono > /usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe --filename > /tmp/mod_mono_server_global --nonstop --master > apache 15699 10.6 0.8 19688 8352 ? Ssl 02:55 0:00 > /usr/lib/pkgconfig/../../bin/mono /usr/lib/xsp/2.0/mod-mono-server2.exe > --filename /tmp/mod_mono_server_default --applications > /mono:/usr/lib/xsp/test --nonstop > > This of course causes server internal errors. Any ideas how to stop the > unwanted server? Of course? Nope. The first server is handling the AutoHosting feature: http://mono-project.com/AutoHosting From your previous posts, you seem to want to run ASP.NET 2.0 on Mono 1.1.13. This isn't a good idea, because ASP.NET 2.0 was far from being complete in this version. Robert From koxta at koxta.net Fri Oct 27 06:03:47 2006 From: koxta at koxta.net (Jurek Bartuszek) Date: Fri, 27 Oct 2006 12:03:47 +0200 Subject: [Mono-list] Hosting ASP.NET 2.0 applications by default Message-ID: <4541D983.2060409@koxta.net> > Of course? Nope. The first server is handling the AutoHosting feature: > http://mono-project.com/AutoHosting > > From your previous posts, you seem to want to run ASP.NET 2.0 > on Mono 1.1.13. This isn't a good idea, because ASP.NET 2.0 > was far from being complete in this version. Ok, thanks. And if I wanted to do this on 1.1.18? How would I setup mod_mono so that AutoHosting is handled by mod-mono-server2.exe? Best regards, Jurek Bartuszek From robertj at gmx.net Fri Oct 27 09:07:52 2006 From: robertj at gmx.net (Robert Jordan) Date: Fri, 27 Oct 2006 15:07:52 +0200 Subject: [Mono-list] Hosting ASP.NET 2.0 applications by default In-Reply-To: <4541D983.2060409@koxta.net> References: <4541D983.2060409@koxta.net> Message-ID: Jurek Bartuszek wrote: >> Of course? Nope. The first server is handling the AutoHosting feature: >> http://mono-project.com/AutoHosting >> >> From your previous posts, you seem to want to run ASP.NET 2.0 >> on Mono 1.1.13. This isn't a good idea, because ASP.NET 2.0 >> was far from being complete in this version. > > Ok, thanks. And if I wanted to do this on 1.1.18? How would I setup > mod_mono so that AutoHosting is handled by mod-mono-server2.exe? AFAIK, you can't do that officially, but you could try one of this: 1) MonoServerPath XXGLOBAL /usr/bin/mod-mono-server2 (not sure it works) 2) edit mod_mono.h, change MODMONO_SERVER_PATH, recompile. Notice that MonoServerPath's meaning has changed starting with Mono 1.1.17: http://mono-project.com/Mod_mono#Multiple_Applications.2C_Multiple_mod-mono-servers section "Paths". Robert From koxta at koxta.net Fri Oct 27 09:25:45 2006 From: koxta at koxta.net (Jurek Bartuszek) Date: Fri, 27 Oct 2006 15:25:45 +0200 Subject: [Mono-list] Hosting ASP.NET 2.0 applications by default In-Reply-To: References: <4541D983.2060409@koxta.net> Message-ID: <454208D9.5040500@koxta.net> Robert Jordan napisa?(a): > AFAIK, you can't do that officially, but you could try one of this: Thanks for reply. Simply setting MonoServerPath to mod-mono-server2.exe in 1.1.17/1.1.18 works here. Best regards, Jurek Bartuszek From generic2006 at libero.it Fri Oct 27 05:13:23 2006 From: generic2006 at libero.it (Generic 2006) Date: Fri, 27 Oct 2006 11:13:23 +0200 Subject: [Mono-list] [GTK#] Debian stable problem Message-ID: <4541CDB3.2030904@libero.it> Hi all Is there anybody using Mono on Debian stable (Sarge)? I'm experiencing a tough problem trying GTK# 1.0: it requires "libpangocairo", but Debian stable DOESN'T ship with it (it's available on testing and unstable only)! How did you solved such an issue? Many thanks (I'm desperate...) From miguel at ximian.com Fri Oct 27 10:10:39 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Fri, 27 Oct 2006 10:10:39 -0400 Subject: [Mono-list] Equivalent for local machine registry settings In-Reply-To: <20061027040239.56799.qmail@web90412.mail.mud.yahoo.com> References: <20061027040239.56799.qmail@web90412.mail.mud.yahoo.com> Message-ID: <1161958239.11127.3.camel@erandi.dom> > What are other people using (if anything) to store per-machine > settings from applications written in .Net, running on Linux via Mono. > Configuration files? You can have a .config file installed next side to your executable, and use that as your configuration file. Or you can store configuration settings in a file in the application base directory. Desktop folks are using GConf for this (but this is limited to GUI applications). > I'm comfortable with using Mono's Registry classes for per-user > settings, but - out of the box - they aren't up to the job for > per-machine settings. > What are the alternatives and/or workarounds? We should probably fix it to work with per-machine issues. From carlosga05 at gmail.com Fri Oct 27 10:32:17 2006 From: carlosga05 at gmail.com (=?ISO-8859-1?Q?Carlos_Guzm=E1n_=C1lvarez?=) Date: Fri, 27 Oct 2006 16:32:17 +0200 Subject: [Mono-list] [ANN] FirebirdClient v2.0.1 released. Message-ID: <45421871.7000307@gmail.com> Hello: FirebirdClient v2.0.1, ADO.NET Data Provider for Microsoft .NET 2.0, and mono is available for download. Download information can be found here: http://www.firebirdsql.org/index.php?op=files&id=netprovider On this release there are two new binary packages for: ? Mono 1.1.18+ * Microsoft .NET Compact Framework 2.0 -- Carlos Guzm?n ?lvarez Vigo-Spain http://carlosga.wordpress.com From hamaldonado at gmail.com Fri Oct 27 10:34:55 2006 From: hamaldonado at gmail.com (=?ISO-8859-1?Q?H=E9ctor_Maldonado?=) Date: Fri, 27 Oct 2006 09:34:55 -0500 Subject: [Mono-list] C#, Mono, MAC Addresses, Linux Message-ID: Hello.. I am migrating a C# application porgrammed under Windows using VS2003 to Linux using Mono. All the migration was almost a clean process except for one thing: my app needs to obtain the MAC address(es). Because .Net doesn't have native support for this (or if it so, I can't found it) I manged to do it under windows using some external apis. But how can I do the same under Linux? Any help will be appreciated. H?ctor. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061027/16f32a9e/attachment.html From miguel at ximian.com Fri Oct 27 19:41:30 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Fri, 27 Oct 2006 19:41:30 -0400 Subject: [Mono-list] C#, Mono, MAC Addresses, Linux In-Reply-To: References: Message-ID: <1161992490.16838.9.camel@erandi.dom> Hello, > But how can I do the same under Linux? Open the file /proc/net/arp and lookup the address there. From xcap2000 at gmail.com Sat Oct 28 20:10:33 2006 From: xcap2000 at gmail.com (Carlos Adriano Portes) Date: Sat, 28 Oct 2006 22:10:33 -0200 Subject: [Mono-list] Learning ASP.NET? Message-ID: <9a034090610281710n54ba7fb5q8e6470aeaf42ee32@mail.gmail.com> Hi buddies! I would like to know where I could get some material for me to learn ASP.NET, I am learning C# in order to be able to build applications with only the compiler and a editor, so I would like to learn ASP.NET to use with my linux as well! I know HTML and think that ASP.NET tags are not so difficult to understand, can someone point me a direction to follow? Thanks in advance! From rstaff at sprynet.com Sat Oct 28 18:35:24 2006 From: rstaff at sprynet.com (Richard Staff) Date: Sat, 28 Oct 2006 18:35:24 -0400 Subject: [Mono-list] OT: XSP vs XSP2 Message-ID: <4543DB2C.4020308@sprynet.com> As a newbie to C# .NET I have not yet done anything Web based. However, somehow during the install of oodles of mono stuff I ended with both XSP and XSP2 active. I believe I said yes when asked do you want these services (little boy greed, I want it all). How do I stop XSP (or XSP2)? And which one should I turn off (keep)? Thanks, Rick From steflik at binghamton.edu Sat Oct 28 23:36:53 2006 From: steflik at binghamton.edu (steflik) Date: Sat, 28 Oct 2006 23:36:53 -0400 Subject: [Mono-list] Learning ASP.NET? In-Reply-To: <9a034090610281710n54ba7fb5q8e6470aeaf42ee32@mail.gmail.com> References: <9a034090610281710n54ba7fb5q8e6470aeaf42ee32@mail.gmail.com> Message-ID: <454421D5.2090609@binghamton.edu> There is a good book from OReily called Programming ASP.NET, all examples are shown in both VB and C#. Dick Steflik Carlos Adriano Portes wrote: >Hi buddies! > >I would like to know where I could get some material for me to learn >ASP.NET, I am learning C# in order to be able to build applications >with only the compiler and a editor, so I would like to learn ASP.NET >to use with my linux as well! >I know HTML and think that ASP.NET tags are not so difficult to >understand, can someone point me a direction to follow? > >Thanks in advance! >_______________________________________________ >Mono-list maillist - Mono-list at lists.ximian.com >http://lists.ximian.com/mailman/listinfo/mono-list > > > From kobruleht2 at hot.ee Sun Oct 29 05:01:00 2006 From: kobruleht2 at hot.ee (Andrus) Date: Sun, 29 Oct 2006 12:01:00 +0200 Subject: [Mono-list] GTK# DataGrid sample References: <20061022235304.72816.qmail@web30809.mail.mud.yahoo.com> Message-ID: <00cb01c6fb41$66f7ce00$8914eb50@acer> Daniel, thank you. I found the following disadvantages of this code compared to SWF: 1. As you wrote, this is only one-way binding. 2. Requires lot of manually written code. 3. Unfinished, not documented and tested. In case of WinForms I need to write manually only 3 lines for two-way data binding: Command1.CommandText = "select * FROM mytable"; DataAdapter1.Fill(dataSet1); DataSource = dataSet1.Tables[0]; Other code is generated by free Visual C# Express 2005 automatically and works in MONO. I have no experience to develop this in GTK# So I think I will try use WinForms data binding. Thank you very much for this sample. Now I understand that this can be implemented in GTK# also Andrus. ----- Original Message ----- >I have something I have worked on for awhile. > > Here are the source files I included: > DataGrid.cs - creates a DataGrid for Gtk# with data > binding support. > TestDataGrid.cs - tests the gtk# data grid > > Basically, you can take a pre-loaded DataTable, and > then "data bind" it to the DataGrid. It may not be > true data binding like SWF or webforms, but its an > attempt. > > A change to the data in the DataGrid will update the > data in the DataTable. > If you add a row or delete a row in the DataGrid, it > will be reflected in the DataTable. If you modify a > cell in the DataGrid, the row and column in the > DataTable will be updated. However, modifying > something in the DataTable does not update the > DataGrid. > > In the test, there are four menu items: > 1. Add Row - adds a row > 2. Dump Table - dumps to the console what's in the > DataTable > 3. Editable - sets the DataGrid editable or not > 4. Delete Selected Row - deletes the highlighted row > > The DataGrid is implemented using a Gtk# TreeView > using the ListStore tree model. > >> I need to edit DataTable returned by Npgsql in grid. >> I'm studying GTK# and WinForms DataGrid for this. >> It would be nice if sqlsharpgtk allows edit tables >> in grid. >> I was looking for a sample GTK# code which allows to >> edit DataTable in grid >> but have'nt found any. >> So I think I will use WinForms. -------------------------------------------------------------------------------- > // DataGrid.cs > namespace Mono.Data.GtkSharp > { > // notice System.Data is not references here > > using System; > using System.Collections; > using System.ComponentModel; > using System.Reflection; > using System.Runtime.InteropServices; > using System.Text; > > using GLib; > using Gtk; > > public class DataGridColumn > { > private string columnName = ""; > private TreeViewColumn treeViewColumn = null; > public CellRendererText Renderer = null; // should be internal > > public string ColumnName { > get { > return columnName; > } > set { > columnName = value; > } > } > > public TreeViewColumn TreeViewColumn { > get { > return treeViewColumn; > } > set { > treeViewColumn = value; > } > } > } > > public class DataGrid : VBox { > private ListStore store; > private TreeView treeView; > > public ArrayList gridColumns; // TODO: make Columns a collection > > public DataGrid () : base(false, 4) { > ScrolledWindow sw = new ScrolledWindow (); > this.PackStart (sw, true, true, 0); > > treeView = new TreeView (store); > treeView.HeadersVisible = true; > //treeView.ModifyFont (Pango.FontDescription.FromString ("courier new")); > > gridColumns = new ArrayList(0); > > sw.Add (treeView); > > store = new ListStore (GLib.GType.String); > > treeView.EnableSearch = true; > treeView.HeadersClickable = true; > dataMember = ""; > dataSource = null; > > > } > > ArrayList bindrows = null; > object resolvedDataSource = null; > > private bool editable = true; > > private object dataSource; > > private string dataMember; > > public int SelectedRow { > get { > TreeIter iter; > TreeModel model; > TreeSelection selection = treeView.Selection; > if (selection.GetSelected (out model, out iter)) { > TreePath[] path = selection.GetSelectedRows (out model); > return path[0].Indices[0]; // return selected row > } > else > return -1; // not selected > } > } > > public TreeIter SelectedIter { > get { > TreeIter iter; > TreeModel model; > TreeSelection selection = treeView.Selection; > if (selection.GetSelected (out model, out iter)) > return iter; // return seelcted iter > else > return TreeIter.Zero; // not selected > } > > } > > public TreeView View > { > get > { > return treeView; > } > } > > public object DataSource > { > get > { > return dataSource; > } > set > { > dataSource = value; > } > } > > public string DataMember > { > get > { > return dataMember; > } > set > { > dataMember = value; > } > } > > public ListStore Store > { > get > { > return store; > } > } > > public ArrayList Columns > { > get > { > return gridColumns; > } > } > > public bool Editable { > get { > return editable; // not a good way to see if its editable or not > // because various columns could be editable and others non-editable > } > > set { > editable = value; > if (value == true) { > for(int c = 0; c < gridColumns.Count; c++) { > DataGridColumn col = (DataGridColumn) gridColumns[c]; > col.TreeViewColumn.Clickable = true; > col.Renderer.Mode = CellRendererMode.Editable; > col.Renderer.Editable = true; > } > treeView.RulesHint = true; > treeView.Selection.Mode = SelectionMode.Single; > } > else { > for(int c = 0; c < gridColumns.Count; c++) { > DataGridColumn col = (DataGridColumn) gridColumns[c]; > col.TreeViewColumn.Clickable = false; > col.Renderer.Mode = CellRendererMode.Inert; > col.Renderer.Editable = false; > } > treeView.RulesHint = false; > treeView.Selection.Mode = SelectionMode.Single; > } > } > } > > public int AddNew() > { > // TODO: need to check if resolved data source is not null > > IBindingList b = (IBindingList) resolvedDataSource; > > if (b.AllowNew) { > object obj = b.AddNew(); > if (obj == null) { > //Console.Error.WriteLine("obj is null"); > } > else { > //Console.Error.WriteLine("Type: " + obj.GetType().ToString()); > bindrows.Add(obj); > > TreeIter iter = NewRow(); > for(int i = 0; i < gridColumns.Count; i++) > SetColumnValue (iter, i, String.Empty); > > return bindrows.Count - 1; > } > } > > return -1; > } > > public int DeleteRow(int row) > { > if (row < 0) > return -1; // should throw an exception - out of range > > TreeIter iter = TreeIter.Zero; > if (store.IterNthChild(out iter, row) == false) > return -1; > > IBindingList b = (IBindingList) resolvedDataSource; > if (b.AllowRemove) { > IList list = (IList) resolvedDataSource; > bindrows.RemoveAt(row); > store.Remove (ref iter); > list.RemoveAt (row); > > return row; > } > > return -1; > } > > // sets the column count. beware, it clears > // use this if you are going to load each column and row yourself > // instead of using DataBind() or DataLoad() > public void SetColumnCount (int columnCount) > { > Clear (); > dataMember = ""; > dataSource = null; > > GLib.GType[] theTypes = new GLib.GType[columnCount]; > gridColumns = new ArrayList (); > for (int col = 0; col < columnCount; col++) > { > theTypes[col] = GLib.GType.String; > gridColumns.Add (new DataGridColumn ()); > } > store.ColumnTypes = theTypes; > } > > // load data from a data table or data set > public long DataBind () > { > long rowsRetrieved = 0; > > Clear (); > > System.Object o = null; > o = GetResolvedDataSource (DataSource, DataMember); > resolvedDataSource = o; > IEnumerable ie = (IEnumerable) o; > ITypedList tlist = (ITypedList) o; > TreeIter iter = new TreeIter (); > > PropertyDescriptorCollection pdc = tlist.GetItemProperties (new > PropertyDescriptor[0]); > gridColumns = new ArrayList(pdc.Count); > > // define the columns in the treeview store > // based on the schema of the result > GLib.GType[] theTypes = new GLib.GType[pdc.Count]; > for (int col = 0; col < pdc.Count; col++) { > theTypes[col] = GLib.GType.String; > } > store.ColumnTypes = theTypes; > > bindrows = new ArrayList(); > > int colndx = -1; > foreach (PropertyDescriptor pd in pdc) { > > colndx ++; > > DataGridColumn gridCol = new DataGridColumn (); > gridCol.ColumnName = pd.Name; > gridColumns.Add (gridCol); > } > > bindrows = new ArrayList(); > > foreach (System.Object obj in ie) { > ICustomTypeDescriptor custom = (ICustomTypeDescriptor) obj; > PropertyDescriptorCollection properties = custom.GetProperties (); > > bindrows.Add(obj); > > rowsRetrieved ++; > iter = NewRow (); > int cv = 0; > foreach (PropertyDescriptor property in properties) { > object oPropValue = property.GetValue (obj); > string sPropValue = ""; > if (oPropValue.GetType ().ToString ().Equals("System.Byte[]")) { > //sPropValue = SqlSharpGtk.GetHexString ((byte[]) oPropValue); > Console.Error.WriteLine("Byte[] value"); > } > else > sPropValue = oPropValue.ToString (); > > SetColumnValue (iter, cv, sPropValue); > cv++; > } > } > > treeView.Model = store; > AutoCreateTreeViewColumns (); > return rowsRetrieved; > } > > // borrowed from Mono's System.Web implementation > protected IEnumerable GetResolvedDataSource(object source, string member) > { > if (source != null && source is IListSource) { > IListSource src = (IListSource) source; > IList list = src.GetList (); > if (!src.ContainsListCollection) { > return list; > } > if (list != null && list is ITypedList) { > > ITypedList tlist = (ITypedList) list; > PropertyDescriptorCollection pdc = tlist.GetItemProperties (new > PropertyDescriptor[0]); > if (pdc != null && pdc.Count > 0) { > PropertyDescriptor pd = null; > if (member != null && member.Length > 0) { > pd = pdc.Find (member, true); > } else { > pd = pdc[0]; > } > if (pd != null) { > object rv = pd.GetValue (list[0]); > if (rv != null && rv is IEnumerable) { > return (IEnumerable)rv; > } > } > throw new Exception ("ListSource_Missing_DataMember"); > } > throw new Exception ("ListSource_Without_DataMembers"); > } > } > if (source is IEnumerable) { > return (IEnumerable)source; > } > return null; > } > > public void Clear () > { > if (store != null) > { > store.Clear (); > store = null; > store = new ListStore (GLib.GType.String); > } > else > store = new ListStore (GLib.GType.String); > > if (gridColumns != null) > { > for (int c = 0; c < gridColumns.Count; c++) > { > DataGridColumn gridCol = (DataGridColumn) gridColumns[c]; > if (gridCol.TreeViewColumn != null) > { > treeView.RemoveColumn (gridCol.TreeViewColumn); > gridCol.TreeViewColumn = null; > } > } > gridColumns.Clear (); > gridColumns = null; > } > } > > public TreeIter NewRow () > { > return store.Append(); > } > > public void AddRow (object[] columnValues) > { > TreeIter iter = NewRow (); > for(int col = 0; col < columnValues.Length; col++) { > string cellValue = columnValues[col].ToString (); > SetColumnValue (iter, col, cellValue); > } > } > > public void SetColumnValue (TreeIter iter, int column, string value) > { > GLib.Value cell = new GLib.Value (value); > store.SetValue (iter, column, cell); > } > > public void SetColumnValue (TreeIter iter, int column, byte[] value) > { > //string svalue = SqlSharpGtk.GetHexString (value); > //SetColumnValue (iter, column, svalue); > } > > private void AutoCreateTreeViewColumns () > { > for(int col = 0; col < gridColumns.Count; col++) { > // escape underscore _ because it is used > // as the underline in menus and labels > StringBuilder name = new StringBuilder (); > foreach (char ch in ((DataGridColumn) gridColumns[col]).ColumnName) { > if (ch == '_') > name.Append ("__"); > else > name.Append (ch); > } > TreeViewColumn tvc = CreateColumn (col, name.ToString ()); > AppendColumn (tvc); > } > } > > public int AppendColumn(TreeViewColumn tvc) > { > return treeView.AppendColumn (tvc); > } > > private void TextCellEdited (object o, EditedArgs args) > { > IBindingList b = (IBindingList) resolvedDataSource; > if (b.AllowEdit) { > // ITypedList may help you figure out how to convert > // between different data types > // such as, how to display numbers, dates, etc... > > TreePath path = new TreePath (args.Path); > TreeIter iter; > store.GetIter (out iter, path); > int i = path.Indices[0]; > > TreePath cpath; > string cellValue = args.NewText; > > TreeViewColumn tvcolumn; > treeView.GetCursor (out cpath, out tvcolumn); > int c = 0; > for(c = 0; c < gridColumns.Count; c++) { > TreeViewColumn tvc = ((DataGridColumn) gridColumns[c]).TreeViewColumn; > if (tvcolumn == tvc) { > Console.Error.WriteLine("Column clicked: Column Name: " + > tvcolumn.Title); > Console.Error.WriteLine(" Ordinal: " + c.ToString()); > break; > } > } > > if (c >= gridColumns.Count) > Console.Error.WriteLine("tv col not found"); > > ICustomTypeDescriptor custom = (ICustomTypeDescriptor) bindrows[i]; > PropertyDescriptorCollection properties = custom.GetProperties (); > PropertyDescriptor pd = properties[c]; > pd.SetValue(bindrows[i], cellValue); > > Console.Error.WriteLine(" Row number: " + path.Indices[0].ToString()); > Console.Error.WriteLine(" Cell Value: " + cellValue); > > ((IEditableObject) bindrows[i]).BeginEdit(); > SetColumnValue(iter, c, cellValue); > ((IEditableObject) bindrows[i]).EndEdit(); > } > } > > public TreeViewColumn CreateColumn (int columnNum, string columnName) > { > TreeViewColumn treeViewCol = new TreeViewColumn (); > CellRendererText renderer = new CellRendererText (); > treeViewCol.Clickable = true; > treeView.RulesHint = true; > > treeView.Selection.Mode = SelectionMode.Single; > //treeView.Selection.Mode = SelectionMode.Multiple; > > // Editable, Activatable, Inert > renderer.Mode = CellRendererMode.Editable; > //renderer.Family = "courier new"; > renderer.Editable = true; > renderer.Edited += new EditedHandler (TextCellEdited); > treeViewCol.Title = columnName; > treeViewCol.PackStart (renderer, true); > treeViewCol.AddAttribute (renderer, "text", columnNum); > > DataGridColumn gridCol = (DataGridColumn) gridColumns[columnNum]; > gridCol.Renderer = renderer; > gridCol.TreeViewColumn = treeViewCol; > > return treeViewCol; > } > } > } > > -------------------------------------------------------------------------------- > // $ mcs /out:TestDataGrid.exe TestDataGrid.cs > DataGrid.cs -pkg:gtk-sharp-2.0 /r:System.Data.dll > // TestDataGrid.cs > namespace Mono.Data.GtkSharp > { > using System; > using System.Collections; > using System.Collections.Specialized; > using System.Configuration; > using System.Data; > using System.Data.Common; > using System.Data.SqlTypes; > using System.Text; > using System.IO; > using System.Reflection; > using System.Runtime.Remoting; > using System.Runtime.InteropServices; > using System.Diagnostics; > > using Gdk; > using Gtk; > > public class TestDataGrid > { > private DataTable table; > private Gtk.Window win; > private DataGrid grid; > //private TextView textView; > > public static readonly string ApplicationName = "Gtk# DataGrid Test"; > > public TestDataGrid () > { > CreateGui (); > } > > public DataGrid Grid { > get { > return grid; > } > } > > public void Show () > { > win.ShowAll (); > } > > public void CreateGui () > { > win = new Gtk.Window (ApplicationName); > win.DeleteEvent += new Gtk.DeleteEventHandler (OnWindow_Delete); > win.BorderWidth = 4; > win.SetDefaultSize (600, 500); > > VBox vbox = new VBox (false, 4); > win.Add (vbox); > > MenuBar mb = CreateMenuBar (); > vbox.PackStart (mb, false, false, 0); > > VPaned vpaned = new VPaned (); > vbox.PackStart (vpaned, true, true, 0); > grid = CreateOutputResultsDataGrid(); > vpaned.Add1 (grid); > } > > DataGrid CreateOutputResultsDataGrid () > { > DataGrid grid = new DataGrid (); > > //grid.View.ButtonReleaseEvent += > // new Gtk.ButtonReleaseEventHandler (OnDataGridButtonRelease); > //grid.Editable = false; > > return grid; > } > > void OnWindow_Delete (object o, Gtk.DeleteEventArgs args) > { > QuitApplication(); > } > > void QuitApplication () > { > Application.Quit (); > } > > public static void DoEvents () > { > while (Application.EventsPending ()) > Application.RunIteration (); > } > > public DataTable BuildDataTableSample() > { > table = new DataTable(); > > int maxColumns = 5; > int maxRows = 3; > > for(int i = 0; i < maxColumns; i++) { > string columnName = String.Format("Column{0}", i); > table.Columns.Add(columnName); > } > > for(int r = 0; r < maxRows; r++) { > DataRow row = table.NewRow(); > for(int c = 0; c < table.Columns.Count; c++) { > string cellValue = String.Format("(Row{0},Column{1})", r, c); > row[c] = cellValue; > } > table.Rows.Add(row); > } > > return table; > } > > void OnMenu_DumpTable (object o, EventArgs args) > { > Console.Error.WriteLine("__=========== T a b l e D u m p > =========__"); > Console.Error.WriteLine("Row Count: " + table.Rows.Count.ToString()); > for(int r = 0; r < table.Rows.Count; r++) { > DataRow row = table.Rows[r]; > StringBuilder sb = new StringBuilder(); > for(int c = 0; c < table.Columns.Count; c++) { > string s = row[c].ToString(); > sb.Append(s); > sb.Append(" "); > } > Console.Error.WriteLine(sb.ToString()); > } > Console.Error.WriteLine("=-----------------------------------------------="); > } > > void OnMenu_Editable (object o, EventArgs args) > { > grid.Editable = !grid.Editable; > } > > void OnMenu_AddNew (object o, EventArgs args) > { > AddNew(); > } > > void OnMenu_DeleteSelectedRow (object o, EventArgs args) > { > int selectedRow = 0; > selectedRow = grid.SelectedRow; > if (selectedRow >= 0) > grid.DeleteRow (selectedRow); > } > > void AddNew() > { > grid.AddNew(); > } > > public MenuBar CreateMenuBar () { > MenuBar menuBar = new MenuBar (); > Menu menu; > MenuItem item; > MenuItem barItem; > > menu = new Menu (); > > item = new MenuItem ("Add Row"); > item.Activated += new EventHandler (OnMenu_AddNew); > menu.Append (item); > > item = new MenuItem ("Dump Table"); > item.Activated += new EventHandler (OnMenu_DumpTable); > menu.Append (item); > > item = new MenuItem ("Editable"); > item.Activated += new EventHandler (OnMenu_Editable); > menu.Append (item); > > item = new MenuItem ("Delete Selected Row"); > item.Activated += new EventHandler (OnMenu_DeleteSelectedRow); > menu.Append (item); > > barItem = new MenuItem ("Test"); > barItem.Submenu = menu; > menuBar.Append (barItem); > > return menuBar; > } > > public static int Main (string[] args) > { > Application.Init (); > TestDataGrid test = new TestDataGrid (); > DataTable sampleTable = test.BuildDataTableSample(); > test.Grid.DataSource = sampleTable; > test.Grid.DataBind(); > test.Show (); > DoEvents (); > //test.Grid.Editable = false; > Application.Run (); > return 0; > } > } > } > > From NGoldstein at nds.com Sun Oct 29 05:50:26 2006 From: NGoldstein at nds.com (Goldstein, Nachum (Jonathan)) Date: Sun, 29 Oct 2006 12:50:26 +0200 Subject: [Mono-list] C# COM server in mono? Message-ID: Does anyone have step-by-step instructions on how to build a COM server in mono, that can be installed on a Windows machine? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061029/10972f28/attachment-0001.html From NGoldstein at nds.com Sun Oct 29 06:52:11 2006 From: NGoldstein at nds.com (Goldstein, Nachum (Jonathan)) Date: Sun, 29 Oct 2006 13:52:11 +0200 Subject: [Mono-list] Cannot run monodoc on windows Message-ID: Please help. Thanks. I have mono 1.1.18 installed on Windows 2K. >monodoc --make-index Produces the following output: >PATH=C:\PROGRA~1\MONO-1~1.18\bin;C:\PROGRA~1\MONO-1~1.18\bin;c:\WINNT;c :\WINNT\System32 Root: Leaf: Assemblies Leaf: Images Leaf: Classes Leaf: Code Generation Leaf: Debugging API Leaf: Decimal Representation Leaf: Application Domains Leaf: Dynamic Code Generation Leaf: Exceptions Leaf: GC Handles Leaf: Garbage Collection Leaf: Embedding Mono Leaf: Internals Leaf: Interpreter Leaf: Just in Time Compiler Leaf: Marshalling Leaf: Metadata access Leaf: Methods Leaf: Objects Leaf: Profiler Leaf: Reflection Leaf: Strings Leaf: Threading API Leaf: Tracing Leaf: JIT Counters Leaf: Types Leaf: Common Types Leaf: Unsorted Leaf: Utility Functions Leaf: VM calls Leaf: Security API calls Leaf: Portable Windows Layer Unhandled Exception: System.DllNotFoundException: libc.so.6 at (wrapper managed-to-native) Monodoc.RootTree:chmod (string,int) at Monodoc.RootTree.MakeIndex () [0x00000] at Monodoc.Driver.Main (System.String[] args) [0x00000] *********************************************************************************** This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message. *********************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061029/e1fa5b33/attachment.html From lists at ophion.org Sun Oct 29 12:24:34 2006 From: lists at ophion.org (Rafael Ferreira) Date: Sun, 29 Oct 2006 10:24:34 -0700 Subject: [Mono-list] Cannot run monodoc on windows In-Reply-To: References: Message-ID: <1162142674.2573.1.camel@stan.ophion.org> it looks like your installation is corrupted (libc cannot be found). Did you compile it from source or did you use of the windows installers? I would suggest reinstalling from one of the bundled windows releases and trying again. - raf On Sun, 2006-10-29 at 13:52 +0200, Goldstein, Nachum (Jonathan) wrote: > Please help. Thanks. > > I have mono 1.1.18 installed on Windows 2K. > > >monodoc --make-index > > Produces the following output: > > >PATH=C:\PROGRA~1\MONO-1~1.18\bin;C:\PROGRA~1\MONO-1~1.18\bin;c: > \WINNT;c:\WINNT\System32 > Root: > Leaf: Assemblies > Leaf: Images > Leaf: Classes > Leaf: Code Generation > Leaf: Debugging API > Leaf: Decimal Representation > Leaf: Application Domains > Leaf: Dynamic Code Generation > Leaf: Exceptions > Leaf: GC Handles > Leaf: Garbage Collection > Leaf: Embedding Mono > Leaf: Internals > Leaf: Interpreter > Leaf: Just in Time Compiler > Leaf: Marshalling > Leaf: Metadata access > Leaf: Methods > Leaf: Objects > Leaf: Profiler > Leaf: Reflection > Leaf: Strings > Leaf: Threading API > Leaf: Tracing > Leaf: JIT Counters > Leaf: Types > Leaf: Common Types > Leaf: Unsorted > Leaf: Utility Functions > Leaf: VM calls > Leaf: Security API calls > Leaf: Portable Windows Layer > > Unhandled Exception: System.DllNotFoundException: libc.so.6 > at (wrapper managed-to-native) Monodoc.RootTree:chmod (string,int) > at Monodoc.RootTree.MakeIndex () [0x00000] > at Monodoc.Driver.Main (System.String[] args) [0x00000] > > *********************************************************************************** > This email message and any attachments thereto are intended only for > use by the addressee(s) named above, and may contain legally > privileged and/or confidential information. If the reader of this > message is not the intended recipient, or the employee or agent > responsible to deliver it to the intended recipient, you are hereby > notified that any dissemination, distribution or copying of this > communication is strictly prohibited. If you have received this > communication in error, please immediately notify the > postmaster at nds.com and destroy the original message. > *********************************************************************************** > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From jonpryor at vt.edu Sun Oct 29 16:04:07 2006 From: jonpryor at vt.edu (Jonathan Pryor) Date: Sun, 29 Oct 2006 16:04:07 -0500 Subject: [Mono-list] Cannot run monodoc on windows In-Reply-To: <1162142674.2573.1.camel@stan.ophion.org> References: <1162142674.2573.1.camel@stan.ophion.org> Message-ID: <1162155848.3665.1.camel@melchior.magi> On Sun, 2006-10-29 at 10:24 -0700, Rafael Ferreira wrote: > it looks like your installation is corrupted (libc cannot be found). Did > you compile it from source or did you use of the windows installers? I > would suggest reinstalling from one of the bundled windows releases and > trying again. Take a closer look at that callstack: > > Unhandled Exception: System.DllNotFoundException: libc.so.6 > > at (wrapper managed-to-native) Monodoc.RootTree:chmod (string,int) > > at Monodoc.RootTree.MakeIndex () [0x00000] > > at Monodoc.Driver.Main (System.String[] args) [0x00000] It's failing because monodoc is trying to invoke chmod(2), which doesn't exist on windows (except through cygwin.dll, but that doesn't count). The obvious answer is that monodoc is not currently portable to Windows. I don't know how much work it would take to make it portable. - Jon From swiftk77 at gmail.com Sun Oct 29 16:25:31 2006 From: swiftk77 at gmail.com (Ken Swift) Date: Sun, 29 Oct 2006 14:25:31 -0700 Subject: [Mono-list] mod_mono 1.1.18 Message-ID: <8585cd890610291325y35712ffdk1c24027d770e05eb@mail.gmail.com> Hello - I previously had mod_mono 1.1.11working on my Redhat server, but then I upgraded to the latest stable release 1.1.18, but can't seem to get Apache to work completely. I did verify that running xsp independently works fine. I did test that the mono applications that I have configured in mod_mono.conf are working when I access them from localhost: http://localhost/ Here is a snapshot of my mod_mono.conf: LoadModule mono_module /usr/local/apache/libexec/mod_mono.so Alias /demo "/usr/local/share/doc/xsp/text" Alias /EventWeb "/home/ken/www/EventWeb" Alias /testmono "/home/ken/www/testmono" AddMonoApplications default "/demo:/usr/local/share/doc/xsp/test" AddMonoApplications default "/EventWeb:/home/ken/www/EventWeb" AddMonoApplications default "/testmono:/home/ken/www/testmono" SetHandler mono SetHandler mono AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd I think that the problem has to do with apache more than mod_mono, but have tried just about everything that I can think of. I should say that I have a few virtual hosts, do I need to add anything to them to handle mono requests? Thanks -- Ken -- Ken Swift ken at netoutlook.com From gonzalo at novell.com Sun Oct 29 16:34:34 2006 From: gonzalo at novell.com (Gonzalo Paniagua Javier) Date: Sun, 29 Oct 2006 16:34:34 -0500 Subject: [Mono-list] mod_mono 1.1.18 In-Reply-To: <8585cd890610291325y35712ffdk1c24027d770e05eb@mail.gmail.com> References: <8585cd890610291325y35712ffdk1c24027d770e05eb@mail.gmail.com> Message-ID: <1162157674.4132.2.camel@lalo.micasa> On Sun, 2006-10-29 at 14:25 -0700, Ken Swift wrote: [...] > I think that the problem has to do with apache more than mod_mono, but > have tried just about everything that I can think of. I should say > that I have a few virtual hosts, do I need to add anything to them to > handle mono requests? I think that mod_mono 1.1.18 shipped with a bug that might be the cause of your problems. Try moving all the mono related directives into each virtual host. -Gonzalo From glen.ford at spinvox.com Sun Oct 29 16:35:08 2006 From: glen.ford at spinvox.com (Glen Ford) Date: Sun, 29 Oct 2006 21:35:08 +0000 Subject: [Mono-list] fedora yum repository Message-ID: <45451E8C.8000904@spinvox.com> Does anyone know if the yum repository for fedora-5 moved (I last updated about 4/5 weeks ago, but now appears broken)? http://go-mono.com/download-latest/fedora-5-i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Date: Sun, 29 Oct 2006 21:32:26 GMT Server: Apache/2 Content-Length: 312 Connection: close Content-Type: text/html; charset=iso-8859-1 Trying other mirror. Cannot open/read repomd.xml file for repository: mono failure: repodata/repomd.xml from mono: [Errno 256] No more mirrors to try. Error: failure: repodata/repomd.xml from mono: [Errno 256] No more mirrors to try. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061029/9c402b2e/attachment.html From paul at all-the-johnsons.co.uk Sun Oct 29 05:34:10 2006 From: paul at all-the-johnsons.co.uk (Paul) Date: Sun, 29 Oct 2006 10:34:10 +0000 Subject: [Mono-list] Building mono-basic from the sources Message-ID: <1162118050.29366.7.camel@T7.Linux> Hi, I've downloaded the 1.1.18.zip file for mono-basic and have looked inside the archive and cannot find any logical way to build mono-basic under Linux. Is the zipfile at http://go-mono.com/sources-stable/ suitable for Linux or is there something I've missed? The spec file available from the mono website looks a pretty generic one with calls to make etc. TTFN Paul -- "Der einzige Weg, Leute zu kontrollieren ist sie anzul?gen" - L. Ron "Ich kann kein Science-Fiction schreiben" Hubbard; L?gner, Betr?ger, Fixer und Wohlt?ter zu niemandem -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.ximian.com/pipermail/mono-list/attachments/20061029/fc5b42ad/attachment.bin From lists at ophion.org Sun Oct 29 21:32:04 2006 From: lists at ophion.org (Rafael Ferreira) Date: Sun, 29 Oct 2006 19:32:04 -0700 Subject: [Mono-list] Cannot run monodoc on windows In-Reply-To: References: Message-ID: <1162175524.2625.2.camel@stan.ophion.org> Can you please file a bug? I'll take a look at it this week. On Sun, 2006-10-29 at 13:52 +0200, Goldstein, Nachum (Jonathan) wrote: > Please help. Thanks. > > I have mono 1.1.18 installed on Windows 2K. > > >monodoc --make-index > > Produces the following output: > > >PATH=C:\PROGRA~1\MONO-1~1.18\bin;C:\PROGRA~1\MONO-1~1.18\bin;c: > \WINNT;c:\WINNT\System32 > Root: > Leaf: Assemblies > Leaf: Images > Leaf: Classes > Leaf: Code Generation > Leaf: Debugging API > Leaf: Decimal Representation > Leaf: Application Domains > Leaf: Dynamic Code Generation > Leaf: Exceptions > Leaf: GC Handles > Leaf: Garbage Collection > Leaf: Embedding Mono > Leaf: Internals > Leaf: Interpreter > Leaf: Just in Time Compiler > Leaf: Marshalling > Leaf: Metadata access > Leaf: Methods > Leaf: Objects > Leaf: Profiler > Leaf: Reflection > Leaf: Strings > Leaf: Threading API > Leaf: Tracing > Leaf: JIT Counters > Leaf: Types > Leaf: Common Types > Leaf: Unsorted > Leaf: Utility Functions > Leaf: VM calls > Leaf: Security API calls > Leaf: Portable Windows Layer > > Unhandled Exception: System.DllNotFoundException: libc.so.6 > at (wrapper managed-to-native) Monodoc.RootTree:chmod (string,int) > at Monodoc.RootTree.MakeIndex () [0x00000] > at Monodoc.Driver.Main (System.String[] args) [0x00000] > > *********************************************************************************** > This email message and any attachments thereto are intended only for > use by the addressee(s) named above, and may contain legally > privileged and/or confidential information. If the reader of this > message is not the intended recipient, or the employee or agent > responsible to deliver it to the intended recipient, you are hereby > notified that any dissemination, distribution or copying of this > communication is strictly prohibited. If you have received this > communication in error, please immediately notify the > postmaster at nds.com and destroy the original message. > *********************************************************************************** > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From NGoldstein at nds.com Mon Oct 30 02:37:43 2006 From: NGoldstein at nds.com (Goldstein, Nachum (Jonathan)) Date: Mon, 30 Oct 2006 09:37:43 +0200 Subject: [Mono-list] Cannot run monodoc on windows In-Reply-To: <1162155848.3665.1.camel@melchior.magi> Message-ID: I did install from the official windows installer. After some more investigation, it seems to me that the etc/mono/config file (attached) might be incorrect for the windows install. It maps libc to libc.so.6, because libc.dll does not exist under the mono root, nor does it exist under my cygwin root. -----Original Message----- From: Jonathan Pryor [mailto:jonpryor at vt.edu] Sent: Sunday, October 29, 2006 23:04 To: Rafael Ferreira Cc: Goldstein, Nachum (Jonathan); mono-list at lists.ximian.com Subject: Re: [Mono-list] Cannot run monodoc on windows On Sun, 2006-10-29 at 10:24 -0700, Rafael Ferreira wrote: > it looks like your installation is corrupted (libc cannot be found). > Did you compile it from source or did you use of the windows > installers? I would suggest reinstalling from one of the bundled > windows releases and trying again. Take a closer look at that callstack: > > Unhandled Exception: System.DllNotFoundException: libc.so.6 > > at (wrapper managed-to-native) Monodoc.RootTree:chmod (string,int) > > at Monodoc.RootTree.MakeIndex () [0x00000] > > at Monodoc.Driver.Main (System.String[] args) [0x00000] It's failing because monodoc is trying to invoke chmod(2), which doesn't exist on windows (except through cygwin.dll, but that doesn't count). The obvious answer is that monodoc is not currently portable to Windows. I don't know how much work it would take to make it portable. - Jon *********************************************************************************** This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message. *********************************************************************************** -------------- next part -------------- A non-text attachment was scrubbed... Name: config Type: application/octet-stream Size: 732 bytes Desc: config Url : http://lists.ximian.com/pipermail/mono-list/attachments/20061030/e2370561/attachment.obj From bigone at qon.lao.net Fri Oct 27 17:38:07 2006 From: bigone at qon.lao.net (big one) Date: Fri, 27 Oct 2006 14:38:07 -0700 Subject: [Mono-list] Open Source Java, Interface Message-ID: <20061027143807.63A07508@resin01.mta.everyone.net> Sun Microsystem plan to open the source of Java core in the next 30-60 days. Is it possible to create interface between Mono and Java, similar to Qt Jambi? (between Qt and Java) _____________________________________________________________ = You want FREE web-based email ? = You want your own @qon.lao.net address?? = Then you want LaoNet's WebMail ! = Get it at http://webmail.lao.net !! From NGoldstein at nds.com Mon Oct 30 03:28:13 2006 From: NGoldstein at nds.com (Goldstein, Nachum (Jonathan)) Date: Mon, 30 Oct 2006 10:28:13 +0200 Subject: [Mono-list] Start and call into mono VM from C/C++ ? Message-ID: I would like to call into the mono VM from a C/C++ program. I searched the mono site and google, and found only a technique to call C/C++ from C#. I want to do the reverse. Something like: int main(int argc, char** argv) { } (I know I can do this with java.) Any ideas? Thanks. *********************************************************************************** This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message. *********************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061030/8927d4cc/attachment.html From omelnyk at gmail.com Mon Oct 30 04:07:31 2006 From: omelnyk at gmail.com (Olexandr Melnyk) Date: Mon, 30 Oct 2006 11:07:31 +0200 Subject: [Mono-list] Open Source Java, Interface In-Reply-To: <20061027143807.63A07508@resin01.mta.everyone.net> References: <20061027143807.63A07508@resin01.mta.everyone.net> Message-ID: 2006/10/27, big one : > > Sun Microsystem plan to open the source of Java core in the next 30-60 > days. Is it possible to create interface between Mono and Java, similar to > Qt Jambi? (between Qt and Java) > You can use some of the J2SE features with J#. ----------------------------- Olexandr Melnyk, http://omelnyk.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061030/71568e4e/attachment.html From colin at breame.net Mon Oct 30 04:09:28 2006 From: colin at breame.net (Colin JN Breame) Date: Mon, 30 Oct 2006 09:09:28 +0000 Subject: [Mono-list] Open Source Java, Interface In-Reply-To: References: <20061027143807.63A07508@resin01.mta.everyone.net> Message-ID: <200610300909.28293.colin@breame.net> There is (of course) IVKM: http://www.ikvm.net/ On Monday 30 October 2006 09:07, Olexandr Melnyk wrote: > 2006/10/27, big one : > > Sun Microsystem plan to open the source of Java core in the next 30-60 > > days. Is it possible to create interface between Mono and Java, similar > > to Qt Jambi? (between Qt and Java) > > You can use some of the J2SE features with J#. > > ----------------------------- > Olexandr Melnyk, > http://omelnyk.net/ From jonpryor at vt.edu Mon Oct 30 04:58:43 2006 From: jonpryor at vt.edu (Jonathan Pryor) Date: Mon, 30 Oct 2006 04:58:43 -0500 Subject: [Mono-list] Start and call into mono VM from C/C++ ? In-Reply-To: References: Message-ID: <1162202323.3665.5.camel@melchior.magi> On Mon, 2006-10-30 at 10:28 +0200, Goldstein, Nachum (Jonathan) wrote: > I would like to call into the mono VM from a C/C++ program. > I searched the mono site and google, and found only a technique to > call C/C++ from C#. > I want to do the reverse. Something like: > > int main(int argc, char** argv) { > > > > } You want the Mono embedding interface. See: http://www.mono-project.com/Embedding_Mono - Jon From cole-anstey at ntlworld.com Mon Oct 30 07:02:13 2006 From: cole-anstey at ntlworld.com (cole-anstey at ntlworld.com) Date: Mon, 30 Oct 2006 12:02:13 +0000 Subject: [Mono-list] gapi2-parser errors Message-ID: <20061030120213.YPMS644.aamtaout01-winn.ispmail.ntl.com@smtp.ntlworld.com> Hi, This is related to bug 79708. http://bugzilla.ximian.com/show_bug.cgi?id=79708 Does anyone have a clue why commenting out the line... export PATH=$d/../lib/gtk-sharp-2.0:path in... /usr/bin/gapi2-parser allows parsing to successfully complete with the gapi2-parser command? Uncommenting the line causes the error Unhandled Exception: System.IO.FileNotFoundException: Could not find file "/home/collie/code/temp/curlyankles-0.1.0-sharp/curlyankles/curlyankles-api.raw.pre". : /home/collie/code/temp/curlyankles-0.1.0-sharp/curlyankles/curlyankles-api.raw.pre in <0x002c2> System.IO.FileStream:.ctor (System.String name, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous, FileOptions options) in <0x00025> System.IO.FileStream:.ctor (System.String name, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) in <0x0001f> System.IO.FileStream:.ctor (System.String name, FileMode mode, FileAccess access, FileShare share) in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)in <0x000bb> System.Xml.XmlUrlResolver:GetEntity (System.Uri absoluteUri, System.String role, System.Type ofObjectToReturn) in <0x00071> System.Xml.XmlTextReader:GetStreamFromUrl (System.String url, System.String absoluteUriString) in <0x000b8> System.Xml.XmlTextReader:.ctor (System.String url, System.Xml.XmlNameTable nt) in <0x0003d> System.Xml.XmlDocument:Load (System.String filename) in <0x0165d> GtkSharp.Parsing.Parser:Main (System.String[] args) linux-xkp4:/home/collie/code/temp/curlyankles-0.1.0-sharp/sources # mono Usage is: mono [options] program [program-options] Kind Regards Cole ----------------------------------------- Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information From kobruleht2 at hot.ee Mon Oct 30 09:19:07 2006 From: kobruleht2 at hot.ee (Andrus) Date: Mon, 30 Oct 2006 16:19:07 +0200 Subject: [Mono-list] Npgsql.NpgsqlClosedState.Open An exception was thrown by the type initializer for System.Net.Dns References: <010301c6f62b$62d4fcf0$3205eb50@acer> <4e0601c6f6b9$d7b517b0$2300b3a8@Andrus> <4e3601c6f6c8$12b37240$2300b3a8@Andrus> Message-ID: <002301c6fc2e$980a39e0$2300b3a8@Andrus> >>>>> It looks like Mono can't find its machine.config. >>>>> How do you invoke mono.exe? >>>> I use shortcut icon in quick launch. Target is >>>> >>>> "C:\Program Files\Mono-1.1.17.1\bin\mono.exe" i:\mydir\myapp\myapp\bin\debug\myapp.exe >>> Assure that the "run directory" of the shortcut is >>> "C:\Program Files\Mono-1.1.17.1\bin\". >> >> Thank you. This is my "run directory" but the problem persists. >> After deleting i:\mydir\myapp\myapp\bin\debug\myapp.exe.config file my application starts. >> So it seems that something in application config file causes this error. >> Why this confing file causes error ? > > The content of the config is probably irrelevant. I guess > solely the existence of the config is triggering the error. I created config file containing In this case error does not occur. It seems that some contents in application config file causes npgsql to fail. I have no idea why mono opens application config file at all. I don't have such command in my application. Andrus. From lupus at ximian.com Mon Oct 30 09:20:02 2006 From: lupus at ximian.com (Paolo Molaro) Date: Mon, 30 Oct 2006 15:20:02 +0100 Subject: [Mono-list] C# COM server in mono? In-Reply-To: References: Message-ID: <20061030142002.GD3982@debian.org> On 10/29/06 Goldstein, Nachum (Jonathan) wrote: > Does anyone have step-by-step instructions on how to build a COM server > in mono, that can be installed on a Windows machine? The current mono only supports using COM objects, not exposing managed code as a COM server, AFAIK. Jonathan Chambers is working on what you need and he should have a patch ready shortly. lupus -- ----------------------------------------------------------------- lupus at debian.org debian/rules lupus at ximian.com Monkeys do it better From colin at breame.net Mon Oct 30 09:51:17 2006 From: colin at breame.net (Colin JN Breame) Date: Mon, 30 Oct 2006 14:51:17 +0000 Subject: [Mono-list] Static linking Message-ID: <200610301451.17258.colin@breame.net> I know this is probably pretty far fetched, but is it possible to statically link an exe to all it's (non-mono) dll dependants? What I'd like to do is run something like "make deploy" that collects all dependants so I only have to deploy a single exe file. If this doesn't exist, how would one go about writing something like this? Colin. From joncham at gmail.com Mon Oct 30 09:56:39 2006 From: joncham at gmail.com (Jon Chambers) Date: Mon, 30 Oct 2006 09:56:39 -0500 Subject: [Mono-list] C# COM server in mono? In-Reply-To: <20061030142002.GD3982@debian.org> References: <20061030142002.GD3982@debian.org> Message-ID: <17c2d80b0610300656m6a1ef5ft7fcc2f1647e2fc3a@mail.gmail.com> As lupus said, I am working in this area right now and cleaning up a patch. However, what I currently have does not support exactly what you are describing. If you run a managed app or host the mono runtime you will be able to expose managed objects to unmanaged code as a COM object. However, I currently have no plans of exposing managed objects as COM servers in a standalone manner (i.e. by calling CoCreateInstance). Basically, I consider that a luxury not a requirement since mono can be easily hosted (and it raises a few other questions like which version of mono to use, what library to expose the COM entry points in, registry entries, etc). I do think you could easily host mono and expose your own version of CoCreateInstance to do what you need, if necessary. Thanks, Jonathan On 10/30/06, Paolo Molaro wrote: > > On 10/29/06 Goldstein, Nachum (Jonathan) wrote: > > Does anyone have step-by-step instructions on how to build a COM server > > in mono, that can be installed on a Windows machine? > > The current mono only supports using COM objects, not exposing managed > code as a COM server, AFAIK. Jonathan Chambers is working on what you > need and he should have a patch ready shortly. > > lupus > > -- > ----------------------------------------------------------------- > lupus at debian.org debian/rules > lupus at ximian.com Monkeys do it better > _______________________________________________ > 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/20061030/106e8a1e/attachment.html From =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_knocte_=5D?= Mon Oct 30 09:47:27 2006 From: =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_knocte_=5D?= (=?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_knocte_=5D?=) Date: Mon, 30 Oct 2006 15:47:27 +0100 Subject: [Mono-list] Learning ASP.NET? In-Reply-To: <9a034090610281710n54ba7fb5q8e6470aeaf42ee32@mail.gmail.com> References: <9a034090610281710n54ba7fb5q8e6470aeaf42ee32@mail.gmail.com> Message-ID: <4546107F.4000303@gmail.com> Carlos Adriano Portes escribi?: > I would like to know where I could get some material for me to learn > ASP.NET, I am learning C# in order to be able to build applications > with only the compiler and a editor, so I would like to learn ASP.NET > to use with my linux as well! > I know HTML and think that ASP.NET tags are not so difficult to > understand, can someone point me a direction to follow? IMHO if you want to do web development with Mono you should try MonoRail[1]. It's a port of RoR (Ruby on Rails) to C# and works very well. In fact, many people think that the WebForms methodology of ASP.NET is flawed[2][3], and learning the MVC model of MonoRail is quite better. Regards, Andr?s [ knocte ] -- [1] http://www.castleproject.org/index.php/MonoRail [2] http://hammett.castleproject.org/?p=59 [3] http://www.ayende.com/Blog/MonoRailVsASPNet.aspx From NGoldstein at nds.com Mon Oct 30 09:58:47 2006 From: NGoldstein at nds.com (Goldstein, Nachum (Jonathan)) Date: Mon, 30 Oct 2006 16:58:47 +0200 Subject: [Mono-list] C# COM server in mono? In-Reply-To: <17c2d80b0610300656m6a1ef5ft7fcc2f1647e2fc3a@mail.gmail.com> Message-ID: By 'hosting mono' do you mean embedding it in a C/C++ COM server? ________________________________ From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Jon Chambers Sent: Monday, October 30, 2006 16:57 To: mono-list at lists.ximian.com Subject: Re: [Mono-list] C# COM server in mono? As lupus said, I am working in this area right now and cleaning up a patch. However, what I currently have does not support exactly what you are describing. If you run a managed app or host the mono runtime you will be able to expose managed objects to unmanaged code as a COM object. However, I currently have no plans of exposing managed objects as COM servers in a standalone manner (i.e. by calling CoCreateInstance). Basically, I consider that a luxury not a requirement since mono can be easily hosted (and it raises a few other questions like which version of mono to use, what library to expose the COM entry points in, registry entries, etc). I do think you could easily host mono and expose your own version of CoCreateInstance to do what you need, if necessary. Thanks, Jonathan On 10/30/06, Paolo Molaro wrote: On 10/29/06 Goldstein, Nachum (Jonathan) wrote: > Does anyone have step-by-step instructions on how to build a COM server > in mono, that can be installed on a Windows machine? The current mono only supports using COM objects, not exposing managed code as a COM server, AFAIK. Jonathan Chambers is working on what you need and he should have a patch ready shortly. lupus -- ----------------------------------------------------------------- lupus at debian.org debian/rules lupus at ximian.com Monkeys do it better _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list *********************************************************************************** This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message. *********************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061030/e8f8aee5/attachment.html From joncham at gmail.com Mon Oct 30 10:00:30 2006 From: joncham at gmail.com (Jon Chambers) Date: Mon, 30 Oct 2006 10:00:30 -0500 Subject: [Mono-list] C# COM server in mono? In-Reply-To: References: <17c2d80b0610300656m6a1ef5ft7fcc2f1647e2fc3a@mail.gmail.com> Message-ID: <17c2d80b0610300700j7e8111efia1fcbb09e7de151b@mail.gmail.com> I meant this: http://www.mono-project.com/Embedding_Mono On 10/30/06, Goldstein, Nachum (Jonathan) wrote: > > By 'hosting mono' do you mean embedding it in a C/C++ COM server? > > ------------------------------ > *From:* mono-list-bounces at lists.ximian.com [mailto: > mono-list-bounces at lists.ximian.com] *On Behalf Of *Jon Chambers > *Sent:* Monday, October 30, 2006 16:57 > *To:* mono-list at lists.ximian.com > *Subject:* Re: [Mono-list] C# COM server in mono? > > As lupus said, I am working in this area right now and cleaning up a > patch. However, what I currently have does not support exactly what you are > describing. If you run a managed app or host the mono runtime you will be > able to expose managed objects to unmanaged code as a COM object. > However, I currently have no plans of exposing managed objects as > COM servers in a standalone manner (i.e. by calling CoCreateInstance). > Basically, I consider that a luxury not a requirement since mono can be > easily hosted (and it raises a few other questions like which version of > mono to use, what library to expose the COM entry points in, registry > entries, etc). I do think you could easily host mono and expose your own > version of CoCreateInstance to do what you need, if necessary. > > Thanks, > Jonathan > > On 10/30/06, Paolo Molaro wrote: > > > > On 10/29/06 Goldstein, Nachum (Jonathan) wrote: > > > Does anyone have step-by-step instructions on how to build a COM > > server > > > in mono, that can be installed on a Windows machine? > > > > The current mono only supports using COM objects, not exposing managed > > code as a COM server, AFAIK. Jonathan Chambers is working on what you > > need and he should have a patch ready shortly. > > > > lupus > > > > -- > > ----------------------------------------------------------------- > > lupus at debian.org debian/rules > > lupus at ximian.com Monkeys do it better > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > *********************************************************************************** > This email message and any attachments thereto are intended only for use > by the addressee(s) named above, and may contain legally privileged and/or > confidential information. If the reader of this message is not the intended > recipient, or the employee or agent responsible to deliver it to the > intended recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is strictly prohibited. If you > have received this communication in error, please immediately notify the > postmaster at nds.com and destroy the original message. > > *********************************************************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061030/a48dc4f5/attachment-0001.html From scott at willeke.com Mon Oct 30 22:08:10 2006 From: scott at willeke.com (Scott Willeke) Date: Mon, 30 Oct 2006 22:08:10 -0500 Subject: [Mono-list] Static linking In-Reply-To: <200610301451.17258.colin@breame.net> References: <200610301451.17258.colin@breame.net> Message-ID: <4546BE1A.3040203@willeke.com> While not strictly static linking, I think mkbundle will do what you need: http://www.mono-project.com/Guide:Running_Mono_Applications#Bundles_.28Linux_only.29 A "real" linker would need to do the static analysis on the assemblies to remove unused code, but this some caveats in mono/.NET since reflection can be used to invoke code and cannot be detected by static analysis. I suppose mcs, Cecil (http://www.mono-project.com/Cecil) and the mkbundle source are all good things to review if you want to write a real linker. If you do plan to take on such a project please let me know, I'd be interested in lending a hand. Colin JN Breame wrote: > I know this is probably pretty far fetched, but is it possible to statically > link an exe to all it's (non-mono) dll dependants? > > What I'd like to do is run something like "make deploy" that collects all > dependants so I only have to deploy a single exe file. > > If this doesn't exist, how would one go about writing something like this? > > Colin. > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > > From michael at synthesyssolutions.com Mon Oct 30 09:54:07 2006 From: michael at synthesyssolutions.com (Michael Schurter) Date: Mon, 30 Oct 2006 08:54:07 -0600 Subject: [Mono-list] Static linking In-Reply-To: <200610301451.17258.colin@breame.net> References: <200610301451.17258.colin@breame.net> Message-ID: <4546120F.6040902@synthesyssolutions.com> Colin JN Breame wrote: > I know this is probably pretty far fetched, but is it possible to statically > link an exe to all it's (non-mono) dll dependants? Haven't used it personally, but this sounds like what you're looking for: http://www.mono-project.com/Guide:Running_Mono_Applications#Bundles_.28Linux_only.29 -- Michael Schurter From miguel at ximian.com Mon Oct 30 12:35:39 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Mon, 30 Oct 2006 12:35:39 -0500 Subject: [Mono-list] Cannot run monodoc on windows In-Reply-To: <1162155848.3665.1.camel@melchior.magi> References: <1162142674.2573.1.camel@stan.ophion.org> <1162155848.3665.1.camel@melchior.magi> Message-ID: <1162229739.8580.19.camel@erandi.dom> Hello, > It's failing because monodoc is trying to invoke chmod(2), which doesn't > exist on windows (except through cygwin.dll, but that doesn't count). > > The obvious answer is that monodoc is not currently portable to Windows. > I don't know how much work it would take to make it portable. Thanks for tracking this down, its fixed on SVN. From miguel at ximian.com Mon Oct 30 12:40:24 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Mon, 30 Oct 2006 12:40:24 -0500 Subject: [Mono-list] Building mono-basic from the sources In-Reply-To: <1162118050.29366.7.camel@T7.Linux> References: <1162118050.29366.7.camel@T7.Linux> Message-ID: <1162230024.8580.24.camel@erandi.dom> Hello, > I've downloaded the 1.1.18.zip file for mono-basic and have looked > inside the archive and cannot find any logical way to build mono-basic > under Linux. Today it is only possible to build this on Windows, as the vbnc compiler is not self-hosting on Linux (missing features or bugs in Mono). Miguel. From glen.ford at spinvox.com Mon Oct 30 14:24:09 2006 From: glen.ford at spinvox.com (Glen Ford) Date: Mon, 30 Oct 2006 19:24:09 +0000 Subject: [Mono-list] fedora yum repository In-Reply-To: <45451E8C.8000904@spinvox.com> References: <45451E8C.8000904@spinvox.com> Message-ID: <45465159.8010609@spinvox.com> FYI - changing baseurl to the following worked - thanks to David Ford for the info :) [mono] name=Mono for fedora-5-i386 (latest) baseurl=http://go-mono.com/download-stable/fedora-5-i386/ enabled=1 gpgcheck=0 Glen Ford wrote: > > Does anyone know if the yum repository for fedora-5 moved (I last > updated about 4/5 weeks ago, but now appears broken)? > > http://go-mono.com/download-latest/fedora-5-i386/repodata/repomd.xml: > [Errno 14] HTTP Error 404: Date: Sun, 29 Oct 2006 21:32:26 GMT > Server: Apache/2 > Content-Length: 312 > Connection: close > Content-Type: text/html; charset=iso-8859-1 > Trying other mirror. > Cannot open/read repomd.xml file for repository: mono > failure: repodata/repomd.xml from mono: [Errno 256] No more mirrors to > try. > Error: failure: repodata/repomd.xml from mono: [Errno 256] No more > mirrors to try. > > ------------------------------------------------------------------------ > > _______________________________________________ > 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/20061030/2ed2ecb2/attachment.html From glen.ford at spinvox.com Mon Oct 30 16:33:43 2006 From: glen.ford at spinvox.com (Glen Ford) Date: Mon, 30 Oct 2006 21:33:43 +0000 Subject: [Mono-list] Soap Response Interrupted by Target of Invocation Exception Message-ID: <45466FB7.3060906@spinvox.com> *Has anyone else found the following in a SOAP Service, in returning an array of objects in a SOAP Response I can see that output is being interrupted by 'Target of Invocation Error' As below ...* Date: Fri, 20 Oct 2006 14:38:21 GMT Server: Apache/2.0.54 (Linux/SUSE) Content-Length: 1413 Cache-Control: private Connection: close Content-Type: text/xml; charset=utf-8 soap:ServerException has been thrown by the target of an invocation. * **Using tracing on XSP, I can see the following ...* mono --trace /usr/lib/xsp/1.0/xsp.exe . . . . . . . . . . . . . . . . . . . . . . . . . . . LEAVE: System.Web.HttpResponseStream:AppendBucket (System.Web.HttpResponseStream/Bucket) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LEAVE: System.Web.HttpResponseStream:AppendBuffer (byte[],int,int) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LEAVE: System.Web.HttpResponseStream:Write (byte[],int,int) EXCEPTION handling: ArgumentNullException EXCEPTION handling: TargetInvocationException EXCEPTION handling: TargetInvocationException EXCEPTION handling: TargetInvocationException *Once this happens once it happens on a method it then happens every time that method is called. I have yet to determine why this is happening, and wondered if anyone else has seen this before? * Regards, Glen* * -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061030/246cea71/attachment.html From monkey at jpobst.com Mon Oct 30 21:08:59 2006 From: monkey at jpobst.com (Jonathan Pobst) Date: Mon, 30 Oct 2006 20:08:59 -0600 Subject: [Mono-list] Helping out Windows Developers Message-ID: <4546B03B.5000602@jpobst.com> [MonoTODO("Help out Windows developers")] I was fortunate enough to speak with several Windows developers at the Mono Summit about their experiences using Mono coming from a Windows background, and what needs to be done to make it better. Covering the 80/20 case, I think the following assumptions can be made: - Developers are primarily concerned with their apps running on Windows, but would like their apps to run on Mono/Linux if there is little to no additional development work required. - Windows developers are not interested in switching to Linux, or SharpDevelop, or MonoDevelop. They want to program in Visual Studio on Windows, that is, using the tools they've used for years and are most productive in. - Windows developers are not interested in learning how to use the various Linux tools like svn, make, yast, apt-get, rpm's, etc. - Windows developers are not interested in Gtk#. Since the primary concern is their apps on Windows, Gtk# is not useful. (Gaim on Windows sticks out pretty bad.) Obviously, there are exceptions to the above, but for the 80% case, it should work. So, things that can be done to help Windows developers use Mono: - Paco's VS plugin I had never really looked at this, as the name (VSPrj2Make) implies it isn't useful to the 80% case (no interest in make). I don't really have any use for most of the features, like making make files or importing/exporting MonoDevelop solutions, but there was one feature that I saw that is an absolute must have: the "Run In Mono" toolbar. The Run in Mono button removes the need to find the mono command line, and call mono on wherever your assembly happens to be. I think this feature absolutely needs to be ported to VS2005, and renamed something more like "Mono Development Plugin" or something. The other features can come along for the ride if they are ready, but I need this feature in VS2005 today. :) Great work on coming up with that Paco. - Mono Not Supported / Implemented rules Another great idea I heard was creating something to analyze assemblies for things that are not supported in Mono yet. Most likely this would be a part of Gendarme (if it runs on Windows?). Some portability rules would be: - Calling methods that do not exist in Mono (useful for seeing what 2.0 features you use that mono does not have yet) - Calling methods that are marked with [MonoTODO] - Calling methods that throw a NotSupportedException Ideally, this would exist in the above VS plugin. At the very least, it should produce a report listing the errors. More advanced, and if possible, some sort of integration to take you directly to places in your source code, or mark them as warnings on compile. - Mono VMWare Image First off, thanks to Wade for this. This is so much easier than trying to install Linux and then Mono. The issue is that it is always out of date. The most immediate problem is that there isn't an image for 1.1.18 yet. However, even after that, the problem is that Mono (especially winforms) moves so much faster than Mono releases. I tried to build mono from SVN inside the VMWare image without success. At the meeting, Wade informed me that all the things needed to do that had been removed to make the image smaller. Since the answer to most issues is "Try SVN", we need a simple way to update mono in the VMWare image. This can be: - Applying a nightly build to the image. - Downloading and compiling SVN. Either way, this just needs to be a button on the image desktop that does all the work for you. That is, click the button titled "Update Mono to latest version", wait for the command window to stop scrolling and say "It's done, press Enter, and have fun". - Run in Mono on Linux (or SLED) This is something that Miguel discussed before the event. The basic idea would be an option on the VS plugin called "Run in Mono on Linux" which would start the VM image (if not already running), contact a daemon or something in the image, and start the current VS project inside the image. This way Windows developers can test their app on Linux with one click, just like they do to test it on Windows. Obviously, the technical logistics of this are probably a nightmare, but it would certainly be very helpful if it could be done. I think one of the most important things I came away from the meeting is Miguel's sincere commitment to courting Windows developers for Mono. However, I think there are roughly zero (?) Windows developers on the Novell team, so they don't really know the way Windows developers work and how they expect things to work. They were very actively seeking feedback from Windows developers. The above is a start. Please be sure to add yours! - jpobst From sebastien.pouliot at gmail.com Mon Oct 30 23:12:13 2006 From: sebastien.pouliot at gmail.com (Sebastien Pouliot) Date: Mon, 30 Oct 2006 23:12:13 -0500 Subject: [Mono-list] Helping out Windows Developers In-Reply-To: <4546B03B.5000602@jpobst.com> References: <4546B03B.5000602@jpobst.com> Message-ID: <1162267933.8204.54.camel@poupou.home> Hey, Nice resume. On Mon, 2006-10-30 at 20:08 -0600, Jonathan Pobst wrote: ... > - Mono Not Supported / Implemented rules > > Another great idea I heard was creating something to analyze assemblies > for things that are not supported in Mono yet. Most likely this would > be a part of Gendarme (if it runs on Windows?). You should take the time to check out Gendarme from SVN. It's worth it and, by looking at the file names, would quickly answer your question. The .sln and .csproj files in Gendarme SVN (and source tarball) aren't fakes > Some portability rules would be: > - Calling methods that do not exist in Mono (useful for seeing what > 2.0 features you use that mono does not have yet) > - Calling methods that are marked with [MonoTODO] > - Calling methods that throw a NotSupportedException This is (well should be) all the same rule. We need to extract those information in a file (e.g. once by Mono release) which would be easy using (again) Cecil. Then have a (Gendarme) rule to check all (e.g. direct, virtual, interfaces...) calls made by an assembly against the file. Obviously you can run Gendarme (or a custom runner) with a single rule on a set of assemblies (e.g. all assemblies in a solution) but it may be more complex to implement for web projects (e.g. aspx pages). > Ideally, this would exist in the above VS plugin. At the very least, it > should produce a report listing the errors. This is exactly what Gendarme does (see my blog in my signature for a, albeit old, sample). It's also one of the reason to re-use Gendarme for this task. > More advanced, and if > possible, some sort of integration to take you directly to places in > your source code, or mark them as warnings on compile. This has been discussed in the mono-devel mailing list, look for subject with "Gendarme" inside, as this is a new feature (mdb/pdb support) being implemented in Cecil. ... > I think one of the most important things I came away from the meeting is > Miguel's sincere commitment to courting Windows developers for Mono. > However, I think there are roughly zero (?) Windows developers on the > Novell team, Thanks. I (and a few others) will take that as a compliment ;-) Not that I ever considered myself a "insert any registered trademark" developer but I admit I still have the 2 *pre-release* volumes of "Microsoft Win32 Application Programming Interfaces". OTOH I don't recall all the OS names I've written software for... (embedded systems are great for 404) Anyway it does prove that Windows developers can learn new tricks too ;-) > so they don't really know the way Windows developers work > and how they expect things to work. Keeping with Pareto's rule, I guess this is part your 20% wrong, 80% of the time (which is, obviously, an abuse of language ;-) Knowing the way, or expectations, is one thing but making it a "perfect fit" is quite another. This gets even less trivial with limited man-power and other priorities in Mono (and that's not limited to Novell!). I think we should be looking at an intermediate (do I dare say "good enough" ?) step(s) - which are much less obvious that a "perfect" solution would be. > They were very actively seeking > feedback from Windows developers. The above is a start. If you're keeping a list (which I guess should be in the wiki) then please add the "#@%^@$# cygwin build dependency" to build Mono and execute it's test suite. > Please be sure to add yours! Yes, please do! -- Sebastien Pouliot Blog: http://pages.infinit.net/ctech/ From michael at synthesyssolutions.com Tue Oct 31 00:42:30 2006 From: michael at synthesyssolutions.com (Michael Schurter) Date: Mon, 30 Oct 2006 23:42:30 -0600 Subject: [Mono-list] SharpOS.org Message-ID: <4546E246.50902@synthesyssolutions.com> Since the idea of a managed operating system has been discussed at length on the mono-devel-list, I went ahead and registered sharpos.org! I encourage anyone interested in developing a managed operating system to visit http://sharpos.org Please start editing the wiki and sign up for the mailing list[1] to continue this discussion. That way we can stop flooding Mono lists with OT posts! (Someone is welcome to register a SourceForge.net project as well. We can always move to SF.net when that project becomes available or split services between the two sites.) [1] http://lists.sharpos.org/listinfo.cgi/sharpos-devel-list-sharpos.org -- Michael Schurter From massi at ximian.com Tue Oct 31 01:41:54 2006 From: massi at ximian.com (Massimiliano Mantione) Date: Tue, 31 Oct 2006 07:41:54 +0100 Subject: [Mono-list] Static linking In-Reply-To: <200610301451.17258.colin@breame.net> References: <200610301451.17258.colin@breame.net> Message-ID: <1162276914.4137.10.camel@matrix.ximian.com> On Mon, 2006-10-30 at 14:51 +0000, Colin JN Breame wrote: > I know this is probably pretty far fetched, but is it possible to statically > link an exe to all it's (non-mono) dll dependants? > > What I'd like to do is run something like "make deploy" that collects all > dependants so I only have to deploy a single exe file. > > If this doesn't exist, how would one go about writing something like this? JB Evain wrote such a linker as a Google SoC 2006 project. Ciao, Massi From alessandro-bottoni at libero.it Tue Oct 31 02:46:05 2006 From: alessandro-bottoni at libero.it (Alessandro Bottoni) Date: Tue, 31 Oct 2006 08:46:05 +0100 Subject: [Mono-list] SharpOS.org In-Reply-To: <4546E246.50902@synthesyssolutions.com> References: <4546E246.50902@synthesyssolutions.com> Message-ID: <4546FF3D.7000400@libero.it> Michael Schurter ha scritto: > Since the idea of a managed operating system has been discussed at > length on the mono-devel-list, I went ahead and registered sharpos.org! > > I encourage anyone interested in developing a managed operating system > to visit http://sharpos.org > > Please start editing the wiki and sign up for the mailing list[1] to > continue this discussion. That way we can stop flooding Mono lists with > OT posts! Wonderful! I'm going to advertise this idea around with some article in english and italian that I'll try to publish on all of the magazines I have contact with, that is: http://punto-informatico.it/ , http://www.oceanidigitali.it/ and GNU Linux Magazine (paper magazine, in italian). I hope this will help us to collect developers, testers and technical writers for the project. CU ------------------------ Alessandro Bottoni From =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_knocte_=5D?= Tue Oct 31 03:57:32 2006 From: =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_knocte_=5D?= (=?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_knocte_=5D?=) Date: Tue, 31 Oct 2006 09:57:32 +0100 Subject: [Mono-list] SharpOS.org In-Reply-To: <4546E246.50902@synthesyssolutions.com> References: <4546E246.50902@synthesyssolutions.com> Message-ID: <45470FFC.9050906@gmail.com> Michael Schurter escribi?: > Since the idea of a managed operating system has been discussed at > length on the mono-devel-list, I went ahead and registered sharpos.org! > > I encourage anyone interested in developing a managed operating system > to visit http://sharpos.org > > Please start editing the wiki and sign up for the mailing list[1] to > continue this discussion. That way we can stop flooding Mono lists with > OT posts! > > (Someone is welcome to register a SourceForge.net project as well. We > can always move to SF.net when that project becomes available or split > services between the two sites.) > > [1] http://lists.sharpos.org/listinfo.cgi/sharpos-devel-list-sharpos.org > This idea is fantastic. I would propose the following: - Use NovellForge instead of SourceForge.net (the UI is much simpler and fast, and it supports bugzilla, much wonderful than the issue tracker of SF.net). - Create a gmane group that hosts the list (I can do this, just approve the idea please). Regards, Andr?s [ knocte ] -- From antonello at deveel.com Tue Oct 31 04:17:39 2006 From: antonello at deveel.com (Antonello Provenzano) Date: Tue, 31 Oct 2006 10:17:39 +0100 Subject: [Mono-list] SharpOS.org In-Reply-To: <45470FFC.9050906@gmail.com> References: <4546E246.50902@synthesyssolutions.com> <45470FFC.9050906@gmail.com> Message-ID: Andr?s, > - Use NovellForge instead of SourceForge.net (the UI is much simpler and > fast, and it supports bugzilla, much wonderful than the issue tracker of > SF.net). I used to have couple of projects on NovellForge: I cannot agree with you about the fact it is better than SourceForge for various reasons, in fact I switched all my project to the second one after a while. Having a faster or simpler UI than SF.net (and I don't agree on both of the concepts) is not something you have to consider when managing a project aiming to be important and accessed by many developers or simple users at the same time. You need a stable structure you can lean on in critical moments and you also need visibility among the development community: SourceForge.net is continuously monitored by millions of developers each day, some of them searching for projects to join. I could continue for hours debating why SourceForge is better than NovellForge, but I believe it's clear to many readers of this mailing list, so I don't want to go on this topic. Cheers Antonello On 10/31/06, "Andr?s G. Aragoneses [ knocte ]" wrote: > Michael Schurter escribi?: > > Since the idea of a managed operating system has been discussed at > > length on the mono-devel-list, I went ahead and registered sharpos.org! > > > > I encourage anyone interested in developing a managed operating system > > to visit http://sharpos.org > > > > Please start editing the wiki and sign up for the mailing list[1] to > > continue this discussion. That way we can stop flooding Mono lists with > > OT posts! > > > > (Someone is welcome to register a SourceForge.net project as well. We > > can always move to SF.net when that project becomes available or split > > services between the two sites.) > > > > [1] http://lists.sharpos.org/listinfo.cgi/sharpos-devel-list-sharpos.org > > > > This idea is fantastic. > > I would propose the following: > > - Use NovellForge instead of SourceForge.net (the UI is much simpler and > fast, and it supports bugzilla, much wonderful than the issue tracker of > SF.net). > - Create a gmane group that hosts the list (I can do this, just approve > the idea please). > > Regards, > > Andr?s [ knocte ] > > -- > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From mysql.jorge at decimal.pt Tue Oct 31 05:12:36 2006 From: mysql.jorge at decimal.pt (Jorge Bastos) Date: Tue, 31 Oct 2006 10:12:36 -0000 Subject: [Mono-list] Free report Message-ID: <015401c6fcd5$17fda410$1a0110ac@hercules.decimalint.pt> Hi people, I'm looking to a free and nice report writer for asp.net 2.0, i saw this a few months ago but i don't remember. Anyone? Thanks, Jorge -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061031/eb462e47/attachment.html From kobruleht2 at hot.ee Tue Oct 31 06:04:31 2006 From: kobruleht2 at hot.ee (Andrus) Date: Tue, 31 Oct 2006 13:04:31 +0200 Subject: [Mono-list] Helping out Windows Developers References: <4546B03B.5000602@jpobst.com> Message-ID: <01b601c6fcdc$69770410$2300b3a8@Andrus> > The Run in Mono button removes the need to find the mono command line, > and call mono on wherever your assembly happens to be. I think this > feature absolutely needs to be ported to VS2005, and renamed something > more like "Mono Development Plugin" or something. The other features > can come along for the ride if they are ready, but I need this feature > in VS2005 today. :) I created a buttons in system tray having "C:\Program Files\Mono-1.1.17.1\bin\mono.exe" c:\mydir\bin\debug\myapp.exe After pressing F6 in VCS I can press to this button to test my application in mono. This is even easier than selecting something from menu. > Either way, this just needs to be a button on the image desktop that > does all the work for you. That is, click the button titled "Update > Mono to latest version", wait for the command window to stop scrolling > and say "It's done, press Enter, and have fun". I don't see the need for SVN for most things since there is monocharge archieves compiled nightly. I'd like to see windows .bat file in monocharge archieves which refreshes mono automatically, by running something like for %%i in (*.dll) do mono ..\1.0\gacutil.exe /i %%i /f /package 2.0 Currently they contain only .sh skript. Andrus. From kobruleht2 at hot.ee Tue Oct 31 06:07:54 2006 From: kobruleht2 at hot.ee (Andrus) Date: Tue, 31 Oct 2006 13:07:54 +0200 Subject: [Mono-list] Free report References: <015401c6fcd5$17fda410$1a0110ac@hercules.decimalint.pt> Message-ID: <020a01c6fcdd$22edce60$2300b3a8@Andrus> http://www.fyireporting.com Andrus. ----- Original Message ----- I'm looking to a free and nice report writer for asp.net 2.0, i saw this a few months ago but i don't remember. Anyone? From xiii29 at free.fr Tue Oct 31 08:46:06 2006 From: xiii29 at free.fr (xiii29 at free.fr) Date: Tue, 31 Oct 2006 14:46:06 +0100 Subject: [Mono-list] Launching a Mono Apps on Ms.Net Message-ID: <1162302366.4547539e7cd7c@imp8-g19.free.fr> Hi, I've developed a SWF Apps under Mono and i've tryed it on windows. Everythings looks nearly fine excepts some little stuff. One off them is annoying ... When I launch my apps under Mono/Linux, no console windows ... When I launch my apps under .Net/Windows, lauch a console then the windows ... Any idea ? Ps : is there a way to deisgn SWF on Mono/Linux. I've done directly by hand ... How to say ... :-) ! From robertj at gmx.net Tue Oct 31 09:00:31 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 31 Oct 2006 15:00:31 +0100 Subject: [Mono-list] Launching a Mono Apps on Ms.Net In-Reply-To: <1162302366.4547539e7cd7c@imp8-g19.free.fr> References: <1162302366.4547539e7cd7c@imp8-g19.free.fr> Message-ID: xiii29 at free.fr wrote: > > Hi, > > I've developed a SWF Apps under Mono and i've tryed it on windows. Everythings > looks nearly fine excepts some little stuff. > > One off them is annoying ... > When I launch my apps under Mono/Linux, no console windows ... > When I launch my apps under .Net/Windows, lauch a console then the windows ... Use the appropriate target: mcs /target:winexe ... Robert From abe.gillespie at gmail.com Tue Oct 31 09:03:41 2006 From: abe.gillespie at gmail.com (Abe Gillespie) Date: Tue, 31 Oct 2006 09:03:41 -0500 Subject: [Mono-list] SharpOS.org In-Reply-To: References: <4546E246.50902@synthesyssolutions.com> <45470FFC.9050906@gmail.com> Message-ID: No one wants to host at Google? -Abe On 10/31/06, Antonello Provenzano wrote: > Andr?s, > > > > - Use NovellForge instead of SourceForge.net (the UI is much simpler and > > fast, and it supports bugzilla, much wonderful than the issue tracker of > > SF.net). > > I used to have couple of projects on NovellForge: I cannot agree with > you about the fact it is better than SourceForge for various reasons, > in fact I switched all my project to the second one after a while. > Having a faster or simpler UI than SF.net (and I don't agree on both > of the concepts) is not something you have to consider when managing a > project aiming to be important and accessed by many developers or > simple users at the same time. > You need a stable structure you can lean on in critical moments and > you also need visibility among the development community: > SourceForge.net is continuously monitored by millions of developers > each day, some of them searching for projects to join. > > I could continue for hours debating why SourceForge is better than > NovellForge, but I believe it's clear to many readers of this mailing > list, so I don't want to go on this topic. > > Cheers > Antonello > > On 10/31/06, "Andr?s G. Aragoneses [ knocte ]" wrote: > > Michael Schurter escribi?: > > > Since the idea of a managed operating system has been discussed at > > > length on the mono-devel-list, I went ahead and registered sharpos.org! > > > > > > I encourage anyone interested in developing a managed operating system > > > to visit http://sharpos.org > > > > > > Please start editing the wiki and sign up for the mailing list[1] to > > > continue this discussion. That way we can stop flooding Mono lists with > > > OT posts! > > > > > > (Someone is welcome to register a SourceForge.net project as well. We > > > can always move to SF.net when that project becomes available or split > > > services between the two sites.) > > > > > > [1] http://lists.sharpos.org/listinfo.cgi/sharpos-devel-list-sharpos.org > > > > > > > This idea is fantastic. > > > > I would propose the following: > > > > - Use NovellForge instead of SourceForge.net (the UI is much simpler and > > fast, and it supports bugzilla, much wonderful than the issue tracker of > > SF.net). > > - Create a gmane group that hosts the list (I can do this, just approve > > the idea please). > > > > Regards, > > > > Andr?s [ knocte ] > > > > -- > > > > > > _______________________________________________ > > 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 sebastien.pouliot at gmail.com Tue Oct 31 09:14:57 2006 From: sebastien.pouliot at gmail.com (Sebastien Pouliot) Date: Tue, 31 Oct 2006 09:14:57 -0500 Subject: [Mono-list] Launching a Mono Apps on Ms.Net In-Reply-To: References: <1162302366.4547539e7cd7c@imp8-g19.free.fr> Message-ID: <1162304098.8204.62.camel@poupou.home> On Tue, 2006-10-31 at 15:00 +0100, Robert Jordan wrote: > xiii29 at free.fr wrote: > > > > Hi, > > > > I've developed a SWF Apps under Mono and i've tryed it on windows. Everythings > > looks nearly fine excepts some little stuff. > > > > One off them is annoying ... > > When I launch my apps under Mono/Linux, no console windows ... > > When I launch my apps under .Net/Windows, lauch a console then the windows ... > > Use the appropriate target: > > mcs /target:winexe ... It's a common question and a great opportunity for someone to contribute a (very simple) rule for Gendarme ;-) E.g. Any .EXE that reference System.Windows.Forms.dll should have a winexe target (or we issue a warning). -- Sebastien Pouliot Blog: http://pages.infinit.net/ctech/ From kobruleht2 at hot.ee Tue Oct 31 09:58:00 2006 From: kobruleht2 at hot.ee (Andrus) Date: Tue, 31 Oct 2006 16:58:00 +0200 Subject: [Mono-list] Launching a Mono Apps on Ms.Net References: <1162302366.4547539e7cd7c@imp8-g19.free.fr> <1162304098.8204.62.camel@poupou.home> Message-ID: <045801c6fcfd$01a65040$2300b3a8@Andrus> >> Use the appropriate target: >> >> mcs /target:winexe ... > > It's a common question and a great opportunity for someone to contribute > a (very simple) rule for Gendarme ;-) > > E.g. Any .EXE that reference System.Windows.Forms.dll should have a > winexe target (or we issue a warning). mono mywinexetargetapplication.exe shows flashing console window when issued from icon in Windows. How to avoid this flashing window ? Andrus. From pedro at sobota.net Tue Oct 31 09:53:24 2006 From: pedro at sobota.net (Pedro Sobota) Date: Tue, 31 Oct 2006 11:53:24 -0300 Subject: [Mono-list] Types not found on 1.1.18 Message-ID: <45476364.9050509@sobota.net> A couple months ago I stripped down a few pieces of my WinForms 2.0 application until it compiled on gmcs 1.1.13. The blocking issues where all 2.0 stuff, so now I got 1.1.18 and tried to recompile to see what I could re-enable to bring the code closer to the original project. (I really want to show the app working on Linux to a few people in the firm.) I found it strange that now in many places the compiler couldn't find the types 'DataRow', 'DateTime', 'DBNull', since the namespaces are imported and System.dll and System.Data.dll are referenced. Did somebody else experience this? Pedro From miguel at ximian.com Tue Oct 31 10:10:13 2006 From: miguel at ximian.com (Miguel de Icaza) Date: Tue, 31 Oct 2006 10:10:13 -0500 Subject: [Mono-list] SharpOS.org In-Reply-To: References: <4546E246.50902@synthesyssolutions.com> <45470FFC.9050906@gmail.com> Message-ID: <1162307413.25818.69.camel@erandi.dom> On Tue, 2006-10-31 at 09:03 -0500, Abe Gillespie wrote: > No one wants to host at Google? That would be my recommendation. From michael at synthesyssolutions.com Tue Oct 31 10:15:26 2006 From: michael at synthesyssolutions.com (Michael Schurter) Date: Tue, 31 Oct 2006 09:15:26 -0600 Subject: [Mono-list] SharpOS.org In-Reply-To: <45470FFC.9050906@gmail.com> References: <4546E246.50902@synthesyssolutions.com> <45470FFC.9050906@gmail.com> Message-ID: <4547688E.3010806@synthesyssolutions.com> Andr?s G. Aragoneses [ knocte ] wrote: > Michael Schurter escribi?: >> Since the idea of a managed operating system has been discussed at >> length on the mono-devel-list, I went ahead and registered sharpos.org! >> >> I encourage anyone interested in developing a managed operating system >> to visit http://sharpos.org >> >> Please start editing the wiki and sign up for the mailing list[1] to >> continue this discussion. That way we can stop flooding Mono lists with >> OT posts! >> >> (Someone is welcome to register a SourceForge.net project as well. We >> can always move to SF.net when that project becomes available or split >> services between the two sites.) >> >> [1] http://lists.sharpos.org/listinfo.cgi/sharpos-devel-list-sharpos.org >> > > This idea is fantastic. > > I would propose the following: > > - Use NovellForge instead of SourceForge.net (the UI is much simpler and > fast, and it supports bugzilla, much wonderful than the issue tracker of > SF.net). Just get it setup and we'll wear the merits of each service (including my hosting) when they're available. I can also setup Bugzilla and SVN on my host, so we don't need to worry about one of these service right away. > - Create a gmane group that hosts the list (I can do this, just approve > the idea please). Please do. Please continue discussion on the new mailing list: sharpos-devel-list at lists.sharpos.org Sign up: http://lists.sharpos.org/listinfo.cgi/sharpos-devel-list-sharpos.org Michael Schurter From robertj at gmx.net Tue Oct 31 10:23:51 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 31 Oct 2006 16:23:51 +0100 Subject: [Mono-list] Launching a Mono Apps on Ms.Net In-Reply-To: <045801c6fcfd$01a65040$2300b3a8@Andrus> References: <1162302366.4547539e7cd7c@imp8-g19.free.fr> <1162304098.8204.62.camel@poupou.home> <045801c6fcfd$01a65040$2300b3a8@Andrus> Message-ID: Andrus wrote: >>> Use the appropriate target: >>> >>> mcs /target:winexe ... >> It's a common question and a great opportunity for someone to contribute >> a (very simple) rule for Gendarme ;-) >> >> E.g. Any .EXE that reference System.Windows.Forms.dll should have a >> winexe target (or we issue a warning). > > mono mywinexetargetapplication.exe > > shows flashing console window when issued from icon in Windows. > How to avoid this flashing window ? The initial console cannot be suppressed. It it shown because mono.exe is a native Win32 console application. This could be fixed by providing monow.exe, compiled for the native Win32 winexec target. Robert From corbinhoenes at gmail.com Tue Oct 31 10:57:59 2006 From: corbinhoenes at gmail.com (Corbin Hoenes) Date: Tue, 31 Oct 2006 08:57:59 -0700 Subject: [Mono-list] libgaim Message-ID: <7d6368d00610310757v1fa81cb4l693194e98212b9e7@mail.gmail.com> Has anyone see C# bindings for libgaim? If there aren't bindings would libgaim be the preferred route to provide IM network services to .NET applications (all networks or at least the most important types xmpp / oscar / msn / yahoo). -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061031/54e45138/attachment.html From kobruleht2 at hot.ee Tue Oct 31 11:41:19 2006 From: kobruleht2 at hot.ee (Andrus) Date: Tue, 31 Oct 2006 18:41:19 +0200 Subject: [Mono-list] Launching a Mono Apps on Ms.Net References: <1162302366.4547539e7cd7c@imp8-g19.free.fr> <1162304098.8204.62.camel@poupou.home><045801c6fcfd$01a65040$2300b3a8@Andrus> Message-ID: <05e101c6fd0b$e2769e50$2300b3a8@Andrus> > The initial console cannot be suppressed. It it shown because > mono.exe is a native Win32 console application. > > This could be fixed by providing monow.exe, compiled > for the native Win32 winexec target. Can you include such exe with mono windows distribution like activestate python distro includes pythonw.exe ? From omelnyk at gmail.com Tue Oct 31 13:05:20 2006 From: omelnyk at gmail.com (Olexandr Melnyk) Date: Tue, 31 Oct 2006 20:05:20 +0200 Subject: [Mono-list] libgaim In-Reply-To: <7d6368d00610310757v1fa81cb4l693194e98212b9e7@mail.gmail.com> References: <7d6368d00610310757v1fa81cb4l693194e98212b9e7@mail.gmail.com> Message-ID: 2006/10/31, Corbin Hoenes : > > Has anyone see C# bindings for libgaim? If there aren't bindings would > libgaim be the preferred route to provide IM network services to .NET > applications (all networks or at least the most important types xmpp / oscar > / msn / yahoo). I don't know of any other libraries providing you with a variety of protocols. But as an alternative, you can consider using Jabber/XMPP library + transports. Regarding the managed libraries, AFAIK Galaxium is using one, but that's only for MSN. ------------------------------------------- Olexandr "Kynlem" Melnyk, http://omelnyk.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061031/02abdda6/attachment.html From listmail at sharpedit.net Tue Oct 31 13:37:22 2006 From: listmail at sharpedit.net (listmail at sharpedit.net) Date: Tue, 31 Oct 2006 19:37:22 +0100 Subject: [Mono-list] libgaim In-Reply-To: References: <7d6368d00610310757v1fa81cb4l693194e98212b9e7@mail.gmail.com> Message-ID: <454797E2.2040000@sharpedit.net> An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061031/4a0b169b/attachment.html From robertj at gmx.net Tue Oct 31 17:21:07 2006 From: robertj at gmx.net (Robert Jordan) Date: Tue, 31 Oct 2006 23:21:07 +0100 Subject: [Mono-list] Launching a Mono Apps on Ms.Net In-Reply-To: <05e101c6fd0b$e2769e50$2300b3a8@Andrus> References: <1162302366.4547539e7cd7c@imp8-g19.free.fr> <1162304098.8204.62.camel@poupou.home><045801c6fcfd$01a65040$2300b3a8@Andrus> <05e101c6fd0b$e2769e50$2300b3a8@Andrus> Message-ID: Andrus wrote: >> The initial console cannot be suppressed. It it shown because >> mono.exe is a native Win32 console application. >> >> This could be fixed by providing monow.exe, compiled >> for the native Win32 winexec target. > > Can you include such exe with mono windows distribution like activestate python distro includes > pythonw.exe ? http://bugzilla.ximian.com/show_bug.cgi?id=79797 Robert From scott at willeke.com Tue Oct 31 17:49:37 2006 From: scott at willeke.com (Scott Willeke) Date: Tue, 31 Oct 2006 17:49:37 -0500 Subject: [Mono-list] Static linking In-Reply-To: <1162276914.4137.10.camel@matrix.ximian.com> References: <200610301451.17258.colin@breame.net> <1162276914.4137.10.camel@matrix.ximian.com> Message-ID: <4547D301.5060502@willeke.com> I don't know how I missed this: http://evain.net/blog/articles/2006/08/21/link-to-link Thanks Massi and JB Evain. Massimiliano Mantione wrote: > On Mon, 2006-10-30 at 14:51 +0000, Colin JN Breame wrote: > >> I know this is probably pretty far fetched, but is it possible to statically >> link an exe to all it's (non-mono) dll dependants? >> >> What I'd like to do is run something like "make deploy" that collects all >> dependants so I only have to deploy a single exe file. >> >> If this doesn't exist, how would one go about writing something like this? >> > > JB Evain wrote such a linker as a Google SoC 2006 project. > > Ciao, > Massi > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > >