C # access to Access database prompts that ISAM is not installed

C # cannot find installable isam when connecting to access
C # project throws an exception when connecting to the access database "No installable ISAM found"
 
Solution:
1. Add Jet OLEDB: in front, such as: Jet OLEDB: Database Password = 'zt'
<add name="ConStrOleDb" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\DB\ztdata.mdb;Persist Security Info=True;Database Password=zt;"
providerName="System.Data.OleDb" />
change into
<add name="ConStrOleDb" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\DB\ztdata.mdb;Persist Security Info=True; Jet OLEDB:Database Password=zt;"
providerName="System.Data.OleDb" />

Guess you like

Origin www.cnblogs.com/masonblog/p/12740894.html