Your message dated Tue, 05 Aug 2008 23:17:08 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#491407: fixed in mysql-connector-net-5.0 5.2.1+dfsg-2
has caused the Debian Bug report #491407,
regarding libmysql5.0-cil: cannot connect to mysql-server using mono C#
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
491407: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491407
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: libmysql5.0-cil
Version: 5.2.1+dfsg-1
Severity: grave
Justification: renders package unusable

I got a strange error when i connect to mysql-server by mono(C#),
little information can be got on google, and no one answers me on the
mono mail lists:

Here is the code, it compiles successfully

using System;
using System.IO;
using System.Xml;
using System.Data;
using MySql.Data.MySqlClient;


namespace StarConsole
{
class MainClass
{
public static void Main(string[] args)
{
 string connectionString ="Server=localhost;Database=Star;User
ID=root;Password=password;Pooling=false";
 IDbConnection dbcon = new MySqlConnection(connectionString);
 dbcon.Open();
 IDbCommand dbcmd = dbcon.CreateCommand();
 string sql ="insert into Departments(deptno,deptname)
values('0004','caohejin');";
 dbcmd.CommandText = sql;
 dbcmd.ExecuteNonQuery();
 
 dbcmd.Dispose();
 dbcmd = null;
 dbcon.Close();
 dbcon = null;

}
}
}

here is the debug information output by monodevelop when i run it:


Unhandled Exception: System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation. --->
System.ArgumentException: Stream is not a valid .resources file,
magic=0x6d783f3c
 at System.Resources.ResourceReader.ReadHeaders () [0x00000]
 at System.Resources.ResourceReader..ctor (System.IO.Stream stream) [0x00000]
 at System.Resources.ResourceSet..ctor (System.IO.Stream stream) [0x00000]
 at (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
 at System.Reflection.MonoCMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000] --- End of inner exception stack trace ---

 at System.Reflection.MonoCMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000]
 at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000]
 at System.Activator.CreateInstance (System.Type type, BindingFlags
bindingAttr, System.Reflection.Binder binder, System.Object[] args,
System.Globalization.CultureInfo culture, System.Object[]
activationAttributes) [0x00000]
 at System.Activator.CreateInstance (System.Type type,
System.Object[] args, System.Object[] activationAttributes) [0x00000]
 at System.Activator.CreateInstance (System.Type type,
System.Object[] args) [0x00000]
 at System.Resources.ResourceManager.InternalGetResourceSet
(System.Globalization.CultureInfo culture, Boolean Createifnotexists,
Boolean tryParents) [0x00000]
 at System.Resources.ResourceManager.GetString (System.String name,
System.Globalization.CultureInfo culture) [0x00000]
 at MySql.Data.MySqlClient.Resources.get_PerfMonCategoryName () [0x00000]
 at MySql.Data.MySqlClient.PerformanceMonitor..ctor
(MySql.Data.MySqlClient.MySqlConnection connection) [0x00000]
 at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000]
 at StarConsole.MainClass.Main (System.String[] args) [0x0000d] in
/root/Life/Mono/StarConsole/Main.cs:31

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_HK.UTF-8, LC_CTYPE=en_HK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libmysql5.0-cil depends on:
ii  cli-common                  0.5.7        common files between all CLI packa
ii  libmono-corlib1.0-cil       1.9.1+dfsg-2 Mono core library (1.0)
ii  libmono-corlib2.0-cil       1.9.1+dfsg-2 Mono core library (2.0)
ii  libmono-system-data2.0-cil  1.9.1+dfsg-2 Mono System.Data Library
ii  libmono-system2.0-cil       1.9.1+dfsg-2 Mono System libraries (2.0)

libmysql5.0-cil recommends no packages.

libmysql5.0-cil suggests no packages.


-- no debconf information



--- End Message ---
--- Begin Message ---
Source: mysql-connector-net-5.0
Source-Version: 5.2.1+dfsg-2

We believe that the bug you reported is fixed in the latest version of
mysql-connector-net-5.0, which is due to be installed in the Debian FTP archive:

libmysql5.0-cil_5.2.1+dfsg-2_all.deb
  to pool/main/m/mysql-connector-net-5.0/libmysql5.0-cil_5.2.1+dfsg-2_all.deb
