Link to home
Start Free TrialLog in
Avatar of aspnewbie09
aspnewbie09

asked on

The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine

I follow this instruction:  http://msdn.microsoft.com/en-us/library/tw738475(v=VS.80).aspx  to get a connection to my MS Access 2000 database.  It went through the wizard with no errors.

when i run the application in debug mode; got the following error:

The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[InvalidOperationException: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.]
   System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper) +1709247
   System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +148
   System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +100
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +45
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +158
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +1649271
   System.Data.OleDb.OleDbConnection.Open() +47
   System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +53
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +188
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +573
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +161
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +2782214
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +27
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +261
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +95
   System.Web.UI.Control.EnsureChildControls() +146
   System.Web.UI.Control.PreRenderRecursiveInternal() +61
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016


Thanks
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

What OS are you running this on?

Are you sure that Jet 4.0 is installed on the machine?

Are you certain that you have Microsoft Data Access Components (MDAC) version 2.7 or later installed?

This from your linked page (above):

"If you are using Microsoft Windows XP or Windows Server 2003, you already have MDAC 2.7. However, if you using Microsoft Windows 2000, you might have to upgrade the MDAC version that is already installed on the computer. To download the current MDAC version, see Data Access and Storage Developer Center."

If you are certain, you might try running Component Checker to make sure the install is correct: http://www.microsoft.com/downloads/details.aspx?FamilyId=8F0A8DF6-4A21-4B43-BF53-14332EF092C9&displaylang=en

Run Component Checker and see if it turns up any troubles.
Avatar of aspnewbie09
aspnewbie09

ASKER

my OS is window XP.  I have download Component Checker;  but i can't find it anywhere to run.  where is it install?   :(

thanks
I've just checked my "install updates" and only found Service Pack 1 for MS SQL server VSS writer then 8 hotfix for SP!1.
Are you certain that Jet 4.0 is installed on your machine?
how do i check it?
This shows how to determine the Jet level installed.

http://support.microsoft.com/kb/239114/

CompChecker should install in the same folder that contains the .msi file.
both of mine are current verison.  click on this link to see my printscreen:  http://www.hosetech.com/msjet-screen-shot.jpg

thanks
That's a 64-bit operating system?
i got it to work.

thanks
How did you get it to work?
when creating the new website file; instead of of selection "HTTP" under Location in the lower left hand side; I choose "File System" instead.  Not sure if it's the right way of doing it; but it works.
ASKER CERTIFIED SOLUTION
Avatar of ee_auto
ee_auto

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial