[Mono-bugs] [Bug 490309] New: System.InvalidCastException when calling datatable.importrow
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Mar 30 13:23:08 EDT 2009
https://bugzilla.novell.com/show_bug.cgi?id=490309
Summary: System.InvalidCastException when calling
datatable.importrow
Classification: Mono
Product: Mono: Runtime
Version: 2.4.x
Platform: i686
OS/Version: Ubuntu
Status: NEW
Severity: Critical
Priority: P5 - None
Component: JIT
AssignedTo: lupus at novell.com
ReportedBy: jhmgbl2 at t-online.de
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.4)
Gecko/2008102920 Firefox/3.0.4 (.NET CLR 3.5.30729)
When searching for records in an SQLite database and importing these records in
a class that inherirts from Data.Datatable I get the following Error Message:
frmSearchText.btnSearch_Click Import Row System.Data.DataRow
System.InvalidCastException: Cannot cast from source type to destination
type.
at System.Data.Common.Int32DataContainer.DoCopyValue
(System.Data.Common.DataContainer from, Int32 from_index, Int32 to_index)
[0x00000] in
/usr/src/packages/BUILD/mono-2.2/mcs/class/System.Data/System.Data.Common/DataContainer.cs:528
at System.Data.Common.DataContainer.CopyValue
(System.Data.Common.DataContainer from, Int32 from_index, Int32 to_index)
[0x00000] in
/usr/src/packages/BUILD/mono-2.2/mcs/class/System.Data/System.Data.Common/DataContainer.cs:164
at System.Data.Common.RecordCache.CopyRecord (System.Data.DataTable
fromTable, Int32 fromRecordIndex, Int32 toRecordIndex) [0x0004a] in
/usr/src/packages/BUILD/mono-2.2/mcs/class/System.Data/System.Data.Common/RecordCache.cs:115
without mono this works fine! What can I do?
Reproducible: Always
Steps to Reproduce:
1.Download
http://downloads.sourceforge.net/repetitnettsqli/Repetit.Net.T.Mono_0_6_0_12.tar.gz?use_mirror=garr
2.Enter Data in Database
3.Call Suche:Textsuche and enter some Symptoms that are in the database. Check
"Symptom", "Leitsymptom", "Beschreibung" and press "Suche"
Actual Results:
System.InvalidCastException: Cannot cast from source type to destination
type.
at System.Data.Common.Int32DataContainer.DoCopyValue
(System.Data.Common.DataContainer from, Int32 from_index, Int32 to_index)
[0x00000] in
/usr/src/packages/BUILD/mono-2.2/mcs/class/System.Data/System.Data.Common/DataContainer.cs:528
at System.Data.Common.DataContainer.CopyValue
(System.Data.Common.DataContainer from, Int32 from_index, Int32 to_index)
[0x00000] in
/usr/src/packages/BUILD/mono-2.2/mcs/class/System.Data/System.Data.Common/DataContainer.cs:164
at System.Data.Common.RecordCache.CopyRecord (System.Data.DataTable
fromTable, Int32 fromRecordIndex, Int32 toRecordIndex) [0x0004a] in
/usr/src/packages/BUILD/mono-2.2/mcs/class/System.Data/System.Data.Common/RecordCache.cs:115
Expected Results:
The results are imported in a class that inherits from datatable and are shown
in a treeview.
It is a great problem that the application framework does not work, so every
bug causes a crash. The code in ApplicationEvents.vb is not executed!
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list