ASP Development
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Remember me

Go Back   Dev Articles Community ForumsProgrammingASP Development

Add This Thread To:   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
Unread Dev Articles Community Forums Sponsor:
Old March 18th, 2003, 04:40 PM
crazytrain81 crazytrain81 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
Join Date: Aug 2002
Posts: 232 crazytrain81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
"Could not find installable ISAM."

I've googled myself to death and no solutions seem to work. I'm having a hell of a time getting VS and .NET all set up and working on this computer. I had to jump through hoops to get ASP.NET to work. Now I can't seem to make the Data Access happen.

The weird thing is, using the same connection string, I can connect to the database and query it from a CONSOLE app, but I can't do it from a web application. Here is the code...

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub

Public Sub Load_Grid()

Dim myCxn As OleDbConnection
Dim myCmd As OleDbCommand

Dim strCxn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Pwd="""";User ID=Admin;" & _
"Data Source=C:\Inetpub\wwwroot\_private\store.mdb;"

myCxn = New OleDbConnection(strCxn)

myCmd = New OleDbCommand("SELECT * FROM Store")
myCmd.Connection = myCxn

myGrid.DataSource = myCmd.ExecuteReader(CommandBehavior.CloseConnectio n)

Catch ex As Exception
Response.Write("An exception occurred.<br>")
Response.Write(ex.Source & " : " & ex.Message)

If Not myCxn Is Nothing Then
If myCxn.State <> ConnectionState.Closed Then
End If
End If
myCxn = Nothing
myCmd = Nothing

End Try
End Sub

When I run it, It prints out a Microsoft Jet Driver Error, "Could not find installable ISAM". I tried to re-register msjet40.dll, that didn't fix it. I isntalled the odbc_net.exe update, even though that shouldn't be related to a DSN-less problem. And again, the same connection works in a console app.

EDIT: i have all the correct namespaces imported in the file too, i just pasted the relevant code. It can't be a coding problem.

Reply With Quote

Viewing: Dev Articles Community ForumsProgrammingASP Development > "Could not find installable ISAM."

Developer Shed Advertisers and Affiliates

Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.

© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap