From m.schloz at gmx.net Mon Sep 1 15:45:31 2008 From: m.schloz at gmx.net (muhQ) Date: Mon, 1 Sep 2008 12:45:31 -0700 (PDT) Subject: [Mono-list] Portable C# application Message-ID: <19256350.post@talk.nabble.com> Hey there, I'm completely new to Mono and maybe this is not the correct "framework" for what I am trying to develope but hopefully I can find that out with your help :confused: Problem: I want to create a app that visualizes a control system. There is a webserver which provides the data to show and the possibility to change the value / state of a actuator. The biggest prob is that this application should be executable on windows / windows ce / windows mobile /linux / linux embedded / mac / blackberries (would be nice, not mandatory) / iphones (would be nice, not mandatory) Is that possible with mono and maybe gtk+ (#)? or is there a better way to do this with mono? Thanks in advance, because I'm a bit confused on how I could implement that. greetz matz -- View this message in context: http://www.nabble.com/Portable-C--application-tp19256350p19256350.html Sent from the Mono - General mailing list archive at Nabble.com. From alfdev at libero.it Mon Sep 1 16:02:45 2008 From: alfdev at libero.it (alfdev) Date: Mon, 1 Sep 2008 13:02:45 -0700 (PDT) Subject: [Mono-list] Error compiling Moonlight 0.7 In-Reply-To: <1220201365.15694.71.camel@limestone> References: <19241422.post@talk.nabble.com> <1220201365.15694.71.camel@limestone> Message-ID: <19259963.post@talk.nabble.com> Geoff Norton-2 wrote: > > alfdev, > > Please file a bug, attaching your distribution, archtecture, full > config.log and the log of the entire build. > > Thanks > > -g > > On Sun, 2008-08-31 at 04:32 -0700, alfdev wrote: > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > Where? Here? -- View this message in context: http://www.nabble.com/Error-compiling-Moonlight-0.7-tp19241422p19259963.html Sent from the Mono - General mailing list archive at Nabble.com. From gnorton at novell.com Mon Sep 1 16:11:56 2008 From: gnorton at novell.com (Geoff Norton) Date: Mon, 01 Sep 2008 16:11:56 -0400 Subject: [Mono-list] Error compiling Moonlight 0.7 In-Reply-To: <19259963.post@talk.nabble.com> References: <19241422.post@talk.nabble.com> <1220201365.15694.71.camel@limestone> <19259963.post@talk.nabble.com> Message-ID: <1220299916.15694.77.camel@limestone> bugzilla.novell.com On Mon, 2008-09-01 at 13:02 -0700, alfdev wrote: > > > Geoff Norton-2 wrote: > > > > alfdev, > > > > Please file a bug, attaching your distribution, archtecture, full > > config.log and the log of the entire build. > > > > Thanks > > > > -g > > > > On Sun, 2008-08-31 at 04:32 -0700, alfdev wrote: > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > Where? Here? > From alfdev at libero.it Mon Sep 1 16:18:05 2008 From: alfdev at libero.it (alfdev) Date: Mon, 1 Sep 2008 13:18:05 -0700 (PDT) Subject: [Mono-list] Error compiling Moonlight 0.7 In-Reply-To: <1220299916.15694.77.camel@limestone> References: <19241422.post@talk.nabble.com> <1220201365.15694.71.camel@limestone> <19259963.post@talk.nabble.com> <1220299916.15694.77.camel@limestone> Message-ID: <19260169.post@talk.nabble.com> Ok...thx Geoff Norton-2 wrote: > > bugzilla.novell.com > > On Mon, 2008-09-01 at 13:02 -0700, alfdev wrote: >> >> >> Geoff Norton-2 wrote: >> > >> > alfdev, >> > >> > Please file a bug, attaching your distribution, archtecture, full >> > config.log and the log of the entire build. >> > >> > Thanks >> > >> > -g >> > >> > On Sun, 2008-08-31 at 04:32 -0700, alfdev wrote: >> > _______________________________________________ >> > Mono-list maillist - Mono-list at lists.ximian.com >> > http://lists.ximian.com/mailman/listinfo/mono-list >> > >> > >> >> Where? Here? >> > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/Error-compiling-Moonlight-0.7-tp19241422p19260169.html Sent from the Mono - General mailing list archive at Nabble.com. From mariodc at sydec.be Tue Sep 2 04:43:58 2008 From: mariodc at sydec.be (Mario De Clippeleir) Date: Tue, 2 Sep 2008 10:43:58 +0200 Subject: [Mono-list] Licensing References: <52953.71.59.123.159.1220237821.squirrel@cs.brynmawr.edu> Message-ID: Hello, I don't know if this is the right place for my question, but here goes... I have a question about the licensing of mono. When writing a commercial application to be used on both windows and mac, Mono is being used as a tool to make this happen. It is not possible to give out the source code of the application, since it holds confidential information. The application does not use Mono for compilation, only for runtime use. What type of licensing would be needed here ? Also, it is possible (i mean legally) to package and distirbute the mono framework into a macpackage application, so that the user need not to install the mono framework as a seperare item ? Do you happen to know if anything changes if i would be to use cocoa# ? Thanks in advance, Mario PS : I have tried to contact mono at novell.com and mono-licensing at novell.com but both return "User Unknown"... What happened ? From surfzoid at gmail.com Tue Sep 2 07:51:50 2008 From: surfzoid at gmail.com (Petit Eric) Date: Tue, 2 Sep 2008 13:51:50 +0200 Subject: [Mono-list] WinForms or GTK# Forms Message-ID: <84776a970809020451p14ae0610k439237bc43e60eca@mail.gmail.com> Hi, Is there an existing tool who convert MS Winforms .Designer.cs class files to Gtk# UI/designer files ? -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. From sumeshjose at gmail.com Tue Sep 2 10:27:58 2008 From: sumeshjose at gmail.com (sumesh0710) Date: Tue, 2 Sep 2008 07:27:58 -0700 (PDT) Subject: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono Message-ID: <19271280.post@talk.nabble.com> Hi, OS - Linux Version 2.6.9-42.0.0.0.1( Red hat version 3.4.6-3.1) Oracle - 9.2.0 mono - 1.2.4 I have a simple procedure which has a ref cursor as parameter as follows. CREATE OR REPLACE PROCEDURE "DARSTRAN"."TEST" (crsdata out sys_refcursor) as BEGIN open crsdata for select sysdate from dual; END; If i execute this from proc from sql plus. It works fine. Also in windows OS, if i call from an application developed in vb.net it will work. But same code executed in mono in Linux OS shows below error while filling into dataset. ora- 01403: no data found. Code used is cmdSp = New OracleCommand("test", con) cmdSp.CommandType = CommandType.StoredProcedure ds = New DataSet oprCursor = New OracleParameter("crsdata", OracleType.Cursor) oprCursor.Direction = ParameterDirection.Output cmdSp.Parameters.Add(oprCursor) dasp = New OracleDataAdapter(cmdSp) dasp.Fill(ds) If i execute above SP from linux sql plus, also it works ok. Is there any workaround to solve this problem? -- View this message in context: http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19271280.html Sent from the Mono - General mailing list archive at Nabble.com. From safknw at gmail.com Tue Sep 2 10:19:04 2008 From: safknw at gmail.com (Sharique uddin Ahmed Farooqui) Date: Tue, 2 Sep 2008 19:49:04 +0530 Subject: [Mono-list] [Mono-dev] WinForms or GTK# Forms In-Reply-To: <84776a970809020451p14ae0610k439237bc43e60eca@mail.gmail.com> References: <84776a970809020451p14ae0610k439237bc43e60eca@mail.gmail.com> Message-ID: <4da6cf8d0809020719t26b167d2lb7f6e62493445d88@mail.gmail.com> On Tue, Sep 2, 2008 at 5:21 PM, Petit Eric wrote: > Hi, > Is there an existing tool who convert MS Winforms .Designer.cs class > files to Gtk# UI/designer files ? AFAIK, there is no such tool. Mono 2.0 support winforms 2.0 so u don't need to port to GTk#. > > -- > > Cordially. > > Small Eric Quotations of the days: > --------------------------------------------------------------------------- > If one day one reproaches you that your work is not a work of > professional, say you that: > Amateurs built the arch of Noah, and professionals the Titanic. > --------------------------------------------------------------------------- > > Few people are done for independence, it is the privilege of the powerful ones. > --------------------------------------------------------------------------- > > No key was wounded during the drafting of this message. > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > -- Sharique uddin Ahmed Farooqui (C++/C# Developer, IT Consultant) http://safknw.blogspot.com/ "Peace" is the Ultimate thing we want. From marc_d_thompson at hotmail.com Tue Sep 2 10:30:22 2008 From: marc_d_thompson at hotmail.com (Magikat) Date: Tue, 2 Sep 2008 07:30:22 -0700 (PDT) Subject: [Mono-list] Hard linking Message-ID: <19271316.post@talk.nabble.com> Could anyone tell me if hard-linking on both Linux and Windows is supported under the .Net Framework. If not, could you perhaps point to some information that might help writing something to help with hard-linking in C#. Thanks. Mag. -- View this message in context: http://www.nabble.com/Hard-linking-tp19271316p19271316.html Sent from the Mono - General mailing list archive at Nabble.com. From adrien.dessemond at softhome.net Tue Sep 2 11:43:41 2008 From: adrien.dessemond at softhome.net (Adrien Dessemond) Date: Tue, 2 Sep 2008 11:43:41 -0400 (EDT) Subject: [Mono-list] Hard linking In-Reply-To: <19271316.post@talk.nabble.com> References: <19271316.post@talk.nabble.com> Message-ID: <2496.132.203.134.129.1220370221.squirrel@pro.SoftHome.net> Hi, I would have a look there : http://www.go-mono.com/docs/index.aspx?tlink=0 at N%3AMono.Posix (Mono specific !) On Windows you can import and p/invoke CreateHardLink() in the worst case, see http://msdn.microsoft.com/en-us/library/aa363860(VS.85).aspx and http://community.bartdesmet.net/blogs/bart/archive/2006/10/24/Windows-Vista-_2D00_-Creating-symbolic-links-with-C_2300_.aspx for further details. Altought a better approach would be to use an existing wrapper, at least if that one would exist (maybe somewhere in the Microsoft.* namespace ?). Cheers, -- On Tue, September 2, 2008 10:30 am, Magikat wrote: > > Could anyone tell me if hard-linking on both Linux and Windows is > supported > under the .Net Framework. > > If not, could you perhaps point to some information that might help > writing > something to help with hard-linking in C#. > > Thanks. > > Mag. > -- > View this message in context: > http://www.nabble.com/Hard-linking-tp19271316p19271316.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > From surfzoid at gmail.com Tue Sep 2 11:51:20 2008 From: surfzoid at gmail.com (Petit Eric) Date: Tue, 2 Sep 2008 17:51:20 +0200 Subject: [Mono-list] [Mono-dev] WinForms or GTK# Forms In-Reply-To: <4da6cf8d0809020719t26b167d2lb7f6e62493445d88@mail.gmail.com> References: <84776a970809020451p14ae0610k439237bc43e60eca@mail.gmail.com> <4da6cf8d0809020719t26b167d2lb7f6e62493445d88@mail.gmail.com> Message-ID: <84776a970809020851h532c0500n6671d2ca5ffd6475@mail.gmail.com> 2008/9/2 Sharique uddin Ahmed Farooqui : > On Tue, Sep 2, 2008 at 5:21 PM, Petit Eric wrote: >> Hi, >> Is there an existing tool who convert MS Winforms .Designer.cs class >> files to Gtk# UI/designer files ? > AFAIK, there is no such tool. > Mono 2.0 support winforms 2.0 so u don't need to port to GTk#. haha , this is the third soft i write by using MS VC to create the object of the winforms and MD under nix, to write code, but no success and systematicaly, "why don't use native, GTK", this question take sense, sur but i can't use GTK# designer and can't complety rewrite all, just for the UI. As example, my last soft MonoOSC run fine under linux, i annouce it on gnome-anouce mailling list, response from moderator/admin ,something like "Since it use winforms, it as nothing to do with GTK!". Perhap's my question should be better with, is there a GTK skin for winforms :-) > >> >> -- >> >> Cordially. >> >> Small Eric Quotations of the days: >> --------------------------------------------------------------------------- >> If one day one reproaches you that your work is not a work of >> professional, say you that: >> Amateurs built the arch of Noah, and professionals the Titanic. >> --------------------------------------------------------------------------- >> >> Few people are done for independence, it is the privilege of the powerful ones. >> --------------------------------------------------------------------------- >> >> No key was wounded during the drafting of this message. >> _______________________________________________ >> Mono-devel-list mailing list >> Mono-devel-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-devel-list >> > > > > -- > Sharique uddin Ahmed Farooqui > (C++/C# Developer, IT Consultant) > http://safknw.blogspot.com/ > "Peace" is the Ultimate thing we want. > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. From miguel at novell.com Tue Sep 2 12:41:31 2008 From: miguel at novell.com (Miguel de Icaza) Date: Tue, 02 Sep 2008 12:41:31 -0400 Subject: [Mono-list] Small bug in gettext.cs In-Reply-To: <52953.71.59.123.159.1220237821.squirrel@cs.brynmawr.edu> References: <52953.71.59.123.159.1220237821.squirrel@cs.brynmawr.edu> Message-ID: <1220373691.4606.23.camel@linux-1p3a.site> Hello Doug! Thanks for your patch to getline.cs, it has been applied > Douglas S. Blank From miguel at novell.com Tue Sep 2 12:43:25 2008 From: miguel at novell.com (Miguel de Icaza) Date: Tue, 02 Sep 2008 12:43:25 -0400 Subject: [Mono-list] Small bug in gettext.cs In-Reply-To: <52953.71.59.123.159.1220237821.squirrel@cs.brynmawr.edu> References: <52953.71.59.123.159.1220237821.squirrel@cs.brynmawr.edu> Message-ID: <1220373805.4606.26.camel@linux-1p3a.site> Hello, > Also, any ideas on getting a multi-line input working with this? When you say multi-line input, do you mean something like the multi-line input for Bash or Python? I do that by calling the editor with different prompts each time, for example, if I determine that I need the user to provide more input, I show a continuation prompt instead of the original prompt (this is why the Edit method takes a prompt parameter). Miguel. From monodanmorg at yahoo.com Tue Sep 2 13:11:11 2008 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Tue, 2 Sep 2008 10:11:11 -0700 (PDT) Subject: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono In-Reply-To: <19271280.post@talk.nabble.com> Message-ID: <391180.20271.qm@web30802.mail.mud.yahoo.com> Have you tried building mono from svn? Also, can you file a bug in bugzilla please? --- On Tue, 9/2/08, sumesh0710 wrote: > From: sumesh0710 > Subject: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono > To: mono-list at lists.ximian.com > Date: Tuesday, September 2, 2008, 10:27 AM > Hi, > OS - Linux Version 2.6.9-42.0.0.0.1( Red hat version > 3.4.6-3.1) > Oracle - 9.2.0 > mono - 1.2.4 > > I have a simple procedure which has a ref cursor as > parameter as follows. > > CREATE OR REPLACE PROCEDURE > "DARSTRAN"."TEST" (crsdata out > sys_refcursor) > as > > BEGIN > open crsdata for select sysdate from dual; > END; > > If i execute this from proc from sql plus. It works fine. > Also in windows > OS, if i call from an application developed in vb.net it > will work. But same > code executed in mono in Linux OS shows below error while > filling into > dataset. > ora- 01403: no data found. > > Code used is > > cmdSp = New OracleCommand("test", con) > cmdSp.CommandType = CommandType.StoredProcedure > ds = New DataSet > oprCursor = New OracleParameter("crsdata", > OracleType.Cursor) > oprCursor.Direction = ParameterDirection.Output > cmdSp.Parameters.Add(oprCursor) > dasp = New OracleDataAdapter(cmdSp) > dasp.Fill(ds) > > If i execute above SP from linux sql plus, also it works > ok. > > Is there any workaround to solve this problem? > -- > View this message in context: > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19271280.html > Sent from the Mono - General mailing list archive at > Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From monodanmorg at yahoo.com Tue Sep 2 13:17:55 2008 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Tue, 2 Sep 2008 10:17:55 -0700 (PDT) Subject: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono In-Reply-To: <391180.20271.qm@web30802.mail.mud.yahoo.com> Message-ID: <290442.59143.qm@web30801.mail.mud.yahoo.com> Here is a more complete test case in C#. I changed the stored procedure name to SP_TEST_REF_CURSOR. // test.cs // mcs test.cs /r:System.Data.dll /r:System.Data.OracleClient.dll using System; using System.Data; using System.Data.Common; using System.Data.OracleClient; public class test { public static void Main(string[] args) { Console.WriteLine("Start."); OracleConnection con = new OracleConnection("Data source=testdb;user id=someuser;password=somepass"); con.Open(); OracleCommand cmdSp = con.CreateCommand(); //cmdSp.CommandType = CommandType.StoredProcedure; //cmdSp.CommandText = "SP_TEST_REF_CURSOR"; cmdSp.CommandText = "BEGIN\n SP_TEST_REF_CURSOR(:crsdata); \nEND;\n"; DataSet ds = new DataSet(); OracleParameter oprCursor = new OracleParameter("crsdata", OracleType.Cursor); oprCursor.Direction = ParameterDirection.Output; cmdSp.Parameters.Add(oprCursor); OracleDataAdapter dasp = new OracleDataAdapter(cmdSp); try { dasp.Fill(ds); Console.WriteLine("Success!"); } catch (Exception e) { Console.Error.WriteLine("Error: " + e.Message); Console.Error.WriteLine(e); } con.Close(); con = null; } } --- On Tue, 9/2/08, Daniel Morgan wrote: > From: Daniel Morgan > Subject: Re: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono > To: mono-list at lists.ximian.com, "sumesh0710" > Date: Tuesday, September 2, 2008, 1:11 PM > Have you tried building mono from svn? > > Also, can you file a bug in bugzilla please? > > > --- On Tue, 9/2/08, sumesh0710 > wrote: > > > From: sumesh0710 > > Subject: [Mono-list] re f cursor issue in oracle > stored procedure invoked from mono > > To: mono-list at lists.ximian.com > > Date: Tuesday, September 2, 2008, 10:27 AM > > Hi, > > OS - Linux Version 2.6.9-42.0.0.0.1( Red hat version > > 3.4.6-3.1) > > Oracle - 9.2.0 > > mono - 1.2.4 > > > > I have a simple procedure which has a ref cursor as > > parameter as follows. > > > > CREATE OR REPLACE PROCEDURE > > "DARSTRAN"."TEST" (crsdata out > > sys_refcursor) > > as > > > > BEGIN > > open crsdata for select sysdate from dual; > > END; > > > > If i execute this from proc from sql plus. It works > fine. > > Also in windows > > OS, if i call from an application developed in vb.net > it > > will work. But same > > code executed in mono in Linux OS shows below error > while > > filling into > > dataset. > > ora- 01403: no data found. > > > > Code used is > > > > cmdSp = New OracleCommand("test", con) > > cmdSp.CommandType = CommandType.StoredProcedure > > ds = New DataSet > > oprCursor = New OracleParameter("crsdata", > > OracleType.Cursor) > > oprCursor.Direction = ParameterDirection.Output > > cmdSp.Parameters.Add(oprCursor) > > dasp = New OracleDataAdapter(cmdSp) > > dasp.Fill(ds) > > > > If i execute above SP from linux sql plus, also it > works > > ok. > > > > Is there any workaround to solve this problem? > > -- > > View this message in context: > > > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19271280.html > > Sent from the Mono - General mailing list archive at > > Nabble.com. > > > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From jonpryor at vt.edu Tue Sep 2 13:19:48 2008 From: jonpryor at vt.edu (Jonathan Pryor) Date: Tue, 02 Sep 2008 13:19:48 -0400 Subject: [Mono-list] Hard linking In-Reply-To: <19271316.post@talk.nabble.com> References: <19271316.post@talk.nabble.com> Message-ID: <1220375988.29752.8.camel@lina.magi.jprl.com> On Tue, 2008-09-02 at 07:30 -0700, Magikat wrote: > Could anyone tell me if hard-linking on both Linux and Windows is supported > under the .Net Framework. As far as I'm aware, symbolic links and hard links are NOT supported as distinct entities under .NET. That is, you can read a hard link or symbolic link normally, but there is no way to determine that the file is a hard link or symbolic link from within .NET. > If not, could you perhaps point to some information that might help writing > something to help with hard-linking in C#. On Mono/Linux, you can use the various Mono.Unix classes in Mono.Posix.dll: UnixFileSystemInfo e = UnixFileSystemInfo.GetFileSystemEntry(file); if (e.IsSymbolicLink) // file is a symbolic link else if (e.IsRegularFile && e.LinkCount > 1) // file is a hard link ... Or you can use Mono.Unix.Native.Syscall for the ~actual POSIX APIs. This doesn't work for Win32, though, so for Win32 support you'd need to P/Invoke to the corresponding Win32 APIs, such as CreateHardLink() [1] and CreateSymbolicLink() [2]. - Jon [0] http://www.go-mono.com/docs/index.aspx?tlink=0 at ecma%3a105%23UnixFileSystemInfo%2f [1] http://msdn.microsoft.com/en-us/library/aa363860(VS.85).aspx [2] http://msdn.microsoft.com/en-us/library/aa363866(VS.85).aspx From monodanmorg at yahoo.com Tue Sep 2 19:45:25 2008 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Tue, 2 Sep 2008 16:45:25 -0700 (PDT) Subject: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono In-Reply-To: <19271280.post@talk.nabble.com> Message-ID: <947179.74630.qm@web30806.mail.mud.yahoo.com> DbDataAdapter uses ExecuteReader and the returned reader to populate the data table. If you try your example with ExecuteReader and then try to get the data reader from the parameter, it will fail because you will have DBNull.Value. At least this is what you get on .net 2.0. My advice is to use ExecuteNonQuery(), then get the data reader from the parameter. Then manually load a data table. Here is an example that works for me on .net 2.0 and mono: // test.cs // gmcs test.cs /r:System.Data.dll /r:System.Data.OracleClient.dll using System; using System.Data; using System.Data.Common; using System.Data.OracleClient; public class test { public static void Main(string[] args) { Console.WriteLine("Start."); OracleConnection con = new OracleConnection("Data source=testdb;user id=someuser;password=somepass"); con.Open(); OracleCommand cmdSp = con.CreateCommand(); cmdSp.CommandText = "BEGIN\n SP_TEST_REF_CURSOR(:crsdata); \nEND;\n"; DataSet ds = new DataSet(); OracleParameter oprCursor = new OracleParameter("crsdata", OracleType.Cursor); oprCursor.Direction = ParameterDirection.Output; cmdSp.Parameters.Add(oprCursor); cmdSp.ExecuteNonQuery(); OracleDataReader reader = (OracleDataReader)oprCursor.Value; Console.WriteLine("Build DataSet from reader that holds a REF CURSOR"); DataTable schema = reader.GetSchemaTable(); DataTable newTable = new DataTable(); if (reader.FieldCount > 0) { foreach (DataRow row in schema.Rows) { string columnName = row["ColumnName"].ToString(); Type columnType = (Type)row["DataType"]; newTable.Columns.Add(columnName, columnType); } while (reader.Read()) { object[] values = new object[newTable.Columns.Count]; reader.GetValues(values); newTable.Rows.Add(values); } } reader.Close(); Console.WriteLine("Add DataTable to DataSet"); ds.Tables.Add(newTable); Console.WriteLine("Show Result"); Console.WriteLine("Columns in DataTable"); foreach (DataColumn column in ds.Tables[0].Columns) { Console.WriteLine(" ColumnName: " + column.ColumnName); Console.WriteLine(" DataType: " + column.DataType.ToString()); } Console.WriteLine("Rows in DataTable"); foreach (DataRow row in ds.Tables[0].Rows) { for (int c = 0; c < ds.Tables[0].Columns.Count; c++) { Console.WriteLine("Column " + c.ToString()); if (row[c].Equals(DBNull.Value)) Console.WriteLine(" Value is DBNull.Value"); else { Console.WriteLine(" Value: " + row[c].ToString()); Console.WriteLine(" Value Type: " + row[c].GetType().ToString()); } } } con.Close(); con = null; Console.WriteLine("Success!"); } } --- On Tue, 9/2/08, sumesh0710 wrote: > From: sumesh0710 > Subject: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono > To: mono-list at lists.ximian.com > Date: Tuesday, September 2, 2008, 10:27 AM > Hi, > OS - Linux Version 2.6.9-42.0.0.0.1( Red hat version > 3.4.6-3.1) > Oracle - 9.2.0 > mono - 1.2.4 > > I have a simple procedure which has a ref cursor as > parameter as follows. > > CREATE OR REPLACE PROCEDURE > "DARSTRAN"."TEST" (crsdata out > sys_refcursor) > as > > BEGIN > open crsdata for select sysdate from dual; > END; > > If i execute this from proc from sql plus. It works fine. > Also in windows > OS, if i call from an application developed in vb.net it > will work. But same > code executed in mono in Linux OS shows below error while > filling into > dataset. > ora- 01403: no data found. > > Code used is > > cmdSp = New OracleCommand("test", con) > cmdSp.CommandType = CommandType.StoredProcedure > ds = New DataSet > oprCursor = New OracleParameter("crsdata", > OracleType.Cursor) > oprCursor.Direction = ParameterDirection.Output > cmdSp.Parameters.Add(oprCursor) > dasp = New OracleDataAdapter(cmdSp) > dasp.Fill(ds) > > If i execute above SP from linux sql plus, also it works > ok. > > Is there any workaround to solve this problem? > -- > View this message in context: > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19271280.html > Sent from the Mono - General mailing list archive at > Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From cdhowie at gmail.com Tue Sep 2 22:31:06 2008 From: cdhowie at gmail.com (Chris Howie) Date: Tue, 2 Sep 2008 22:31:06 -0400 Subject: [Mono-list] Licensing In-Reply-To: References: <52953.71.59.123.159.1220237821.squirrel@cs.brynmawr.edu> Message-ID: <3d2f29dc0809021931g4eaf2f2cldcf0376d88c2f38d@mail.gmail.com> On Tue, Sep 2, 2008 at 4:43 AM, Mario De Clippeleir wrote: > Hello, > > I don't know if this is the right place for my question, but here > goes... I am not a lawyer or a Novell representative, but I will offer my knowledge nonetheless. > I have a question about the licensing of mono. When writing a commercial > application to be used on both windows and mac, Mono is being used as a > tool to make this happen. It is not possible to give out the source > code of the application, since it holds confidential information. The > application does not use Mono for compilation, only for runtime use. Whether you use the Mono compilers or just the runtime doesn't matter -- you are free to do both/either without paying any royalties or changing the license of your software. > What type of licensing would be needed here ? Also, it is possible (i > mean legally) to package and distirbute the mono framework into a > macpackage application, so that the user need not to install the mono > framework as a seperare item ? I am not sure, but depending on how you do it this may require you to switch to GPL or LGPL. If you offer a download of the Mono runtime alongside of your install package I don't think there's an issue. If you include the install package in your own, unmodified, I don't think there's an issue either. If you "absorb" the installer in your own then the lines are a bit blurry and I don't think I can answer your question there, but doing so would raise technical issues too. Personally I think it would make more sense to point people to installing Mono on their own, which will certainly not require any licensing maneuvers. > Do you happen to know if anything changes if i would be to use cocoa# ? You'd have to look at their license. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From neilkonitzer at gmail.com Tue Sep 2 15:00:07 2008 From: neilkonitzer at gmail.com (neilkonitzer) Date: Tue, 2 Sep 2008 12:00:07 -0700 (PDT) Subject: [Mono-list] Index is less than 0 or more than or equal to the list count Message-ID: <19276278.post@talk.nabble.com> Is anyone aware of any issues with the System.Collections class that requires code work-arounds? I have an ASP.NET application that works fine in Windows. However, running in Mono, I get the following exception in three different places. In one situation, I am simply deleting a record from a data grid. In another, I am making changes to a datatable. The problem appears to be isolated to System.Collections.ArrayList.get_item. Here is the pertinent stack trace: Thanks in advance! System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count. Parameter name: index -1 at System.Collections.ArrayList.get_Item (Int32 index) [0x00032] in /tmp/monobuild/build/BUILD/mono-1.9.1/mcs/class/corlib/System.Collections/ArrayList.cs:2645 Neil Konitzer Freisoft Consulting Services, Inc. -- View this message in context: http://www.nabble.com/Index-is-less-than-0-or-more-than-or-equal-to-the-list-count-tp19276278p19276278.html Sent from the Mono - General mailing list archive at Nabble.com. From gert.driesen at telenet.be Wed Sep 3 01:20:47 2008 From: gert.driesen at telenet.be (Gert Driesen) Date: Wed, 3 Sep 2008 07:20:47 +0200 Subject: [Mono-list] Index is less than 0 or more than or equal to the list count In-Reply-To: <19276278.post@talk.nabble.com> References: <19276278.post@talk.nabble.com> Message-ID: <000d01c90d84$d283b1a0$778b14e0$@driesen@telenet.be> Neil, Please create a standalone repro for this issue, and submit a bug report. Gert -----Original Message----- From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of neilkonitzer Sent: dinsdag 2 september 2008 21:00 To: mono-list at lists.ximian.com Subject: [Mono-list] Index is less than 0 or more than or equal to the list count Is anyone aware of any issues with the System.Collections class that requires code work-arounds? I have an ASP.NET application that works fine in Windows. However, running in Mono, I get the following exception in three different places. In one situation, I am simply deleting a record from a data grid. In another, I am making changes to a datatable. The problem appears to be isolated to System.Collections.ArrayList.get_item. Here is the pertinent stack trace: Thanks in advance! System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count. Parameter name: index -1 at System.Collections.ArrayList.get_Item (Int32 index) [0x00032] in /tmp/monobuild/build/BUILD/mono-1.9.1/mcs/class/corlib/System.Collections/Ar rayList.cs:2645 Neil Konitzer Freisoft Consulting Services, Inc. -- View this message in context: http://www.nabble.com/Index-is-less-than-0-or-more-than-or-equal-to-the-list -count-tp19276278p19276278.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ Mono-list maillist - Mono-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list From sumeshjose at gmail.com Wed Sep 3 05:37:46 2008 From: sumeshjose at gmail.com (sumesh0710) Date: Wed, 3 Sep 2008 02:37:46 -0700 (PDT) Subject: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono In-Reply-To: <947179.74630.qm@web30806.mail.mud.yahoo.com> References: <19271280.post@talk.nabble.com> <947179.74630.qm@web30806.mail.mud.yahoo.com> Message-ID: <19285959.post@talk.nabble.com> Thanks for the reply. I tried using execute reader, but the outputparameter value was null. In my case I used cmdSp = New OracleCommand("test", con) cmdSp.CommandType = CommandType.StoredProcedure I will try as ur code. Is your mono version is latest? I saw in release notes of mono 1.9.1, that there is ref cursor support, which means no cursor support in previous versions? Daniel Morgan-3 wrote: > > DbDataAdapter uses ExecuteReader and the returned reader to populate the > data table. If you try your example with ExecuteReader and then try to > get the data reader from the parameter, it will fail because you will have > DBNull.Value. At least this is what you get on .net 2.0. > > My advice is to use ExecuteNonQuery(), then get the data reader from the > parameter. Then manually load a data table. > > Here is an example that works for me on .net 2.0 and mono: > > // test.cs > // gmcs test.cs /r:System.Data.dll /r:System.Data.OracleClient.dll > using System; > using System.Data; > using System.Data.Common; > using System.Data.OracleClient; > > public class test > { > public static void Main(string[] args) > { > Console.WriteLine("Start."); > OracleConnection con = new OracleConnection("Data > source=testdb;user id=someuser;password=somepass"); > con.Open(); > OracleCommand cmdSp = con.CreateCommand(); > cmdSp.CommandText = "BEGIN\n SP_TEST_REF_CURSOR(:crsdata); > \nEND;\n"; > DataSet ds = new DataSet(); > OracleParameter oprCursor = new OracleParameter("crsdata", > OracleType.Cursor); > oprCursor.Direction = ParameterDirection.Output; > cmdSp.Parameters.Add(oprCursor); > > cmdSp.ExecuteNonQuery(); > > OracleDataReader reader = (OracleDataReader)oprCursor.Value; > > Console.WriteLine("Build DataSet from reader that holds a REF CURSOR"); > > DataTable schema = reader.GetSchemaTable(); > DataTable newTable = new DataTable(); > if (reader.FieldCount > 0) > { > foreach (DataRow row in schema.Rows) > { > string columnName = row["ColumnName"].ToString(); > Type columnType = (Type)row["DataType"]; > newTable.Columns.Add(columnName, columnType); > } > while (reader.Read()) > { > object[] values = new object[newTable.Columns.Count]; > reader.GetValues(values); > newTable.Rows.Add(values); > } > } > > reader.Close(); > > Console.WriteLine("Add DataTable to DataSet"); > ds.Tables.Add(newTable); > > Console.WriteLine("Show Result"); > Console.WriteLine("Columns in DataTable"); > foreach (DataColumn column in ds.Tables[0].Columns) > { > Console.WriteLine(" ColumnName: " + column.ColumnName); > Console.WriteLine(" DataType: " + > column.DataType.ToString()); > } > Console.WriteLine("Rows in DataTable"); > foreach (DataRow row in ds.Tables[0].Rows) > { > for (int c = 0; c < ds.Tables[0].Columns.Count; c++) > { > Console.WriteLine("Column " + c.ToString()); > if (row[c].Equals(DBNull.Value)) > Console.WriteLine(" Value is DBNull.Value"); > else > { > Console.WriteLine(" Value: " + row[c].ToString()); > Console.WriteLine(" Value Type: " + > row[c].GetType().ToString()); > } > } > } > > con.Close(); > con = null; > Console.WriteLine("Success!"); > } > } > > > > > > > --- On Tue, 9/2/08, sumesh0710 wrote: > >> From: sumesh0710 >> Subject: [Mono-list] re f cursor issue in oracle stored procedure invoked >> from mono >> To: mono-list at lists.ximian.com >> Date: Tuesday, September 2, 2008, 10:27 AM >> Hi, >> OS - Linux Version 2.6.9-42.0.0.0.1( Red hat version >> 3.4.6-3.1) >> Oracle - 9.2.0 >> mono - 1.2.4 >> >> I have a simple procedure which has a ref cursor as >> parameter as follows. >> >> CREATE OR REPLACE PROCEDURE >> "DARSTRAN"."TEST" (crsdata out >> sys_refcursor) >> as >> >> BEGIN >> open crsdata for select sysdate from dual; >> END; >> >> If i execute this from proc from sql plus. It works fine. >> Also in windows >> OS, if i call from an application developed in vb.net it >> will work. But same >> code executed in mono in Linux OS shows below error while >> filling into >> dataset. >> ora- 01403: no data found. >> >> Code used is >> >> cmdSp = New OracleCommand("test", con) >> cmdSp.CommandType = CommandType.StoredProcedure >> ds = New DataSet >> oprCursor = New OracleParameter("crsdata", >> OracleType.Cursor) >> oprCursor.Direction = ParameterDirection.Output >> cmdSp.Parameters.Add(oprCursor) >> dasp = New OracleDataAdapter(cmdSp) >> dasp.Fill(ds) >> >> If i execute above SP from linux sql plus, also it works >> ok. >> >> Is there any workaround to solve this problem? >> -- >> View this message in context: >> http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19271280.html >> Sent from the Mono - General mailing list archive at >> Nabble.com. >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list > > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19285959.html Sent from the Mono - General mailing list archive at Nabble.com. From safknw at gmail.com Wed Sep 3 07:58:25 2008 From: safknw at gmail.com (Sharique uddin Ahmed Farooqui) Date: Wed, 3 Sep 2008 17:28:25 +0530 Subject: [Mono-list] [Mono-dev] WinForms or GTK# Forms In-Reply-To: <84776a970809020851h532c0500n6671d2ca5ffd6475@mail.gmail.com> References: <84776a970809020451p14ae0610k439237bc43e60eca@mail.gmail.com> <4da6cf8d0809020719t26b167d2lb7f6e62493445d88@mail.gmail.com> <84776a970809020851h532c0500n6671d2ca5ffd6475@mail.gmail.com> Message-ID: <4da6cf8d0809030458w43963536gb39961e6e7a7a47e@mail.gmail.com> On Tue, Sep 2, 2008 at 9:21 PM, Petit Eric wrote: > 2008/9/2 Sharique uddin Ahmed Farooqui : >> On Tue, Sep 2, 2008 at 5:21 PM, Petit Eric wrote: >>> Hi, >>> Is there an existing tool who convert MS Winforms .Designer.cs class >>> files to Gtk# UI/designer files ? >> AFAIK, there is no such tool. >> Mono 2.0 support winforms 2.0 so u don't need to port to GTk#. > haha , this is the third soft i write by using MS VC to create the > object of the winforms and MD under nix, to write code, but no success > and systematicaly, "why don't use native, GTK", this question take > sense, sur but i can't use GTK# designer and can't complety rewrite > all, just for the UI. > As example, my last soft MonoOSC run fine under linux, i annouce it on > gnome-anouce mailling list, response from moderator/admin ,something > like "Since it use winforms, it as nothing to do with GTK!". Since you have made MonoOSC, than my suggestion that you keep improving that using existing Gui than thinking abt changing gui. > > Perhap's my question should be better with, is there a GTK skin for winforms :-) If u get answer than let me know. I'm also interested in it. >> >>> >>> -- >>> >>> Cordially. >>> >>> Small Eric Quotations of the days: >>> --------------------------------------------------------------------------- >>> If one day one reproaches you that your work is not a work of >>> professional, say you that: >>> Amateurs built the arch of Noah, and professionals the Titanic. >>> --------------------------------------------------------------------------- >>> >>> Few people are done for independence, it is the privilege of the powerful ones. >>> --------------------------------------------------------------------------- >>> >>> No key was wounded during the drafting of this message. >>> _______________________________________________ >>> Mono-devel-list mailing list >>> Mono-devel-list at lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-devel-list >>> >> >> >> >> -- >> Sharique uddin Ahmed Farooqui >> (C++/C# Developer, IT Consultant) >> http://safknw.blogspot.com/ >> "Peace" is the Ultimate thing we want. >> > > > > -- > > Cordially. > > Small Eric Quotations of the days: > --------------------------------------------------------------------------- > If one day one reproaches you that your work is not a work of > professional, say you that: > Amateurs built the arch of Noah, and professionals the Titanic. > --------------------------------------------------------------------------- > > Few people are done for independence, it is the privilege of the powerful ones. > --------------------------------------------------------------------------- > > No key was wounded during the drafting of this message. > -- Sharique uddin Ahmed Farooqui (C++/C# Developer, IT Consultant) http://safknw.blogspot.com/ "Peace" is the Ultimate thing we want. From codetale at gmail.com Tue Sep 2 23:22:08 2008 From: codetale at gmail.com (codetale) Date: Tue, 2 Sep 2008 20:22:08 -0700 (PDT) Subject: [Mono-list] Portable Mono/private bundle version Message-ID: <19282319.post@talk.nabble.com> I just try Mono last day, I find out that Mono possible Mono run any "supported" .Net application without installing the Mono (just copy the bin and lib folders and use mono.exe to fire the .Net application) its a good way to distribute with knowing/caring the client installed framework version, because the application can have it own bundle version. I want to know: 1. bin and lib (mono runtime) are quite large in size (about 160mb), is it possible to reduce it size by removing some some files, I just have to make it possible to run pure .Net 2.0 application, others version are not consider. If it possible to, please note me which are save to remove. 2. is it have any licensing issue if I redistribute the mono in this way (without the installer) together with proprietary software? Thank you very much -- View this message in context: http://www.nabble.com/Portable-Mono-private-bundle-version-tp19282319p19282319.html Sent from the Mono - General mailing list archive at Nabble.com. From cdhowie at gmail.com Wed Sep 3 12:26:31 2008 From: cdhowie at gmail.com (Chris Howie) Date: Wed, 3 Sep 2008 12:26:31 -0400 Subject: [Mono-list] Portable Mono/private bundle version In-Reply-To: <19282319.post@talk.nabble.com> References: <19282319.post@talk.nabble.com> Message-ID: <3d2f29dc0809030926h3743eebfn732c24dfbf989651@mail.gmail.com> On Tue, Sep 2, 2008 at 11:22 PM, codetale wrote: > I want to know: > 1. bin and lib (mono runtime) are quite large in size (about 160mb), is it > possible to reduce it size by removing some some files, I just have to make > it possible to run pure .Net 2.0 application, others version are not > consider. > If it possible to, please note me which are save to remove. As an independent software developer not affiliated with Novell, I would advise against bundling at all. You would be using disk space on your target machine for something that can be shared between applications anyway. If you are deploying to a Windows machine then the Microsoft .NET runtime should be easily installable, and if you are deploying to Linux then many distributions already have Mono packages. Simply instruct your users to install them. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers From ben at galactic-tales.de Wed Sep 3 12:32:43 2008 From: ben at galactic-tales.de (Benjamin Podszun) Date: Wed, 03 Sep 2008 18:32:43 +0200 Subject: [Mono-list] Portable Mono/private bundle version In-Reply-To: <19282319.post@talk.nabble.com> References: <19282319.post@talk.nabble.com> Message-ID: <7801f1003011565f4289beffa5da7ac8@localhost> Hi. On Tue, 2 Sep 2008 20:22:08 -0700 (PDT), codetale wrote: > I want to know: > 1. bin and lib (mono runtime) are quite large in size (about 160mb), is it > possible to reduce it size by removing some some files, I just have to > make > it possible to run pure .Net 2.0 application, others version are not > consider. > If it possible to, please note me which are save to remove. Yes, it's possible, although I don't have a list of files ready. I do exactly that for a small project of mine, which is a .net 2.0 ClickOnce application that includes a version of mono (1.9.something currently) as zip file. It is 18 MB uncompressed, less than 7 MB as a zip file and works fine for my (quite specific) purpose of recompiling some stuff on the client machine. Sorry that I cannot help you with specific details, but with a little guesswork and some trial and error it's possible to do what you want ;) Regards, Ben From ben at galactic-tales.de Wed Sep 3 12:38:38 2008 From: ben at galactic-tales.de (Benjamin Podszun) Date: Wed, 03 Sep 2008 18:38:38 +0200 Subject: [Mono-list] Portable Mono/private bundle version In-Reply-To: <3d2f29dc0809030926h3743eebfn732c24dfbf989651@mail.gmail.com> References: <19282319.post@talk.nabble.com> <3d2f29dc0809030926h3743eebfn732c24dfbf989651@mail.gmail.com> Message-ID: <966c253ae1bc04131dd475fd0539c077@localhost> On Wed, 3 Sep 2008 12:26:31 -0400, "Chris Howie" wrote: > On Tue, Sep 2, 2008 at 11:22 PM, codetale wrote: >> I want to know: >> 1. bin and lib (mono runtime) are quite large in size (about 160mb), is > it >> possible to reduce it size by removing some some files, I just have to > make >> it possible to run pure .Net 2.0 application, others version are not >> consider. >> If it possible to, please note me which are save to remove. > > As an independent software developer not affiliated with Novell, I > would advise against bundling at all. You would be using disk space > on your target machine for something that can be shared between > applications anyway. If you are deploying to a Windows machine then > the Microsoft .NET runtime should be easily installable, and if you > are deploying to Linux then many distributions already have Mono > packages. Simply instruct your users to install them. Apart from the point that some might argue otherwise (thinking of mac-style application deployment, almost everything in one folder) I see one big usecase for this: You can put your software on an USB stick/CD/medium with all requirements (nice for portability) and can run it without installation (nice if you don't have the required permissions, both on Windows/Linux) for example in corporate environments. So I like the idea for some stuff, although I agree with your opinion in general. Regards, Ben From codetale at gmail.com Wed Sep 3 13:01:57 2008 From: codetale at gmail.com (codetale) Date: Wed, 3 Sep 2008 10:01:57 -0700 (PDT) Subject: [Mono-list] Portable Mono/private bundle version In-Reply-To: <3d2f29dc0809030926h3743eebfn732c24dfbf989651@mail.gmail.com> References: <19282319.post@talk.nabble.com> <3d2f29dc0809030926h3743eebfn732c24dfbf989651@mail.gmail.com> Message-ID: <19293487.post@talk.nabble.com> Chris Howie-3 wrote: > > As an independent software developer not affiliated with Novell, I > would advise against bundling at all. You would be using disk space > on your target machine for something that can be shared between > applications anyway. If you are deploying to a Windows machine then > the Microsoft .NET runtime should be easily installable, and if you > are deploying to Linux then many distributions already have Mono > packages. Simply instruct your users to install them. > > -- > Chris Howie > http://www.chrishowie.com > http://en.wikipedia.org/wiki/User:Crazycomputers > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > Thankyou for replay. In my case, the application have to portable (pendrive) and the user mostly do not have the admin right and the application very small (about 5mb only) if i ship with the .Net Framework installer thats was to huge compare to my application (150mb+) even webinstaller also required to download about 50mb, I guess most users are not willing to do this, they can just giveup my application and use the other similar. -- View this message in context: http://www.nabble.com/Portable-Mono-private-bundle-version-tp19282319p19293487.html Sent from the Mono - General mailing list archive at Nabble.com. From codetale at gmail.com Wed Sep 3 13:11:40 2008 From: codetale at gmail.com (codetale) Date: Wed, 3 Sep 2008 10:11:40 -0700 (PDT) Subject: [Mono-list] Portable Mono/private bundle version In-Reply-To: <7801f1003011565f4289beffa5da7ac8@localhost> References: <19282319.post@talk.nabble.com> <7801f1003011565f4289beffa5da7ac8@localhost> Message-ID: <19293658.post@talk.nabble.com> Benjamin Podszun wrote: > > Yes, it's possible, although I don't have a list of files ready. I do > exactly that for a small project of mine, which is a .net 2.0 ClickOnce > application that includes a version of mono (1.9.something currently) as > zip file. It is 18 MB uncompressed, less than 7 MB as a zip file and works > fine for my (quite specific) purpose of recompiling some stuff on the > client machine. > > Sorry that I cannot help you with specific details, but with a little > guesswork and some trial and error it's possible to do what you want ;) > > Regards, > Ben > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > Thankyou, i managed to do this also, and the size is about 35mb, 6mb after compress in 7z. just yet have to take many time to test about the "side" effect. if possible to get "official" guide, then will be mush easier, and no need to worry too much about the "side" effect -- View this message in context: http://www.nabble.com/Portable-Mono-private-bundle-version-tp19282319p19293658.html Sent from the Mono - General mailing list archive at Nabble.com. From javierfernandez108 at gmail.com Wed Sep 3 14:42:00 2008 From: javierfernandez108 at gmail.com (javierfernandez108) Date: Wed, 3 Sep 2008 11:42:00 -0700 (PDT) Subject: [Mono-list] About Mono installation in CentOS In-Reply-To: <00b501c87945$a62499e0$2301a8c0@neptuno> References: <00b501c87945$a62499e0$2301a8c0@neptuno> Message-ID: <19295385.post@talk.nabble.com> Roilan Cardoso S?nchez wrote: > > Hello everybody > I'm trying to install Mono on my CentOS 5 but i coudn't > Firstly i try using mono.repo for centos, but when it try to install > libgdiplus it throw an dependency error, coudn't find libexif.so.9 and > libungif.so.4 > Then i try with the .bin istalator and the throw the same error but with > libgailutil.so.17 and liblitz.so.1 > I try too, with the CentOS Extras reporsitory and the same but with > lifgif.so.4 > Finally I reinstall my system and from 0 y try with the CentOS GUI > installer in extras Mono, it works, but when i try to run an application > (GUI app) mono thow error coudn't find gdiplus.dll > I really don't know what to do, please can any budy help me > > regards > Roilan > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > I'm having a similar problem on a RH4 x86_64 box. I went to the download page (http://ftp.novell.com/pub/mono/download-stable/rhel-4-i386/) and downloaded all the RPM's in a zip file, and first attempted to install the libgdiplus0-1.9-1.rhel4.novell.i386.rpm and it gave me error: Failed dependencies: libexif.so.9 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 libglib-2.0.so.0 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 libjpeg.so.62 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 libpng12.so.0 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 libtiff.so.3 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 libungif.so.4 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 I verified I had a libexif rpm installed and found libexif-0.5.12-5.1.0.2. The I searched and found /usr/lib64/libexif.so.9 installed. Is this an issue x86_64 issue where I cannot use the downloaded rpms with this architecture? -- View this message in context: http://www.nabble.com/About-Mono-installation-in-CentOS-tp15716880p19295385.html Sent from the Mono - General mailing list archive at Nabble.com. From contact at i-nz.net Wed Sep 3 15:33:32 2008 From: contact at i-nz.net (Ivan N. Zlatev) Date: Wed, 3 Sep 2008 20:33:32 +0100 Subject: [Mono-list] About Mono installation in CentOS In-Reply-To: <19295385.post@talk.nabble.com> References: <00b501c87945$a62499e0$2301a8c0@neptuno> <19295385.post@talk.nabble.com> Message-ID: <3db1ec7f0809031233o4c6275f8yd9de350743a19dae@mail.gmail.com> On Wed, Sep 3, 2008 at 7:42 PM, javierfernandez108 wrote: > > > > Roilan Cardoso S?nchez wrote: >> >> Hello everybody >> I'm trying to install Mono on my CentOS 5 but i coudn't >> Firstly i try using mono.repo for centos, but when it try to install >> libgdiplus it throw an dependency error, coudn't find libexif.so.9 and >> libungif.so.4 >> Then i try with the .bin istalator and the throw the same error but with >> libgailutil.so.17 and liblitz.so.1 >> I try too, with the CentOS Extras reporsitory and the same but with >> lifgif.so.4 >> Finally I reinstall my system and from 0 y try with the CentOS GUI >> installer in extras Mono, it works, but when i try to run an application >> (GUI app) mono thow error coudn't find gdiplus.dll >> I really don't know what to do, please can any budy help me >> >> regards >> Roilan >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> >> > > I'm having a similar problem on a RH4 x86_64 box. I went to the download > page > (http://ftp.novell.com/pub/mono/download-stable/rhel-4-i386/) and downloaded > all the RPM's in a zip file, and first attempted to install the > libgdiplus0-1.9-1.rhel4.novell.i386.rpm > and it gave me > error: Failed dependencies: > libexif.so.9 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 > libglib-2.0.so.0 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 > libjpeg.so.62 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 > libpng12.so.0 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 > libtiff.so.3 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 > libungif.so.4 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 > > I verified I had a libexif rpm installed and found libexif-0.5.12-5.1.0.2. > The I searched and found /usr/lib64/libexif.so.9 installed. > > Is this an issue x86_64 issue where I cannot use the downloaded rpms > with this architecture? > It seems you are installing 32bit mono packages on a 64bit system and those packages require 32bit dependencies and not their 64bit equivalents. -- Kind Regards, Ivan N. Zlatev From javierfernandez108 at gmail.com Wed Sep 3 15:44:30 2008 From: javierfernandez108 at gmail.com (javier fernandez) Date: Wed, 3 Sep 2008 15:44:30 -0400 Subject: [Mono-list] About Mono installation in CentOS In-Reply-To: <3db1ec7f0809031233o4c6275f8yd9de350743a19dae@mail.gmail.com> References: <00b501c87945$a62499e0$2301a8c0@neptuno> <19295385.post@talk.nabble.com> <3db1ec7f0809031233o4c6275f8yd9de350743a19dae@mail.gmail.com> Message-ID: In my haste I overlooked the fact that's its stated "This download works on RedHat Enterprise Linux 4 on x86 32bit (i586)." Do you know if the equivalent rpm's are available for x86 64bit? On Wed, Sep 3, 2008 at 3:33 PM, Ivan N. Zlatev wrote: > On Wed, Sep 3, 2008 at 7:42 PM, javierfernandez108 > wrote: > > > > > > > > Roilan Cardoso S?nchez wrote: > >> > >> Hello everybody > >> I'm trying to install Mono on my CentOS 5 but i coudn't > >> Firstly i try using mono.repo for centos, but when it try to install > >> libgdiplus it throw an dependency error, coudn't find libexif.so.9 and > >> libungif.so.4 > >> Then i try with the .bin istalator and the throw the same error but with > >> libgailutil.so.17 and liblitz.so.1 > >> I try too, with the CentOS Extras reporsitory and the same but with > >> lifgif.so.4 > >> Finally I reinstall my system and from 0 y try with the CentOS GUI > >> installer in extras Mono, it works, but when i try to run an application > >> (GUI app) mono thow error coudn't find gdiplus.dll > >> I really don't know what to do, please can any budy help me > >> > >> regards > >> Roilan > >> _______________________________________________ > >> Mono-list maillist - Mono-list at lists.ximian.com > >> http://lists.ximian.com/mailman/listinfo/mono-list > >> > >> > > > > I'm having a similar problem on a RH4 x86_64 box. I went to the download > > page > > (http://ftp.novell.com/pub/mono/download-stable/rhel-4-i386/) and > downloaded > > all the RPM's in a zip file, and first attempted to install the > > libgdiplus0-1.9-1.rhel4.novell.i386.rpm > > and it gave me > > error: Failed dependencies: > > libexif.so.9 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 > > libglib-2.0.so.0 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 > > libjpeg.so.62 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 > > libpng12.so.0 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 > > libtiff.so.3 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 > > libungif.so.4 is needed by libgdiplus0-1.9-1.rhel4.novell.i386 > > > > I verified I had a libexif rpm installed and found > libexif-0.5.12-5.1.0.2. > > The I searched and found /usr/lib64/libexif.so.9 installed. > > > > Is this an issue x86_64 issue where I cannot use the downloaded rpms > > with this architecture? > > > > It seems you are installing 32bit mono packages on a 64bit system and > those packages require 32bit dependencies and not their 64bit > equivalents. > > -- > Kind Regards, > Ivan N. Zlatev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080903/bf305c9a/attachment.html From dan.shryock at gmail.com Wed Sep 3 17:37:54 2008 From: dan.shryock at gmail.com (Dan Shryock) Date: Wed, 3 Sep 2008 14:37:54 -0700 Subject: [Mono-list] using gmcs and C# 3.0 features without requiring System.Core.dll Message-ID: <5fe9674f0809031437r6718eab9m7c3790e8b9e9a6c9@mail.gmail.com> Hi All, I'm working on a project which is using some C# 3.0 features, but I am hoping to target the .NET 2.0 runtime on windows. >From what I have read[1] I should be able to add my own implementations of the few types I need. My real question is how do I stop gmcs from adding references to System.Core.dll, and instead use my implementations of those types? The types I have added to enable extension methods, and generic Func, and Action delegates are below: namespace System{ public delegate void Action(T1 t1); public delegate void Action(T1 t1,T2 t2); public delegate void Action(T1 t1,T2 t2,T3 t3); public delegate void Action(T1 t1,T2 t2,T3 t3,T4 t4); public delegate R Func(); public delegate R Func(T1 t1); public delegate R Func(T1 t1,T2 t2); public delegate R Func(T1 t1,T2 t2,T3 t3); public delegate R Func(T1 t1,T2 t2,T3 t3,T4 t4); } namespace System.Runtime.CompilerServices{ public class ExtensionAttribute:Attribute{} } Thanks for any help you can give. Dan [1] http://www.danielmoth.com/Blog/2007/05/using-extension-methods-in-fx-20.html From kumpera at gmail.com Wed Sep 3 17:45:59 2008 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Wed, 3 Sep 2008 18:45:59 -0300 Subject: [Mono-list] using gmcs and C# 3.0 features without requiring System.Core.dll In-Reply-To: <5fe9674f0809031437r6718eab9m7c3790e8b9e9a6c9@mail.gmail.com> References: <5fe9674f0809031437r6718eab9m7c3790e8b9e9a6c9@mail.gmail.com> Message-ID: <8cca42d80809031445g6704d5c3l4be8cc545072f3b4@mail.gmail.com> You need to build a fake System.Core.dll with just these types. Most probably you can just take mono's System.Core.dll. On Wed, Sep 3, 2008 at 6:37 PM, Dan Shryock wrote: > Hi All, > > I'm working on a project which is using some C# 3.0 features, but I am > hoping to target the .NET 2.0 runtime on windows. > > >From what I have read[1] I should be able to add my own > implementations of the few types I need. > > My real question is how do I stop gmcs from adding references to > System.Core.dll, and instead use my implementations of those types? > > The types I have added to enable extension methods, and generic Func, > and Action delegates are below: > > namespace System{ > public delegate void Action(T1 t1); > public delegate void Action(T1 t1,T2 t2); > public delegate void Action(T1 t1,T2 t2,T3 t3); > public delegate void Action(T1 t1,T2 t2,T3 t3,T4 t4); > public delegate R Func(); > public delegate R Func(T1 t1); > public delegate R Func(T1 t1,T2 t2); > public delegate R Func(T1 t1,T2 t2,T3 t3); > public delegate R Func(T1 t1,T2 t2,T3 t3,T4 t4); > } > namespace System.Runtime.CompilerServices{ > public class ExtensionAttribute:Attribute{} > } > > Thanks for any help you can give. > > Dan > > > > [1] > http://www.danielmoth.com/Blog/2007/05/using-extension-methods-in-fx-20.html > _______________________________________________ > 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/20080903/c041c83f/attachment.html From kumpera at gmail.com Wed Sep 3 17:57:05 2008 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Wed, 3 Sep 2008 18:57:05 -0300 Subject: [Mono-list] using gmcs and C# 3.0 features without requiring System.Core.dll In-Reply-To: <5fe9674f0809031452y5e797277i89aa68fd38bc3eea@mail.gmail.com> References: <5fe9674f0809031437r6718eab9m7c3790e8b9e9a6c9@mail.gmail.com> <8cca42d80809031445g6704d5c3l4be8cc545072f3b4@mail.gmail.com> <5fe9674f0809031452y5e797277i89aa68fd38bc3eea@mail.gmail.com> Message-ID: <8cca42d80809031457h3b85220fv52ea64a0f1629a8c@mail.gmail.com> Mono's System.Core is licensed under MIT-X11. I'm not sure about its dependencies, you should ask Marek Safar or JB Evain, as they did a lot of work on it. Cheers, Rodrigo On Wed, Sep 3, 2008 at 6:52 PM, Dan Shryock wrote: > On Wed, Sep 3, 2008 at 2:45 PM, Rodrigo Kumpera wrote: > > You need to build a fake System.Core.dll with just these types. > > > > Most probably you can just take mono's System.Core.dll. > > Does anybody know what the licensing is for mono's System.Core.dll > (mit/gpl/lgpl)? > > Does anybody know if mono's System.Core.dll has any external dependencies? > > Thanks, > > Dan > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080903/460d0ff7/attachment.html From dan.shryock at gmail.com Wed Sep 3 18:19:07 2008 From: dan.shryock at gmail.com (Dan Shryock) Date: Wed, 3 Sep 2008 15:19:07 -0700 Subject: [Mono-list] using gmcs and C# 3.0 features without requiring System.Core.dll In-Reply-To: <8cca42d80809031457h3b85220fv52ea64a0f1629a8c@mail.gmail.com> References: <5fe9674f0809031437r6718eab9m7c3790e8b9e9a6c9@mail.gmail.com> <8cca42d80809031445g6704d5c3l4be8cc545072f3b4@mail.gmail.com> <5fe9674f0809031452y5e797277i89aa68fd38bc3eea@mail.gmail.com> <8cca42d80809031457h3b85220fv52ea64a0f1629a8c@mail.gmail.com> Message-ID: <5fe9674f0809031519h35ec7fb5sbdcf079c51516331@mail.gmail.com> On Wed, Sep 3, 2008 at 2:57 PM, Rodrigo Kumpera wrote: > Mono's System.Core is licensed under MIT-X11. > > I'm not sure about its dependencies, you should ask Marek Safar or JB Evain, > as they > did a lot of work on it. I just downloaded .NET Reflector to look at mono's System.Core.dll, and it only appears to have one dependency on mscorlib, so that shouldn't be a problem. I just copied the System.Core.dll from my linux install of mono to a windows machine with .net 2.0 and when I tried to start my application, I received the following: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) File name: 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c 561934e089' ---> System.Security.SecurityException: Strong name validation faile d. (Exception from HRESULT: 0x8013141A) The Zone of the assembly that failed was: MyComputer EntryPoint.Usage(String message, String stacktrace) at EntryPoint.Main(String[] args) I'm not very familiar with strong naming (I did it once years ago to get something in the gac, and haven't looked at it much since), so does anybody have any ideas on how to resolve this issue? Thanks. Dan From monodanmorg at yahoo.com Thu Sep 4 03:38:31 2008 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Thu, 4 Sep 2008 00:38:31 -0700 (PDT) Subject: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono In-Reply-To: <19285959.post@talk.nabble.com> Message-ID: <178132.92535.qm@web30805.mail.mud.yahoo.com> Ok. I fixed your bug. I just committed it to svn trunk. It was revision 112250. The bug was with an output parameter that is a ref cursor from a stored procedure when calling ExecuteReader. ExecuteReader is used by DbDataAdapter to fill a DataSet. --- On Wed, 9/3/08, sumesh0710 wrote: > From: sumesh0710 > Subject: Re: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono > To: mono-list at lists.ximian.com > Date: Wednesday, September 3, 2008, 5:37 AM > Thanks for the reply. I tried using execute reader, but the > outputparameter > value was null. In my case I used > > cmdSp = New OracleCommand("test", con) > cmdSp.CommandType = CommandType.StoredProcedure > I will try as ur code. Is your mono version is latest? I > saw in release > notes of mono 1.9.1, that there is ref cursor support, > which means no cursor > support in previous versions? > > > Daniel Morgan-3 wrote: > > > > DbDataAdapter uses ExecuteReader and the returned > reader to populate the > > data table. If you try your example with > ExecuteReader and then try to > > get the data reader from the parameter, it will fail > because you will have > > DBNull.Value. At least this is what you get on .net > 2.0. > > > > My advice is to use ExecuteNonQuery(), then get the > data reader from the > > parameter. Then manually load a data table. > > > > Here is an example that works for me on .net 2.0 and > mono: > > > > // test.cs > > // gmcs test.cs /r:System.Data.dll > /r:System.Data.OracleClient.dll > > using System; > > using System.Data; > > using System.Data.Common; > > using System.Data.OracleClient; > > > > public class test > > { > > public static void Main(string[] args) > > { > > Console.WriteLine("Start."); > > OracleConnection con = new > OracleConnection("Data > > source=testdb;user > id=someuser;password=somepass"); > > con.Open(); > > OracleCommand cmdSp = con.CreateCommand(); > > cmdSp.CommandText = "BEGIN\n > SP_TEST_REF_CURSOR(:crsdata); > > \nEND;\n"; > > DataSet ds = new DataSet(); > > OracleParameter oprCursor = new > OracleParameter("crsdata", > > OracleType.Cursor); > > oprCursor.Direction = > ParameterDirection.Output; > > cmdSp.Parameters.Add(oprCursor); > > > > cmdSp.ExecuteNonQuery(); > > > > OracleDataReader reader = > (OracleDataReader)oprCursor.Value; > > > > Console.WriteLine("Build DataSet from reader > that holds a REF CURSOR"); > > > > DataTable schema = reader.GetSchemaTable(); > > DataTable newTable = new DataTable(); > > if (reader.FieldCount > 0) > > { > > foreach (DataRow row in schema.Rows) > > { > > string columnName = > row["ColumnName"].ToString(); > > Type columnType = > (Type)row["DataType"]; > > newTable.Columns.Add(columnName, > columnType); > > } > > while (reader.Read()) > > { > > object[] values = new > object[newTable.Columns.Count]; > > reader.GetValues(values); > > newTable.Rows.Add(values); > > } > > } > > > > reader.Close(); > > > > Console.WriteLine("Add DataTable to > DataSet"); > > ds.Tables.Add(newTable); > > > > Console.WriteLine("Show Result"); > > Console.WriteLine("Columns in > DataTable"); > > foreach (DataColumn column in > ds.Tables[0].Columns) > > { > > Console.WriteLine(" ColumnName: > " + column.ColumnName); > > Console.WriteLine(" DataType: > " + > > column.DataType.ToString()); > > } > > Console.WriteLine("Rows in > DataTable"); > > foreach (DataRow row in ds.Tables[0].Rows) > > { > > for (int c = 0; c < > ds.Tables[0].Columns.Count; c++) > > { > > Console.WriteLine("Column " > + c.ToString()); > > if (row[c].Equals(DBNull.Value)) > > Console.WriteLine(" Value > is DBNull.Value"); > > else > > { > > Console.WriteLine(" > Value: " + row[c].ToString()); > > Console.WriteLine(" Value > Type: " + > > row[c].GetType().ToString()); > > } > > } > > } > > > > con.Close(); > > con = null; > > Console.WriteLine("Success!"); > > } > > } > > > > > > > > > > > > > > --- On Tue, 9/2/08, sumesh0710 > wrote: > > > >> From: sumesh0710 > >> Subject: [Mono-list] re f cursor issue in oracle > stored procedure invoked > >> from mono > >> To: mono-list at lists.ximian.com > >> Date: Tuesday, September 2, 2008, 10:27 AM > >> Hi, > >> OS - Linux Version 2.6.9-42.0.0.0.1( Red hat > version > >> 3.4.6-3.1) > >> Oracle - 9.2.0 > >> mono - 1.2.4 > >> > >> I have a simple procedure which has a ref cursor > as > >> parameter as follows. > >> > >> CREATE OR REPLACE PROCEDURE > >> "DARSTRAN"."TEST" (crsdata out > >> sys_refcursor) > >> as > >> > >> BEGIN > >> open crsdata for select sysdate from dual; > >> END; > >> > >> If i execute this from proc from sql plus. It > works fine. > >> Also in windows > >> OS, if i call from an application developed in > vb.net it > >> will work. But same > >> code executed in mono in Linux OS shows below > error while > >> filling into > >> dataset. > >> ora- 01403: no data found. > >> > >> Code used is > >> > >> cmdSp = New OracleCommand("test", con) > >> cmdSp.CommandType = CommandType.StoredProcedure > >> ds = New DataSet > >> oprCursor = New > OracleParameter("crsdata", > >> OracleType.Cursor) > >> oprCursor.Direction = ParameterDirection.Output > >> cmdSp.Parameters.Add(oprCursor) > >> dasp = New OracleDataAdapter(cmdSp) > >> dasp.Fill(ds) > >> > >> If i execute above SP from linux sql plus, also it > works > >> ok. > >> > >> Is there any workaround to solve this problem? > >> -- > >> View this message in context: > >> > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19271280.html > >> Sent from the Mono - General mailing list archive > at > >> Nabble.com. > >> > >> _______________________________________________ > >> Mono-list maillist - Mono-list at lists.ximian.com > >> http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > -- > View this message in context: > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19285959.html > Sent from the Mono - General mailing list archive at > Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From ildar at users.sourceforge.net Thu Sep 4 06:43:22 2008 From: ildar at users.sourceforge.net (Ildar Mulyukov) Date: Thu, 04 Sep 2008 16:43:22 +0600 Subject: [Mono-list] mono-debugger: Help AGAIN! EXCEPTION: Mono.Debugger.TargetException: Unsupported `mono' executable Message-ID: <1220525002.15808.15@ildar.innovations.kz> Hello, folks! I am trying mono and mono-debugger version 2.0 pre1 As last time, I get this ugly: $ mono mdb.exe mdb-symbolreader.exe?Mono Debugger (mdb) r Starting program: mdb-symbolreader.exeEXCEPTION: Mono.Debugger.TargetException: Unsupported `mono' executable: /usr/bin/mono at Mono.Debugger.Backend.ProcessServant.Initialize (Mono.Debugger.Backend.SingleSteppingEngine engine, Mono.Debugger.Backend.Inferior inferior, Boolean is_exec) [0x00000] at (wrapper remoting-invoke-with-check) Mono.Debugger.Backend.ProcessServant:Initialize (Mono.Debugger.Backend.SingleSteppingEngine,Mono.Debugger.Backend.Inferior,bool) I doublechecked that both mono and mdb imply the same public const int MajorVersion = 50; public const int MinorVersion = 0; public const long Magic = 0x45e82623fd7fa614; I have no clue now. Robert, anyone, can you give me a hint how to find what goes wrong? And why? Thanks in advance, Ildar -- Ildar Mulyukov, free SW designer/programmer ================================================ email: ildar at users.sourceforge.net home: http://tuganger.narod.ru/ ALT Linux Sisyphus ================================================ From twiest at novell.com Thu Sep 4 12:50:40 2008 From: twiest at novell.com (Thomas Wiest) Date: Thu, 04 Sep 2008 10:50:40 -0600 Subject: [Mono-list] Anonymous svn access... Message-ID: <48C011E0.6040901@novell.com> Hey Guys, We recently upgraded anonsvn.mono-project.com and as part of the upgrade we've decided to disable dav_svn access. So, the only ways to access anonsvn now are through svn:// and viewvc. For more information, please see our anonsvn wiki page: http://mono-project.com/AnonSVN Sorry for any inconvenience this may cause, Thomas From ajorgensen at novell.com Thu Sep 4 14:43:59 2008 From: ajorgensen at novell.com (Andrew Jorgensen) Date: Thu, 04 Sep 2008 12:43:59 -0600 Subject: [Mono-list] [Mono-dev] Anonymous svn access... Message-ID: <48BFD80F020000400003B82D@lucius.provo.novell.com> It's easy and cheap to switch to svn://, just use svn switch --relocate. I don't have an anonymous checkout to test this on but it should be something like: svn switch --relocate http://anonsvn.mono-project.com/source svn://anonsvn.mono-project.com/source This performs the switch using URL rewriting. It should not muck with any local changes you have. Please see http://svnbook.red-bean.com/en/1.4/svn.ref.svn.c.switch.html for more details. The main rationale for removing dav_svn are security (one less vector) and bandwith / io load. dav_svn is an extremely chatty protocol. In our experience the native svn protocol is much faster and puts less load on the server. We hope the transition will be mostly painless. We understand that some pain is inevitable. >>> Thomas Wiest 09/04/08 10:50 AM >>> Hey Guys, We recently upgraded anonsvn.mono-project.com and as part of the upgrade we've decided to disable dav_svn access. So, the only ways to access anonsvn now are through svn:// and viewvc. For more information, please see our anonsvn wiki page: http://mono-project.com/AnonSVN Sorry for any inconvenience this may cause, Thomas _______________________________________________ Mono-devel-list mailing list Mono-devel-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list From sumeshjose at gmail.com Thu Sep 4 15:15:01 2008 From: sumeshjose at gmail.com (sumesh0710) Date: Thu, 4 Sep 2008 12:15:01 -0700 (PDT) Subject: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono In-Reply-To: <178132.92535.qm@web30805.mail.mud.yahoo.com> References: <19271280.post@talk.nabble.com> <947179.74630.qm@web30806.mail.mud.yahoo.com> <19285959.post@talk.nabble.com> <178132.92535.qm@web30805.mail.mud.yahoo.com> Message-ID: <19317995.post@talk.nabble.com> Really!!..but how do i make work this stuff in my machine? What is svn?.I am a newbie. Daniel Morgan-3 wrote: > > Ok. I fixed your bug. I just committed it to svn trunk. It was revision > 112250. > > The bug was with an output parameter that is a ref cursor from a stored > procedure when calling ExecuteReader. ExecuteReader is used by > DbDataAdapter to fill a DataSet. > > --- On Wed, 9/3/08, sumesh0710 wrote: > >> From: sumesh0710 >> Subject: Re: [Mono-list] re f cursor issue in oracle stored procedure >> invoked from mono >> To: mono-list at lists.ximian.com >> Date: Wednesday, September 3, 2008, 5:37 AM >> Thanks for the reply. I tried using execute reader, but the >> outputparameter >> value was null. In my case I used >> >> cmdSp = New OracleCommand("test", con) >> cmdSp.CommandType = CommandType.StoredProcedure >> I will try as ur code. Is your mono version is latest? I >> saw in release >> notes of mono 1.9.1, that there is ref cursor support, >> which means no cursor >> support in previous versions? >> >> >> Daniel Morgan-3 wrote: >> > >> > DbDataAdapter uses ExecuteReader and the returned >> reader to populate the >> > data table. If you try your example with >> ExecuteReader and then try to >> > get the data reader from the parameter, it will fail >> because you will have >> > DBNull.Value. At least this is what you get on .net >> 2.0. >> > >> > My advice is to use ExecuteNonQuery(), then get the >> data reader from the >> > parameter. Then manually load a data table. >> > >> > Here is an example that works for me on .net 2.0 and >> mono: >> > >> > // test.cs >> > // gmcs test.cs /r:System.Data.dll >> /r:System.Data.OracleClient.dll >> > using System; >> > using System.Data; >> > using System.Data.Common; >> > using System.Data.OracleClient; >> > >> > public class test >> > { >> > public static void Main(string[] args) >> > { >> > Console.WriteLine("Start."); >> > OracleConnection con = new >> OracleConnection("Data >> > source=testdb;user >> id=someuser;password=somepass"); >> > con.Open(); >> > OracleCommand cmdSp = con.CreateCommand(); >> > cmdSp.CommandText = "BEGIN\n >> SP_TEST_REF_CURSOR(:crsdata); >> > \nEND;\n"; >> > DataSet ds = new DataSet(); >> > OracleParameter oprCursor = new >> OracleParameter("crsdata", >> > OracleType.Cursor); >> > oprCursor.Direction = >> ParameterDirection.Output; >> > cmdSp.Parameters.Add(oprCursor); >> > >> > cmdSp.ExecuteNonQuery(); >> > >> > OracleDataReader reader = >> (OracleDataReader)oprCursor.Value; >> > >> > Console.WriteLine("Build DataSet from reader >> that holds a REF CURSOR"); >> > >> > DataTable schema = reader.GetSchemaTable(); >> > DataTable newTable = new DataTable(); >> > if (reader.FieldCount > 0) >> > { >> > foreach (DataRow row in schema.Rows) >> > { >> > string columnName = >> row["ColumnName"].ToString(); >> > Type columnType = >> (Type)row["DataType"]; >> > newTable.Columns.Add(columnName, >> columnType); >> > } >> > while (reader.Read()) >> > { >> > object[] values = new >> object[newTable.Columns.Count]; >> > reader.GetValues(values); >> > newTable.Rows.Add(values); >> > } >> > } >> > >> > reader.Close(); >> > >> > Console.WriteLine("Add DataTable to >> DataSet"); >> > ds.Tables.Add(newTable); >> > >> > Console.WriteLine("Show Result"); >> > Console.WriteLine("Columns in >> DataTable"); >> > foreach (DataColumn column in >> ds.Tables[0].Columns) >> > { >> > Console.WriteLine(" ColumnName: >> " + column.ColumnName); >> > Console.WriteLine(" DataType: >> " + >> > column.DataType.ToString()); >> > } >> > Console.WriteLine("Rows in >> DataTable"); >> > foreach (DataRow row in ds.Tables[0].Rows) >> > { >> > for (int c = 0; c < >> ds.Tables[0].Columns.Count; c++) >> > { >> > Console.WriteLine("Column " >> + c.ToString()); >> > if (row[c].Equals(DBNull.Value)) >> > Console.WriteLine(" Value >> is DBNull.Value"); >> > else >> > { >> > Console.WriteLine(" >> Value: " + row[c].ToString()); >> > Console.WriteLine(" Value >> Type: " + >> > row[c].GetType().ToString()); >> > } >> > } >> > } >> > >> > con.Close(); >> > con = null; >> > Console.WriteLine("Success!"); >> > } >> > } >> > >> > >> > >> > >> > >> > >> > --- On Tue, 9/2/08, sumesh0710 >> wrote: >> > >> >> From: sumesh0710 >> >> Subject: [Mono-list] re f cursor issue in oracle >> stored procedure invoked >> >> from mono >> >> To: mono-list at lists.ximian.com >> >> Date: Tuesday, September 2, 2008, 10:27 AM >> >> Hi, >> >> OS - Linux Version 2.6.9-42.0.0.0.1( Red hat >> version >> >> 3.4.6-3.1) >> >> Oracle - 9.2.0 >> >> mono - 1.2.4 >> >> >> >> I have a simple procedure which has a ref cursor >> as >> >> parameter as follows. >> >> >> >> CREATE OR REPLACE PROCEDURE >> >> "DARSTRAN"."TEST" (crsdata out >> >> sys_refcursor) >> >> as >> >> >> >> BEGIN >> >> open crsdata for select sysdate from dual; >> >> END; >> >> >> >> If i execute this from proc from sql plus. It >> works fine. >> >> Also in windows >> >> OS, if i call from an application developed in >> vb.net it >> >> will work. But same >> >> code executed in mono in Linux OS shows below >> error while >> >> filling into >> >> dataset. >> >> ora- 01403: no data found. >> >> >> >> Code used is >> >> >> >> cmdSp = New OracleCommand("test", con) >> >> cmdSp.CommandType = CommandType.StoredProcedure >> >> ds = New DataSet >> >> oprCursor = New >> OracleParameter("crsdata", >> >> OracleType.Cursor) >> >> oprCursor.Direction = ParameterDirection.Output >> >> cmdSp.Parameters.Add(oprCursor) >> >> dasp = New OracleDataAdapter(cmdSp) >> >> dasp.Fill(ds) >> >> >> >> If i execute above SP from linux sql plus, also it >> works >> >> ok. >> >> >> >> Is there any workaround to solve this problem? >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19271280.html >> >> Sent from the Mono - General mailing list archive >> at >> >> Nabble.com. >> >> >> >> _______________________________________________ >> >> Mono-list maillist - Mono-list at lists.ximian.com >> >> http://lists.ximian.com/mailman/listinfo/mono-list >> > >> > >> > >> > _______________________________________________ >> > Mono-list maillist - Mono-list at lists.ximian.com >> > http://lists.ximian.com/mailman/listinfo/mono-list >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19285959.html >> Sent from the Mono - General mailing list archive at >> Nabble.com. >> >> _______________________________________________ >> Mono-list maillist - Mono-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list > > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19317995.html Sent from the Mono - General mailing list archive at Nabble.com. From nagappan at gmail.com Thu Sep 4 16:20:41 2008 From: nagappan at gmail.com (Nagappan A) Date: Thu, 4 Sep 2008 13:20:41 -0700 Subject: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono In-Reply-To: <19317995.post@talk.nabble.com> References: <19271280.post@talk.nabble.com> <947179.74630.qm@web30806.mail.mud.yahoo.com> <19285959.post@talk.nabble.com> <178132.92535.qm@web30805.mail.mud.yahoo.com> <19317995.post@talk.nabble.com> Message-ID: <9d0602eb0809041320r53645d4cwf45697213392bfd6@mail.gmail.com> Hello, Some reference for you: http://www.mono-project.com/AnonSVN http://subversion.tigris.org/ Thanks Nagappan On Thu, Sep 4, 2008 at 12:15 PM, sumesh0710 wrote: > > Really!!..but how do i make work this stuff in my machine? What is svn?.I > am > a newbie. > > > Daniel Morgan-3 wrote: > > > > Ok. I fixed your bug. I just committed it to svn trunk. It was > revision > > 112250. > > > > The bug was with an output parameter that is a ref cursor from a stored > > procedure when calling ExecuteReader. ExecuteReader is used by > > DbDataAdapter to fill a DataSet. > > > > --- On Wed, 9/3/08, sumesh0710 wrote: > > > >> From: sumesh0710 > >> Subject: Re: [Mono-list] re f cursor issue in oracle stored procedure > >> invoked from mono > >> To: mono-list at lists.ximian.com > >> Date: Wednesday, September 3, 2008, 5:37 AM > >> Thanks for the reply. I tried using execute reader, but the > >> outputparameter > >> value was null. In my case I used > >> > >> cmdSp = New OracleCommand("test", con) > >> cmdSp.CommandType = CommandType.StoredProcedure > >> I will try as ur code. Is your mono version is latest? I > >> saw in release > >> notes of mono 1.9.1, that there is ref cursor support, > >> which means no cursor > >> support in previous versions? > >> > >> > >> Daniel Morgan-3 wrote: > >> > > >> > DbDataAdapter uses ExecuteReader and the returned > >> reader to populate the > >> > data table. If you try your example with > >> ExecuteReader and then try to > >> > get the data reader from the parameter, it will fail > >> because you will have > >> > DBNull.Value. At least this is what you get on .net > >> 2.0. > >> > > >> > My advice is to use ExecuteNonQuery(), then get the > >> data reader from the > >> > parameter. Then manually load a data table. > >> > > >> > Here is an example that works for me on .net 2.0 and > >> mono: > >> > > >> > // test.cs > >> > // gmcs test.cs /r:System.Data.dll > >> /r:System.Data.OracleClient.dll > >> > using System; > >> > using System.Data; > >> > using System.Data.Common; > >> > using System.Data.OracleClient; > >> > > >> > public class test > >> > { > >> > public static void Main(string[] args) > >> > { > >> > Console.WriteLine("Start."); > >> > OracleConnection con = new > >> OracleConnection("Data > >> > source=testdb;user > >> id=someuser;password=somepass"); > >> > con.Open(); > >> > OracleCommand cmdSp = con.CreateCommand(); > >> > cmdSp.CommandText = "BEGIN\n > >> SP_TEST_REF_CURSOR(:crsdata); > >> > \nEND;\n"; > >> > DataSet ds = new DataSet(); > >> > OracleParameter oprCursor = new > >> OracleParameter("crsdata", > >> > OracleType.Cursor); > >> > oprCursor.Direction = > >> ParameterDirection.Output; > >> > cmdSp.Parameters.Add(oprCursor); > >> > > >> > cmdSp.ExecuteNonQuery(); > >> > > >> > OracleDataReader reader = > >> (OracleDataReader)oprCursor.Value; > >> > > >> > Console.WriteLine("Build DataSet from reader > >> that holds a REF CURSOR"); > >> > > >> > DataTable schema = reader.GetSchemaTable(); > >> > DataTable newTable = new DataTable(); > >> > if (reader.FieldCount > 0) > >> > { > >> > foreach (DataRow row in schema.Rows) > >> > { > >> > string columnName = > >> row["ColumnName"].ToString(); > >> > Type columnType = > >> (Type)row["DataType"]; > >> > newTable.Columns.Add(columnName, > >> columnType); > >> > } > >> > while (reader.Read()) > >> > { > >> > object[] values = new > >> object[newTable.Columns.Count]; > >> > reader.GetValues(values); > >> > newTable.Rows.Add(values); > >> > } > >> > } > >> > > >> > reader.Close(); > >> > > >> > Console.WriteLine("Add DataTable to > >> DataSet"); > >> > ds.Tables.Add(newTable); > >> > > >> > Console.WriteLine("Show Result"); > >> > Console.WriteLine("Columns in > >> DataTable"); > >> > foreach (DataColumn column in > >> ds.Tables[0].Columns) > >> > { > >> > Console.WriteLine(" ColumnName: > >> " + column.ColumnName); > >> > Console.WriteLine(" DataType: > >> " + > >> > column.DataType.ToString()); > >> > } > >> > Console.WriteLine("Rows in > >> DataTable"); > >> > foreach (DataRow row in ds.Tables[0].Rows) > >> > { > >> > for (int c = 0; c < > >> ds.Tables[0].Columns.Count; c++) > >> > { > >> > Console.WriteLine("Column " > >> + c.ToString()); > >> > if (row[c].Equals(DBNull.Value)) > >> > Console.WriteLine(" Value > >> is DBNull.Value"); > >> > else > >> > { > >> > Console.WriteLine(" > >> Value: " + row[c].ToString()); > >> > Console.WriteLine(" Value > >> Type: " + > >> > row[c].GetType().ToString()); > >> > } > >> > } > >> > } > >> > > >> > con.Close(); > >> > con = null; > >> > Console.WriteLine("Success!"); > >> > } > >> > } > >> > > >> > > >> > > >> > > >> > > >> > > >> > --- On Tue, 9/2/08, sumesh0710 > >> wrote: > >> > > >> >> From: sumesh0710 > >> >> Subject: [Mono-list] re f cursor issue in oracle > >> stored procedure invoked > >> >> from mono > >> >> To: mono-list at lists.ximian.com > >> >> Date: Tuesday, September 2, 2008, 10:27 AM > >> >> Hi, > >> >> OS - Linux Version 2.6.9-42.0.0.0.1( Red hat > >> version > >> >> 3.4.6-3.1) > >> >> Oracle - 9.2.0 > >> >> mono - 1.2.4 > >> >> > >> >> I have a simple procedure which has a ref cursor > >> as > >> >> parameter as follows. > >> >> > >> >> CREATE OR REPLACE PROCEDURE > >> >> "DARSTRAN"."TEST" (crsdata out > >> >> sys_refcursor) > >> >> as > >> >> > >> >> BEGIN > >> >> open crsdata for select sysdate from dual; > >> >> END; > >> >> > >> >> If i execute this from proc from sql plus. It > >> works fine. > >> >> Also in windows > >> >> OS, if i call from an application developed in > >> vb.net it > >> >> will work. But same > >> >> code executed in mono in Linux OS shows below > >> error while > >> >> filling into > >> >> dataset. > >> >> ora- 01403: no data found. > >> >> > >> >> Code used is > >> >> > >> >> cmdSp = New OracleCommand("test", con) > >> >> cmdSp.CommandType = CommandType.StoredProcedure > >> >> ds = New DataSet > >> >> oprCursor = New > >> OracleParameter("crsdata", > >> >> OracleType.Cursor) > >> >> oprCursor.Direction = ParameterDirection.Output > >> >> cmdSp.Parameters.Add(oprCursor) > >> >> dasp = New OracleDataAdapter(cmdSp) > >> >> dasp.Fill(ds) > >> >> > >> >> If i execute above SP from linux sql plus, also it > >> works > >> >> ok. > >> >> > >> >> Is there any workaround to solve this problem? > >> >> -- > >> >> View this message in context: > >> >> > >> > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19271280.html > >> >> Sent from the Mono - General mailing list archive > >> at > >> >> Nabble.com. > >> >> > >> >> _______________________________________________ > >> >> Mono-list maillist - Mono-list at lists.ximian.com > >> >> http://lists.ximian.com/mailman/listinfo/mono-list > >> > > >> > > >> > > >> > _______________________________________________ > >> > Mono-list maillist - Mono-list at lists.ximian.com > >> > http://lists.ximian.com/mailman/listinfo/mono-list > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19285959.html > >> Sent from the Mono - General mailing list archive at > >> Nabble.com. > >> > >> _______________________________________________ > >> Mono-list maillist - Mono-list at lists.ximian.com > >> http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > -- > View this message in context: > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19317995.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080904/386d1c72/attachment-0001.html From monodanmorg at yahoo.com Thu Sep 4 16:40:33 2008 From: monodanmorg at yahoo.com (Daniel Morgan) Date: Thu, 4 Sep 2008 13:40:33 -0700 (PDT) Subject: [Mono-list] Approving Patches for Mono 2.0 Branch In-Reply-To: <19317995.post@talk.nabble.com> Message-ID: <100172.83978.qm@web30804.mail.mud.yahoo.com> Mono's wiki has a good explanation. Basically, it is our source code management. When I say trunk, I mean the latest. Then Mono project has an anonymous subversion server which allows anyway to check out code. http://www.mono-project.com/SVN I suppose I should backport my fixes to the Mono 2.0 branch. I don't know how to do that. Nor do I know who to ask for approval for my patches. --- On Thu, 9/4/08, sumesh0710 wrote: > From: sumesh0710 > Subject: Re: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono > To: mono-list at lists.ximian.com > Date: Thursday, September 4, 2008, 3:15 PM > Really!!..but how do i make work this stuff in my machine? > What is svn?.I am > a newbie. > > > Daniel Morgan-3 wrote: > > > > Ok. I fixed your bug. I just committed it to svn > trunk. It was revision > > 112250. > > > > The bug was with an output parameter that is a ref > cursor from a stored > > procedure when calling ExecuteReader. ExecuteReader > is used by > > DbDataAdapter to fill a DataSet. > > > > --- On Wed, 9/3/08, sumesh0710 > wrote: > > > >> From: sumesh0710 > >> Subject: Re: [Mono-list] re f cursor issue in > oracle stored procedure > >> invoked from mono > >> To: mono-list at lists.ximian.com > >> Date: Wednesday, September 3, 2008, 5:37 AM > >> Thanks for the reply. I tried using execute > reader, but the > >> outputparameter > >> value was null. In my case I used > >> > >> cmdSp = New OracleCommand("test", con) > >> cmdSp.CommandType = CommandType.StoredProcedure > >> I will try as ur code. Is your mono version is > latest? I > >> saw in release > >> notes of mono 1.9.1, that there is ref cursor > support, > >> which means no cursor > >> support in previous versions? > >> > >> > >> Daniel Morgan-3 wrote: > >> > > >> > DbDataAdapter uses ExecuteReader and the > returned > >> reader to populate the > >> > data table. If you try your example with > >> ExecuteReader and then try to > >> > get the data reader from the parameter, it > will fail > >> because you will have > >> > DBNull.Value. At least this is what you get > on .net > >> 2.0. > >> > > >> > My advice is to use ExecuteNonQuery(), then > get the > >> data reader from the > >> > parameter. Then manually load a data table. > > >> > > >> > Here is an example that works for me on .net > 2.0 and > >> mono: > >> > > >> > // test.cs > >> > // gmcs test.cs /r:System.Data.dll > >> /r:System.Data.OracleClient.dll > >> > using System; > >> > using System.Data; > >> > using System.Data.Common; > >> > using System.Data.OracleClient; > >> > > >> > public class test > >> > { > >> > public static void Main(string[] args) > >> > { > >> > > Console.WriteLine("Start."); > >> > OracleConnection con = new > >> OracleConnection("Data > >> > source=testdb;user > >> id=someuser;password=somepass"); > >> > con.Open(); > >> > OracleCommand cmdSp = > con.CreateCommand(); > >> > cmdSp.CommandText = "BEGIN\n > >> SP_TEST_REF_CURSOR(:crsdata); > >> > \nEND;\n"; > >> > DataSet ds = new DataSet(); > >> > OracleParameter oprCursor = new > >> OracleParameter("crsdata", > >> > OracleType.Cursor); > >> > oprCursor.Direction = > >> ParameterDirection.Output; > >> > cmdSp.Parameters.Add(oprCursor); > >> > > >> > cmdSp.ExecuteNonQuery(); > >> > > >> > OracleDataReader reader = > >> (OracleDataReader)oprCursor.Value; > >> > > >> > Console.WriteLine("Build DataSet from > reader > >> that holds a REF CURSOR"); > >> > > >> > DataTable schema = reader.GetSchemaTable(); > >> > DataTable newTable = new DataTable(); > >> > if (reader.FieldCount > 0) > >> > { > >> > foreach (DataRow row in > schema.Rows) > >> > { > >> > string columnName = > >> row["ColumnName"].ToString(); > >> > Type columnType = > >> (Type)row["DataType"]; > >> > > newTable.Columns.Add(columnName, > >> columnType); > >> > } > >> > while (reader.Read()) > >> > { > >> > object[] values = new > >> object[newTable.Columns.Count]; > >> > reader.GetValues(values); > >> > newTable.Rows.Add(values); > >> > } > >> > } > >> > > >> > reader.Close(); > >> > > >> > Console.WriteLine("Add DataTable to > >> DataSet"); > >> > ds.Tables.Add(newTable); > >> > > >> > Console.WriteLine("Show Result"); > >> > Console.WriteLine("Columns in > >> DataTable"); > >> > foreach (DataColumn column in > >> ds.Tables[0].Columns) > >> > { > >> > Console.WriteLine(" > ColumnName: > >> " + column.ColumnName); > >> > Console.WriteLine(" > DataType: > >> " + > >> > column.DataType.ToString()); > >> > } > >> > Console.WriteLine("Rows in > >> DataTable"); > >> > foreach (DataRow row in > ds.Tables[0].Rows) > >> > { > >> > for (int c = 0; c < > >> ds.Tables[0].Columns.Count; c++) > >> > { > >> > > Console.WriteLine("Column " > >> + c.ToString()); > >> > if > (row[c].Equals(DBNull.Value)) > >> > Console.WriteLine(" > Value > >> is DBNull.Value"); > >> > else > >> > { > >> > Console.WriteLine(" > > >> Value: " + row[c].ToString()); > >> > Console.WriteLine(" > Value > >> Type: " + > >> > row[c].GetType().ToString()); > >> > } > >> > } > >> > } > >> > > >> > con.Close(); > >> > con = null; > >> > > Console.WriteLine("Success!"); > >> > } > >> > } > >> > > >> > > >> > > >> > > >> > > >> > > >> > --- On Tue, 9/2/08, sumesh0710 > >> wrote: > >> > > >> >> From: sumesh0710 > > >> >> Subject: [Mono-list] re f cursor issue in > oracle > >> stored procedure invoked > >> >> from mono > >> >> To: mono-list at lists.ximian.com > >> >> Date: Tuesday, September 2, 2008, 10:27 > AM > >> >> Hi, > >> >> OS - Linux Version 2.6.9-42.0.0.0.1( Red > hat > >> version > >> >> 3.4.6-3.1) > >> >> Oracle - 9.2.0 > >> >> mono - 1.2.4 > >> >> > >> >> I have a simple procedure which has a ref > cursor > >> as > >> >> parameter as follows. > >> >> > >> >> CREATE OR REPLACE PROCEDURE > >> >> "DARSTRAN"."TEST" > (crsdata out > >> >> sys_refcursor) > >> >> as > >> >> > >> >> BEGIN > >> >> open crsdata for select sysdate from > dual; > >> >> END; > >> >> > >> >> If i execute this from proc from sql > plus. It > >> works fine. > >> >> Also in windows > >> >> OS, if i call from an application > developed in > >> vb.net it > >> >> will work. But same > >> >> code executed in mono in Linux OS shows > below > >> error while > >> >> filling into > >> >> dataset. > >> >> ora- 01403: no data found. > >> >> > >> >> Code used is > >> >> > >> >> cmdSp = New > OracleCommand("test", con) > >> >> cmdSp.CommandType = > CommandType.StoredProcedure > >> >> ds = New DataSet > >> >> oprCursor = New > >> OracleParameter("crsdata", > >> >> OracleType.Cursor) > >> >> oprCursor.Direction = > ParameterDirection.Output > >> >> cmdSp.Parameters.Add(oprCursor) > >> >> dasp = New OracleDataAdapter(cmdSp) > >> >> dasp.Fill(ds) > >> >> > >> >> If i execute above SP from linux sql > plus, also it > >> works > >> >> ok. > >> >> > >> >> Is there any workaround to solve this > problem? > >> >> -- > >> >> View this message in context: > >> >> > >> > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19271280.html > >> >> Sent from the Mono - General mailing list > archive > >> at > >> >> Nabble.com. > >> >> > >> >> > _______________________________________________ > >> >> Mono-list maillist - > Mono-list at lists.ximian.com > >> >> > http://lists.ximian.com/mailman/listinfo/mono-list > >> > > >> > > >> > > >> > > _______________________________________________ > >> > Mono-list maillist - > Mono-list at lists.ximian.com > >> > > http://lists.ximian.com/mailman/listinfo/mono-list > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19285959.html > >> Sent from the Mono - General mailing list archive > at > >> Nabble.com. > >> > >> _______________________________________________ > >> Mono-list maillist - Mono-list at lists.ximian.com > >> http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > -- > View this message in context: > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19317995.html > Sent from the Mono - General mailing list archive at > Nabble.com. > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From vvaradhan at novell.com Thu Sep 4 17:10:34 2008 From: vvaradhan at novell.com (Veerapuram Varadhan) Date: Fri, 05 Sep 2008 02:40:34 +0530 Subject: [Mono-list] Approving Patches for Mono 2.0 Branch In-Reply-To: <100172.83978.qm@web30804.mail.mud.yahoo.com> References: <100172.83978.qm@web30804.mail.mud.yahoo.com> Message-ID: <1220562634.30767.31.camel@vvaradhan-lap.blr.novell.com> On Thu, 2008-09-04 at 13:40 -0700, Daniel Morgan wrote: > Mono's wiki has a good explanation. Basically, it is our source code management. When I say trunk, I mean the latest. Then Mono project has an anonymous subversion server which allows anyway to check out code. > > http://www.mono-project.com/SVN > > I suppose I should backport my fixes to the Mono 2.0 branch. I don't know how to do that. Nor do I know who to ask for approval for my patches. > I don't think you would have to backport, as nothing really changed between Mono 2.0 branch and trunk, except for all your fixes. I also left a message in IRC suggesting the same. :) Please commit your fixes to 2.0 branch as well. Thanks, V. Varadhan > > --- On Thu, 9/4/08, sumesh0710 wrote: > > > From: sumesh0710 > > Subject: Re: [Mono-list] re f cursor issue in oracle stored procedure invoked from mono > > To: mono-list at lists.ximian.com > > Date: Thursday, September 4, 2008, 3:15 PM > > Really!!..but how do i make work this stuff in my machine? > > What is svn?.I am > > a newbie. > > > > > > Daniel Morgan-3 wrote: > > > > > > Ok. I fixed your bug. I just committed it to svn > > trunk. It was revision > > > 112250. > > > > > > The bug was with an output parameter that is a ref > > cursor from a stored > > > procedure when calling ExecuteReader. ExecuteReader > > is used by > > > DbDataAdapter to fill a DataSet. > > > > > > --- On Wed, 9/3/08, sumesh0710 > > wrote: > > > > > >> From: sumesh0710 > > >> Subject: Re: [Mono-list] re f cursor issue in > > oracle stored procedure > > >> invoked from mono > > >> To: mono-list at lists.ximian.com > > >> Date: Wednesday, September 3, 2008, 5:37 AM > > >> Thanks for the reply. I tried using execute > > reader, but the > > >> outputparameter > > >> value was null. In my case I used > > >> > > >> cmdSp = New OracleCommand("test", con) > > >> cmdSp.CommandType = CommandType.StoredProcedure > > >> I will try as ur code. Is your mono version is > > latest? I > > >> saw in release > > >> notes of mono 1.9.1, that there is ref cursor > > support, > > >> which means no cursor > > >> support in previous versions? > > >> > > >> > > >> Daniel Morgan-3 wrote: > > >> > > > >> > DbDataAdapter uses ExecuteReader and the > > returned > > >> reader to populate the > > >> > data table. If you try your example with > > >> ExecuteReader and then try to > > >> > get the data reader from the parameter, it > > will fail > > >> because you will have > > >> > DBNull.Value. At least this is what you get > > on .net > > >> 2.0. > > >> > > > >> > My advice is to use ExecuteNonQuery(), then > > get the > > >> data reader from the > > >> > parameter. Then manually load a data table. > > > > >> > > > >> > Here is an example that works for me on .net > > 2.0 and > > >> mono: > > >> > > > >> > // test.cs > > >> > // gmcs test.cs /r:System.Data.dll > > >> /r:System.Data.OracleClient.dll > > >> > using System; > > >> > using System.Data; > > >> > using System.Data.Common; > > >> > using System.Data.OracleClient; > > >> > > > >> > public class test > > >> > { > > >> > public static void Main(string[] args) > > >> > { > > >> > > > Console.WriteLine("Start."); > > >> > OracleConnection con = new > > >> OracleConnection("Data > > >> > source=testdb;user > > >> id=someuser;password=somepass"); > > >> > con.Open(); > > >> > OracleCommand cmdSp = > > con.CreateCommand(); > > >> > cmdSp.CommandText = "BEGIN\n > > >> SP_TEST_REF_CURSOR(:crsdata); > > >> > \nEND;\n"; > > >> > DataSet ds = new DataSet(); > > >> > OracleParameter oprCursor = new > > >> OracleParameter("crsdata", > > >> > OracleType.Cursor); > > >> > oprCursor.Direction = > > >> ParameterDirection.Output; > > >> > cmdSp.Parameters.Add(oprCursor); > > >> > > > >> > cmdSp.ExecuteNonQuery(); > > >> > > > >> > OracleDataReader reader = > > >> (OracleDataReader)oprCursor.Value; > > >> > > > >> > Console.WriteLine("Build DataSet from > > reader > > >> that holds a REF CURSOR"); > > >> > > > >> > DataTable schema = reader.GetSchemaTable(); > > >> > DataTable newTable = new DataTable(); > > >> > if (reader.FieldCount > 0) > > >> > { > > >> > foreach (DataRow row in > > schema.Rows) > > >> > { > > >> > string columnName = > > >> row["ColumnName"].ToString(); > > >> > Type columnType = > > >> (Type)row["DataType"]; > > >> > > > newTable.Columns.Add(columnName, > > >> columnType); > > >> > } > > >> > while (reader.Read()) > > >> > { > > >> > object[] values = new > > >> object[newTable.Columns.Count]; > > >> > reader.GetValues(values); > > >> > newTable.Rows.Add(values); > > >> > } > > >> > } > > >> > > > >> > reader.Close(); > > >> > > > >> > Console.WriteLine("Add DataTable to > > >> DataSet"); > > >> > ds.Tables.Add(newTable); > > >> > > > >> > Console.WriteLine("Show Result"); > > >> > Console.WriteLine("Columns in > > >> DataTable"); > > >> > foreach (DataColumn column in > > >> ds.Tables[0].Columns) > > >> > { > > >> > Console.WriteLine(" > > ColumnName: > > >> " + column.ColumnName); > > >> > Console.WriteLine(" > > DataType: > > >> " + > > >> > column.DataType.ToString()); > > >> > } > > >> > Console.WriteLine("Rows in > > >> DataTable"); > > >> > foreach (DataRow row in > > ds.Tables[0].Rows) > > >> > { > > >> > for (int c = 0; c < > > >> ds.Tables[0].Columns.Count; c++) > > >> > { > > >> > > > Console.WriteLine("Column " > > >> + c.ToString()); > > >> > if > > (row[c].Equals(DBNull.Value)) > > >> > Console.WriteLine(" > > Value > > >> is DBNull.Value"); > > >> > else > > >> > { > > >> > Console.WriteLine(" > > > > >> Value: " + row[c].ToString()); > > >> > Console.WriteLine(" > > Value > > >> Type: " + > > >> > row[c].GetType().ToString()); > > >> > } > > >> > } > > >> > } > > >> > > > >> > con.Close(); > > >> > con = null; > > >> > > > Console.WriteLine("Success!"); > > >> > } > > >> > } > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > --- On Tue, 9/2/08, sumesh0710 > > >> wrote: > > >> > > > >> >> From: sumesh0710 > > > > >> >> Subject: [Mono-list] re f cursor issue in > > oracle > > >> stored procedure invoked > > >> >> from mono > > >> >> To: mono-list at lists.ximian.com > > >> >> Date: Tuesday, September 2, 2008, 10:27 > > AM > > >> >> Hi, > > >> >> OS - Linux Version 2.6.9-42.0.0.0.1( Red > > hat > > >> version > > >> >> 3.4.6-3.1) > > >> >> Oracle - 9.2.0 > > >> >> mono - 1.2.4 > > >> >> > > >> >> I have a simple procedure which has a ref > > cursor > > >> as > > >> >> parameter as follows. > > >> >> > > >> >> CREATE OR REPLACE PROCEDURE > > >> >> "DARSTRAN"."TEST" > > (crsdata out > > >> >> sys_refcursor) > > >> >> as > > >> >> > > >> >> BEGIN > > >> >> open crsdata for select sysdate from > > dual; > > >> >> END; > > >> >> > > >> >> If i execute this from proc from sql > > plus. It > > >> works fine. > > >> >> Also in windows > > >> >> OS, if i call from an application > > developed in > > >> vb.net it > > >> >> will work. But same > > >> >> code executed in mono in Linux OS shows > > below > > >> error while > > >> >> filling into > > >> >> dataset. > > >> >> ora- 01403: no data found. > > >> >> > > >> >> Code used is > > >> >> > > >> >> cmdSp = New > > OracleCommand("test", con) > > >> >> cmdSp.CommandType = > > CommandType.StoredProcedure > > >> >> ds = New DataSet > > >> >> oprCursor = New > > >> OracleParameter("crsdata", > > >> >> OracleType.Cursor) > > >> >> oprCursor.Direction = > > ParameterDirection.Output > > >> >> cmdSp.Parameters.Add(oprCursor) > > >> >> dasp = New OracleDataAdapter(cmdSp) > > >> >> dasp.Fill(ds) > > >> >> > > >> >> If i execute above SP from linux sql > > plus, also it > > >> works > > >> >> ok. > > >> >> > > >> >> Is there any workaround to solve this > > problem? > > >> >> -- > > >> >> View this message in context: > > >> >> > > >> > > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19271280.html > > >> >> Sent from the Mono - General mailing list > > archive > > >> at > > >> >> Nabble.com. > > >> >> > > >> >> > > _______________________________________________ > > >> >> Mono-list maillist - > > Mono-list at lists.ximian.com > > >> >> > > http://lists.ximian.com/mailman/listinfo/mono-list > > >> > > > >> > > > >> > > > >> > > > _______________________________________________ > > >> > Mono-list maillist - > > Mono-list at lists.ximian.com > > >> > > > http://lists.ximian.com/mailman/listinfo/mono-list > > >> > > > >> > > > >> > > >> -- > > >> View this message in context: > > >> > > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19285959.html > > >> Sent from the Mono - General mailing list archive > > at > > >> Nabble.com. > > >> > > >> _______________________________________________ > > >> Mono-list maillist - Mono-list at lists.ximian.com > > >> http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > > > > > > > _______________________________________________ > > > Mono-list maillist - Mono-list at lists.ximian.com > > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > > > > > > -- > > View this message in context: > > http://www.nabble.com/ref-cursor-issue-in-oracle-stored-procedure-invoked-from-mono-tp19271280p19317995.html > > Sent from the Mono - General mailing list archive at > > Nabble.com. > > > > _______________________________________________ > > Mono-list maillist - Mono-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > _______________________________________________ > Mono-list maillist - Mono-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list From steinar.herland at gmail.com Fri Sep 5 03:08:57 2008 From: steinar.herland at gmail.com (Steinar Herland) Date: Fri, 5 Sep 2008 09:08:57 +0200 Subject: [Mono-list] xsp2 1.9.1 is unable to run website build with VS2008 SP1 Message-ID: I'm the author of http://www.codeplex.com/geoCache, a open-source WMS Tile Caching (WMS-C) compliant server. geoCache is build using VS2008 SP1, and requires some parts of the 3.5 framework, and I'm trying to get this working on the upcoming Mono 2 version. Using mono-1.9.1-gtksharp-2.10.4-win32-2.exe on windows, I get this error: Parser Error Message: Assembly System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35 not found After removing all references to System.Web.Extensions in web.config, i get this error: Parser Error Message: Assembly System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089 not found Mono-version reported in both error-messages: Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42 I see that 1.9.1 *does* include System.Web.Extensions, yet it is not found :-S. It does however *not* include System.Data.DataSetExtension. Any tips on how to solve this? If you would like to test, geoCache can be downloaded from http://www.codeplex.com/geoCache/Release/ProjectReleases.aspx?ReleaseId=15121 Steinar From Yury at serdyuk.botik.ru Fri Sep 5 07:36:04 2008 From: Yury at serdyuk.botik.ru (Yury Serdyuk) Date: Fri, 05 Sep 2008 15:36:04 +0400 Subject: [Mono-list] Mono doesn't work on PowerPC Message-ID: <48C119A4.5000109@serdyuk.botik.ru> Hi ! I have proceed further trying to build Mono on ppc64 architecture. Problem is with compiling the following fragment of code (extracted from the expression.cs ): // // expression.cs: Expression representation for the IL tree. // // Author: // Miguel de Icaza (miguel at ximian.com) // Marek Safar (marek.safar at gmail.com) // // Copyright 2001, 2002, 2003 Ximian, Inc. // Copyright 2003-2008 Novell, Inc. // #define USE_OLD namespace Mono.CSharp { using System; // // Unary implements unary expressions. // public class Unary { // : Expression { void TryReduceConstant ( ) { uint long_constant = 9223372036854775808; //if ( ull.Value == 9223372036854775808 ) // return null; } } } During the build phase, I've got: $ MONO_PATH="/home/user002/mono-2.0/mcs/class/lib/monolite:$MONO_PATH" /home/user002/mono-2.0/mono/mini/mono /home/user002/mono-2.0/mcs/class/lib/monolite/mcs.exe expr3.cs ** Message: Unknown errno: Success expr3.cs(32,1): error CS8025: Parsing error** Message: Unknown errno: Identifier removed expr3.cs(32,1): error CS8025: Parsing error** Message: Unknown errno: Identifier removed Compilation failed: 1 error(s), 0 warnings** Message: Unknown errno: No message of desired type Compilation failed: 1 error(s), 0 warnings** Message: Unknown errno: No message of desired type ** ERROR **: file mini.c: line 13657 (remove_signal_handler): assertion failed: (sigaction (signo, &sa, NULL) != -1) aborting... Stacktrace: Native stacktrace: /home/user002/mono-2.0/mono/mini/mono [0x10024844] [0x100350] [0x1] /lib/libc.so.6(abort+0x23c) [0xfd17ddc] /lib/libglib-2.0.so.0(g_logv+0x424) [0xfc124b4] /lib/libglib-2.0.so.0(g_log+0x68) [0xfc12528] /lib/libglib-2.0.so.0(g_assert_warning+0x8c) [0xfc125cc] /home/user002/mono-2.0/mono/mini/mono [0x10154480] /home/user002/mono-2.0/mono/mini/mono [0x10154500] /home/user002/mono-2.0/mono/mini/mono(mono_main+0x1098) [0x10012738] /home/user002/mono-2.0/mono/mini/mono [0x10010f70] /lib/libc.so.6 [0xfcfde0c] /lib/libc.so.6 [0xfcfe060] ** (process:17951): ERROR (recursed) **: file mini-exceptions.c: line 1287 (mono_handle_native_sigsegv): assertion failed: (res != -1) aborting... Aborted In fact, problem is with 19-digits uint constant. If we put 18 digits, we get a normal reaction: $ MONO_PATH="/home/user002/mono-2.0/mcs/class/lib/monolite:$MONO_PATH" /home/user002/mono-2.0/mono/mini/mono /home/user002/mono-2.0/mcs/class/lib/monolite/mcs.exe expr3.cs expr3.cs(23,25): error CS0031: Constant value `922337203685477580' cannot be converted to a `uint' Compilation failed: 1 error(s), 0 warnings Any comments or ideas ? ( I use Mono 2.0 preview 2 version). Yury From bruce at bwilkie.com Fri Sep 5 07:49:57 2008 From: bruce at bwilkie.com (Bruce Wilkie) Date: Fri, 5 Sep 2008 04:49:57 -0700 (PDT) Subject: [Mono-list] the GC define ALL_INTERIOR_POINTERS - needed? Message-ID: <525976.1917.qm@web1107.biz.mail.sk1.yahoo.com> hi all - quick question.? does anyone happen to know the reason mono needed this #define set? thx! bruce From andreas.faerber at web.de Fri Sep 5 08:30:55 2008 From: andreas.faerber at web.de (=?ISO-8859-1?Q?Andreas_F=E4rber?=) Date: Fri, 5 Sep 2008 14:30:55 +0200 Subject: [Mono-list] Mono doesn't work on PowerPC In-Reply-To: <48C119A4.5000109@serdyuk.botik.ru> References: <48C119A4.5000109@serdyuk.botik.ru> Message-ID: <8A9A8D0B-F947-4212-BFB4-E14576B26EFF@web.de> Hi, Am 05.09.2008 um 13:36 schrieb Yury Serdyuk: > I have proceed further trying to build Mono on ppc64 architecture. > Problem is with compiling the following fragment of code > (extracted from the expression.cs ): I believe I already answered some weeks ago that the ppc64 port is not yet complete and thus does not yet compile anything at all. If you've come so far, you will most likely have built for ppc, not ppc64. Please be careful not to spread confusion there. If it's not solved when building from SVN trunk, you should file a bug at Bugzilla. Could be a buffer overflow. You forgot to mention your system btw. Andreas From steinar.herland at gmail.com Fri Sep 5 10:37:18 2008 From: steinar.herland at gmail.com (Steinar Herland) Date: Fri, 5 Sep 2008 16:37:18 +0200 Subject: [Mono-list] xsp2 1.9.1 is unable to run website build with VS2008 SP1 In-Reply-To: References: Message-ID: I'm the author of http://www.codeplex.com/geoCache, a open-source WMS Tile Caching (WMS-C) compliant server. geoCache is built using VS2008 SP1, and requires some parts of the 3.5 framework, and I'm trying to get this working on the upcoming Mono 2 version. Using mono-1.9.1-gtksharp-2.10.4-win32-2.exe on windows, I get this error: Parser Error Message: Assembly System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35 not found After removing all references to System.Web.Extensions in web.config, i get this error: Parser Error Message: Assembly System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089 not found Mono-version reported in both error-messages: Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42 I see that 1.9.1 *does* include System.Web.Extensions, yet it is not found :-S. It does however *not* include System.Data.DataSetExtension. Any tips on how to solve this? If you would like to test, geoCache can be downloaded from http://www.codeplex.com/geoCache/Release/ProjectReleases.aspx?ReleaseId=15121 Steinar From kobruleht2 at hot.ee Fri Sep 5 13:02:05 2008 From: kobruleht2 at hot.ee (Andrus) Date: Fri, 5 Sep 2008 20:02:05 +0300 Subject: [Mono-list] System.configuration issue prevents application start Message-ID: <4444A65097CE411D9ED49FBAD6B04769@andrusnotebook> Some time ago I entered issue https://bugzilla.novell.com/show_bug.cgi?id=418834 which prevents application starting when it uses code generated by VS I verified that this issue exists in todays SVN. How to fix this ? Andrus. From joe.fradley at gmail.com Wed Sep 3 14:06:11 2008 From: joe.fradley at gmail.com (statespace) Date: Wed, 3 Sep 2008 11:06:11 -0700 (PDT) Subject: [Mono-list] .NET workaround for blank Action "" in SOAP message not handled in Mon Message-ID: <19294695.post@talk.nabble.com> Hello, I've been troubleshooting an issue while trying to get a gSoap client to communicate with a C# server using ServiceHost. When I first tried to get the communication to work with a .NET server I ran across a problem where the c# server was complaining about a mismatch in the SOAP Action field: "The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None)." I found a work around that causes the service host to do dispatch based off of message body and not SOAP action. MSDN sample here: http://msdn.microsoft.com/en-us/library/ms750531(VS.85).aspx referred by this forum post (which has little more detail on how to mod a generated *.cs file): https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1052544&SiteID=1 This got my .NET/C# server working. However, the mono/C# server (same exact code) still had a problem and it looks to be because of the blank SOAP action field. Anyone have any ideas? Thanks, Joe -- View this message in context: http://www.nabble.com/.NET-workaround-for-blank-Action-%22%22-in-SOAP-message-not-handled-in-Mon-tp19294695p19294695.html Sent from the Mono - General mailing list archive at Nabble.com. From nagappan at gmail.com Thu Sep 4 16:49:40 2008 From: nagappan at gmail.com (Nagappan A) Date: Thu, 4 Sep 2008 13:49:40 -0700 Subject: [Mono-list] Approving Patches for Mono 2.0 Branch In-Reply-To: <100172.83978.qm@web30804.mail.mud.yahoo.com> References: <19317995.post@talk.nabble.com> <100172.83978.qm@web30804.mail.mud.yahoo.com> Message-ID: <9d0602eb0809041349x77895739w31460d6537793f4f@mail.gmail.com> Hello Daiel, To ADO.NET maintainer ? though not sure. Varadhan ? Thanks Nagappan On Thu, Sep 4, 2008 at 1:40 PM, Daniel Morgan wrote: > Mono's wiki has a good explanation. Basically, it is our source code > management. When I say trunk, I mean the latest. Then Mono project has an > anonymous subversion server which allows anyway to check out code. > > http://www.mono-project.com/SVN > > I suppose I should backport my fixes to the Mono 2.0 branch. I don't know > how to do that. Nor do I know who to ask for approval for my patches. > > > --- On Thu, 9/4/08, sumesh0710 wrote: > > > From: sumesh0710 > > Subject: Re: [Mono-list] re f cursor issue in oracle stored procedure > invoked from mono > > To: mono-list at lists.ximian.com > > Date: Thursday, September 4, 2008, 3:15 PM > > Really!!..but how do i make work this stuff in my machine? > > What is svn?.I am > > a newbie. > > > > > > Daniel Morgan-3 wrote: > > > > > > Ok. I fixed your bug. I just committed it to svn > > trunk. It was revision > > > 112250. > > > > > > The bug was with an output parameter that is a ref > > cursor from a stored > > > procedure when calling ExecuteReader. ExecuteReader > > is used by > > > DbDataAdapter to fill a DataSet. > > > > > > --- On Wed, 9/3/08, sumesh0710 > > wrote: > > > > > >> From: sumesh0710 > > >> Subject: Re: [Mono-list] re f cursor issue in > > oracle stored procedure > > >> invoked from mono > > >> To: mono-list at lists.ximian.com > > >> Date: Wednesday, September 3, 2008, 5:37 AM > > >> Thanks for the reply. I tried using execute > > reader, but the > > >> outputparameter > > >> value was null. In my case I used > > >> > > >> cmdSp = New OracleCommand("test", con) > > >> cmdSp.CommandType = CommandType.StoredProcedure > > >> I will try as ur code. Is your mono version is > > latest? I > > >> saw in release > > >> n