解决办法
1、在前面加上Jet OLEDB:,如: Jet OLEDB:Database Password='zt'
<add name="ConStrOleDb" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:DBztdata.mdb;Persist Security Info=True;Database Password=zt;"
providerName="System.Data.OleDb" />
修改为
<add name="ConStrOleDb" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:DBztdata.mdb;Persist Security Info=True;Jet OLEDB:Database Password=zt;"
providerName="System.Data.OleDb" />