0
我在connectionString
的Access 2007 Database
C#.Net
中遇到困难。 当我加载MainForm
时,发生以下异常。 请看。如何解决Microsoft Access 2007异常?
System.InvalidOperationException: The ‘Microsoft.ACE.OLEDB.12.0′ provider is not registered on the local machine.
MainForm
结束后
。
我认为我的电脑需要Access Driver才能打开该程序。
我也是这个程序的开发者。
我写了下面的app.config
<add name="Constr2" connectionString="Provider=Microsoft.ACE.ODBC.12.0;Data Source=|DataDirectory|\InMyMind.accdb;Persist Security Info=True" providerName="System.Data.Odbc"/>
如果我需要一个司机connectionString
,我该怎么办呢?
Windows7 Ultimate,请告诉我如何找到该驱动程序以及如何添加我的项目。 – CSharpCrazy