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