[Mono-list] System.InvalidCastException in Npgsql

Andrus kobruleht2 at hot.ee
Sun Oct 22 08:44:15 EDT 2006


To reproduce, try to connect PostgreSQL database using  1.1.18 SQL# GTK 

How to fix this ?

Where to find documentation of Mono.Data namespace ?
I haven't found any information about this in monodoc browser.

(1.1.17 works OK)


Andrus.

Result is:

Attempt to open connection...
Open was successfull.
Error: Unable to connect.  Reason: System.InvalidCastException: Cannot cast
from source type to destination type.

  at Npgsql.NpgsqlDataReader.GetInt32 (Int32 i) [0x00000]

  at Mono.Data.SqlSharp.DatabaseBrowser.PostgreSqlMetaData.GetTableColumns
(System.String owner, System.String tableName) [0x00000]

  at Mono.Data.SqlSharp.DatabaseBrowser.Schema.GetTableColumns
(System.String owner, System.String tableName) [0x00000]

  at Mono.Data.SqlSharp.GtkSharp.SqlSharpGtk.PopulateTableColumns (TreeIter
parentIter, Mono.Data.SqlSharp.DatabaseBrowser.MetaTable table,
Mono.Data.SqlSharp.DatabaseBrowser.Schema browser) [0x00000]

  at Mono.Data.SqlSharp.GtkSharp.SqlSharpGtk.PopulateTables (TreeIter
parentIter, Mono.Data.Provider provider, IDbConnection con) [0x00000]

  at Mono.Data.SqlSharp.GtkSharp.SqlSharpGtk.OpenDataSource
(Mono.Data.Provider theProvider, System.String theConnectionString,
System.String connectionName) [0x00000]

  at Mono.Data.SqlSharp.GtkSharp.LoginDialog.Connect_Action (System.Object
o, System.EventArgs args) [0x00000]



More information about the Mono-list mailing list