davep
May 13th, 2010, 10:53 AM
I have just changed to a new 64bit computer so of course my oledb.4.0 calls dont work and I have replaced them with Ace.oledb.12.0 and that seems to work fine I can preview the data. However a simple program which worked fine befrore in 32bit keeps throwing an error
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
The program is very simple
in Design view I have a designgridview, ListBindingSource, listTableAdapter & my dataset.xsd
I can rightclick the ListTableApapter and preview the data fine.
My code is just
Public Class List2
Private Sub List2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.ListTableAdapter.Fill(Me.STT_phonelistDataSet.List)
End Sub
End Class
At design time I can preview the data in the DatagridView so all the data sources must be set ok. But when I run the program I get the error and the Grid is empty
Any ideas why?
Perhaps I should also mention thaqt I'm using 2010 express but the previous working version was in 2008 express
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
The program is very simple
in Design view I have a designgridview, ListBindingSource, listTableAdapter & my dataset.xsd
I can rightclick the ListTableApapter and preview the data fine.
My code is just
Public Class List2
Private Sub List2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.ListTableAdapter.Fill(Me.STT_phonelistDataSet.List)
End Sub
End Class
At design time I can preview the data in the DatagridView so all the data sources must be set ok. But when I run the program I get the error and the Grid is empty
Any ideas why?
Perhaps I should also mention thaqt I'm using 2010 express but the previous working version was in 2008 express