[Mono-list] Mono + VB.NET?

Jean-Marc FOISSIN foissin at gmail.com
Sat Jan 13 03:59:05 EST 2007


Hi, thanks for your specifications,

ERROR:
[Task:File=/home/foissin/Projects/MySql-Test/MySql-Test/AssemblyInfo.cs,
Line=10, Column=12, Type=Error, Description=Error during emitting
`System.Reflection.AssemblyTitleAttribute' attribute. The reason is `Could
not load type 'System.Collections.Generic.Queue`1' from assembly 'System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.'(CS0647

PROGRAM MySql-Test:
// project created on 12/01/2007 at 22:59
 using System;
 using System.Data;
 using MySql.Data.MySqlClient;
 using Gtk;

 public class Test
 {
    public static void Main(string[] args)
    {
       string connectionString =
          "Server=localhost;" +
          "Database=test;" +
          "User ID=myuserid;" +
          "Password=mypassword;" +
          "Pooling=false";
       IDbConnection dbcon;
       dbcon = new MySqlConnection(connectionString);
       dbcon.Open();
       IDbCommand dbcmd = dbcon.CreateCommand();
       // requires a table to be created named employee
       // with columns firstname and lastname
       // such as,
       //        CREATE TABLE employee (
       //           firstname varchar(32),
       //           lastname varchar(32));
       string sql =
           "SELECT firstname, lastname " +
           "FROM employee";
       dbcmd.CommandText = sql;
       IDataReader reader = dbcmd.ExecuteReader();
       while(reader.Read()) {
            string FirstName = (string) reader["firstname"];
            string LastName = (string) reader["lastname"];
            Console.WriteLine ("Name: " +
                  FirstName + " " + LastName);
       }
       // clean up
       reader.Close();
       reader = null;
       dbcmd.Dispose();
       dbcmd = null;
       dbcon.Close();
       dbcon = null;
    }
 }

Thanks,
Jean-Marc.

2007/1/12, Robert Jordan <robertj at gmx.net>:
>
> Jean-Marc FOISSIN wrote:
> > I'am newby with mono and UBUNTU (1 month) and french... so excuse my
> > english.
> > I was trying to use a program using  System.Collections.Generic.Queue
> > =>error
>
> Which error?
>
> > I downloaded the latest sources of mono
> > reading them, no traces of .Queue or .Stack in
> System.Collections.Generic.
>
> You're looking in the wrong place. They are implemented
> in the System assembly.
>
> > I'd did not find the "Howto" patch the program with the Queue.cs
> > Stack.csproposed on the link above.
>
> Since these classes exist in Mono, there is no need to patch
> anything.
>
> Robert
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070113/c507ce64/attachment.html 


More information about the Mono-list mailing list