monodoc-mysql5.0-manual_5.2.1+dfsg-2_all.deb
  to 
pool/main/m/mysql-connector-net-5.0/monodoc-mysql5.0-manual_5.2.1+dfsg-2_all.deb
mysql-connector-net-5.0_5.2.1+dfsg-2.diff.gz
  to 
pool/main/m/mysql-connector-net-5.0/mysql-connector-net-5.0_5.2.1+dfsg-2.diff.gz
mysql-connector-net-5.0_5.2.1+dfsg-2.dsc
  to 
pool/main/m/mysql-connector-net-5.0/mysql-connector-net-5.0_5.2.1+dfsg-2.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mirco Bauer <[EMAIL PROTECTED]> (supplier of updated mysql-connector-net-5.0 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 05 Aug 2008 23:29:16 +0200
Source: mysql-connector-net-5.0
Binary: libmysql5.0-cil monodoc-mysql5.0-manual
Architecture: source all
Version: 5.2.1+dfsg-2
Distribution: unstable
Urgency: high
Maintainer: Debian CLI Libraries Team <[EMAIL PROTECTED]>
Changed-By: Mirco Bauer <[EMAIL PROTECTED]>
Description: 
 libmysql5.0-cil - MySQL database connector for CLI
 monodoc-mysql5.0-manual - compiled XML documentation for the MySql.Data library
Closes: 491407
Changes: 
 mysql-connector-net-5.0 (5.2.1+dfsg-2) unstable; urgency=high
 .
   * debian/rules:
     + Generate resource file from resx file using resgen2.
     + Fixed resource name of Resources.resx and ReservedWords.txt.
       (Closes: #491407) (made the package unusable, thus urgency set to high)
   * debian/control:
     + Added mono-2.0-devel and libmono-winforms2.0-cil to build-dependencies as
       needed for resgen2.
Checksums-Sha1: 
 2e9142bfd4ad624fafb52c12349c3e710b35c89a 1615 
mysql-connector-net-5.0_5.2.1+dfsg-2.dsc
 c475aa05f8c8812a143c52d2a5ef2e514cef4c0f 7648 
mysql-connector-net-5.0_5.2.1+dfsg-2.diff.gz
 70aa514c473beae343e7cca4558e515fe6cff94c 129732 
libmysql5.0-cil_5.2.1+dfsg-2_all.deb
 791f19562f972970f1d0ceb2d0fac009a12f1909 55238 
monodoc-mysql5.0-manual_5.2.1+dfsg-2_all.deb
Checksums-Sha256: 
 6a478873151d3d30cef82c1b3767bf83c36882d77c206ecacaed0ec9089fb190 1615 
mysql-connector-net-5.0_5.2.1+dfsg-2.dsc
 7ed369945308862e9c4ec543732d2abc8437dc61f94eb7072a18a947b3c8fd07 7648 
mysql-connector-net-5.0_5.2.1+dfsg-2.diff.gz
 f193a5b1f3a6c65d8e5f828d668da58deba94dfdb9548a3023c369aa0b9f73ba 129732 
libmysql5.0-cil_5.2.1+dfsg-2_all.deb
 0471044107c8bd771613d0607e1be85e4bed93e574d4bb57dd4beee49f709152 55238 
monodoc-mysql5.0-manual_5.2.1+dfsg-2_all.deb
Files: 
 b36055b3b81b108195fa96be81303fcd 1615 libs optional 
mysql-connector-net-5.0_5.2.1+dfsg-2.dsc
 8b6a0b314bbd522ecc0da7a035fab8c2 7648 libs optional 
mysql-connector-net-5.0_5.2.1+dfsg-2.diff.gz
 d756bc475bab4681751b2f2016e160f4 129732 libs optional 
libmysql5.0-cil_5.2.1+dfsg-2_all.deb
 e3e02611f9861707ab75b9df529aefca 55238 doc optional 
monodoc-mysql5.0-manual_5.2.1+dfsg-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkiY0moACgkQ4XrXtQkN2NWbEwCglKhvubTRXLsUJ1MHfA3BepFd
XeoAoKuyPxCmlXlnz2C8Xmh39ANKr42A
=yVLP
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to