On Sat, 23 May 2009 18:58:14 +0200 Tobias Glenstrup <tobiasglenst...@gmail.com> wrote:
> Hello, > > Okay I've tried to upgrade and the error still persists. > > Compiling this source in Monodevelop with these additional arguments > to the compiler: -r:System.Data.dll -r:Mono.Data.SybaseClient.dll. > > using System; > using System.Data; > using Mono.Data.SybaseClient; > class MainClass > { > public static void Main(string[] args) > { > string constring = "Server=X.X.X.X,11021;Database=security;User > ID=XXXX;Password=XXXX"; > IDbConnection dbcon = new SybaseConnection(constring); > dbcon.Open(); > IDbCommand dbcmd = dbcon.CreateCommand(); > string sql = "SELECT * from users"; > dbcmd.CommandText = sql; > IDataReader reader = dbcmd.ExecuteReader(); > while (reader.Read()) { > Console.WriteLine("Fullname = " + reader["fullname"].ToString()); > } > reader.Close(); > dbcmd.Dispose(); > dbcon.Close(); > } > } > > dbcon.Open() works, but it fails at dbcmd.ExecuteReader() with this > error: > > Unhandled Exception: System.NullReferenceException: Object reference > not set to an instance of an object > at Mono.Data.SybaseClient.SybaseDataReader.GetSchemaTable () > [0x00000] at (wrapper remoting-invoke-with-check) > Mono.Data.SybaseClient.SybaseDataReader:GetSchemaTable () > at Mono.Data.SybaseClient.SybaseDataReader.NextResult () [0x00000] > at (wrapper remoting-invoke-with-check) > Mono.Data.SybaseClient.SybaseDataReader:NextResult () > at Mono.Data.SybaseClient.SybaseDataReader..ctor > (Mono.Data.SybaseClient.SybaseCommand command) [0x00000] > at (wrapper remoting-invoke-with-check) > Mono.Data.SybaseClient.SybaseDataReader:.ctor > (Mono.Data.SybaseClient.SybaseCommand) > at Mono.Data.SybaseClient.SybaseCommand.ExecuteReader > (CommandBehavior behavior) [0x00000] > at Mono.Data.SybaseClient.SybaseCommand.ExecuteReader () [0x00000] > at > Mono.Data.SybaseClient.SybaseCommand.System.Data.IDbCommand.ExecuteReader > () [0x00000] > at MainClass.Main (System.String[] args) [0x00027] in > /home/luser/Projects/TestSybaseCli/TestSybaseCli/Main.cs:19 > > > If I in the project options set the runtime version to 1.1 the > program works as expected, it fails when set to 2.0 and 3.5. > > Here's all the monopackages I have installed: > ... > ii libmono-data-tds1.0-cil 2.0.1-6 > > ii libmono-data-tds2.0-cil 2.0.1-6 > > ii libmono-data1.0-cil 2.0.1-6 > > ii libmono-data2.0-cil 2.0.1-6 > > ... > ii libmono-system-data1.0-cil 2.0.1-6 > > ii libmono-system-data2.0-cil 2.0.1-6 > Alright, so the versions match now and the issue persists. I am forwarding this report to upstream. > > Best Regards > Tobias Glenstrup -- Regards, Mirco 'meebey' Bauer PGP-Key ID: 0xEEF946C8 FOSS Developer mee...@meebey.net http://www.meebey.net/ PEAR Developer mee...@php.net http://pear.php.net/ Debian Developer mee...@debian.org http://www.debian.org/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org