When I used the code pasted here, I got the error pasted below it:
Any help appreciated.
Scott
<html>
<%
Using con As New
system.data.OleDb.OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA
SOURCE='e:\websearchstore_server\data\database_directory.mdb'")
Dim cmd As New system.data.OleDb.OleDBCommand("Select * from
www_item_table ", con)
con.Open
Dim dr As system.data.OleDb.OleDbDataReader =
cmd.ExecuteReader(system.data.CommandBehavior.CloseConnection)
Try
Dim i As Integer = 1
Do While dr.Read()
Response.Write("<br>record number=" & i)
i +=1
Loop
Catch ex As system.data.oledb.OleDbException
'Handle exceptions from the database here
Catch ex As Exception
'Handle exceptions from .NET here
Finally
dr.Close()
dr.Dispose()
cmd.Dispose()
End Try
End Using
%>
</html>
Could not find installable ISAM.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Could not find
installable ISAM.
Source Error:
Line 7: Using con As New
system.data.OleDb.OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA
SOURCE='e:\websearchstore_server\data\database_directory.mdb'")
Line 8: Dim cmd As New system.data.OleDb.OleDBCommand("Select * from
www_item_table ", con)
Line 9: con.Open
Line 10: Dim dr As system.data.OleDb.OleDbDataReader =
cmd.ExecuteReader(system.data.CommandBehavior.CloseConnection)
Line 11:
> Thank you very much!
>
[quoted text clipped - 54 lines]
>>>
>>> Scott
Scott M. - 08 Feb 2008 22:16 GMT
That usually means that you haven't specified the correction database
provider or don't have the correct provider.
The connection string I provided is correct.
> When I used the code pasted here, I got the error pasted below it:
>
[quoted text clipped - 116 lines]
>>>>
>>>> Scott