Select the product you need help with
Error message when you bind a DataGridView control to an Access database in Microsoft Visual Studio 2005: "System.InvalidOperationException occurred Message="The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.""Article ID: 942977 - View products that this article applies to. On This PageSYMPTOMSConsider the following scenario:
System.InvalidOperationException occurred Message="The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine." Source="System.Data" CAUSEThis problem occurs because there is no 64-bit version of the Microsoft.Jet.OLEDB.4.0 database provider. WORKAROUNDTo work around this problem, use one of the following methods. Method 1Force the application to be compiled as a 32-bit application. To do this, follow the steps in the appropriate section.Steps for Microsoft Visual C# projects
Steps for Microsoft Visual Basic projects
Method 2Use Microsoft SQL Server Express Edition instead of Access. The benefits of using SQL Server Express Edition are as follows:
http://msdn2.microsoft.com/en-us/express/bb410792.aspx
(http://msdn2.microsoft.com/en-us/express/bb410792.aspx)
MORE INFORMATIONThe Target CPU option for Visual Basic projects or the Platform target option for Visual C# projects determines which version the application is compiled as. By default, these options are set to the Any CPU value. Therefore, on a 64-bit version of Windows Vista, this application is compiled as a 64-bit application. On a 32-bit version of Windows Vista, this application is compiled as a 32-bit application. Call stack informationat 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 WindowsApplication1.northwindDataSetTableAdapters.EmployeesTableAdapter.Fill(EmployeesDataTable dataTable) in C:\Documents and Settings\marcro\My Documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\northwindDataSet.Designer.vb:line 1349 at WindowsApplication1.Form1.Form1_Load(Object sender, EventArgs e) in C:\Documents and Settings\marcro\My Documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\Form1.vb:line 12 PropertiesArticle ID: 942977 - Last Review: January 7, 2008 - Revision: 2.1 APPLIES TO
|


Back to the top








