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

aspnewbie09
aspnewbie09 used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014

Commented:
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.

Author

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

thanks

Author

Commented:
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.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Most Valuable Expert 2012
Top Expert 2014

Commented:
Are you certain that Jet 4.0 is installed on your machine?

Author

Commented:
how do i check it?
Most Valuable Expert 2012
Top Expert 2014

Commented:
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.

Author

Commented:
both of mine are current verison.  click on this link to see my printscreen:  http://www.hosetech.com/msjet-screen-shot.jpg

thanks
Most Valuable Expert 2012
Top Expert 2014

Commented:
That's a 64-bit operating system?

Author

Commented:
i got it to work.

thanks
Most Valuable Expert 2012
Top Expert 2014

Commented:
Most Valuable Expert 2012
Top Expert 2014

Commented:
How did you get it to work?

Author

Commented:
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.
Commented:
Question PAQ'd and stored in the solution database.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial