【问题标题】:Can't solve the following Visual 2008 error无法解决以下 Visual 2008 错误
【发布时间】:2012-05-06 07:00:21
【问题描述】:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
  at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper)
  at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
  at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
  at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
  at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
  at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
  at System.Data.OleDb.OleDbConnection.Open()
  at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)
  at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
  at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
  at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
  at DataSet1TableAdapters.CustomersTableAdapter.GetData()
  --- End of inner exception stack trace ---

开发环境为 Visual Studio 2008 操作系统是 Windows 7(64 位) 数据库是 Access 2007。

【问题讨论】:

  • Project + Properties,Build 选项卡,将 Platform target 设置从 AnyCPU 更改为 x86。

标签: visual-studio-2008 ms-access-2007


【解决方案1】:

https://www.microsoft.com/en-us/download/confirmation.aspx?id=23734“2007 Office System 驱动程序:数据连接组件”应该为您提供正确的驱动程序

【讨论】:

  • 我下载并安装了访问引擎,但仍然是同样的错误。并将 AnyCPU 更改为 x86 也会产生相同的错误
猜你喜欢
  • 2010-12-09
  • 2021-07-11
  • 1970-01-01
  • 2021-08-21
  • 2010-10-01
  • 1970-01-01
  • 1970-01-01
  • 2018-01-05
相关资源
最近更新 更多