In haste - but it was current versions of everything.
What may be catching you is that the system needs to see all the dlls relatiing to spatilite - not just the dll referenced ( I think there are 6) - so I stuck all these in the .NET bin directory as well
If you are still having trouble - suggest you use a tool like FileMon - as I'd guess its a pathing / permissions issue
Dim dt As New DataTable()
Dim cnn As New SQLiteConnection("Data Source=C:\sqlite\sinc.sqlite")
cnn.Open()
Dim mycommand As New SQLiteCommand(cnn)
mycommand.CommandText = "SELECT load_extension('libspatialite-2.dll');"
mycommand.ExecuteNonQuery()
'mycommand.CommandText = "select SITE_NAME, AsText(Geometry) from SINC limit 10"
mycommand.CommandText = "select SITE_NAME, SRID(Geometry), AsText(Geometry) from SINC where Intersects(Geometry,MakePoint(527027,180288,27700))=1"
Dim reader As SQLiteDataReader = mycommand.ExecuteReader()
dt.Load(reader)
reader.Close()
cnn.Close()
Me.DataGridView1.DataSource = dt