Chris Crowe's Blog
Ramblings of an IIS MVP ( MVP Since 1997 )

Powered By IIS 7

Search my blog

Some of my readers



My Microsoft Certifications


Dec 15, 1998

Dec 20, 2000

Jan 31, 2001

Jul 22, 2002

Nov 1, 2004

My Microsoft MVP Awards




1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
mvp.support.microsoft.com

I recieved the following error The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine on my Vista 64 bit machine today. I made no code changes since I run it on a 32 bit OS.

Aparantly there is not a 64bit Microsoft.Jet.OLEDB.4.0' provider  and you have to force your build to 32 bit.

In the settings for the project under the Build Tab you must set Platform target to x86 instead of Any CPU

posted on Monday, April 16, 2007 3:29 PM | Filed Under [ Misc Windows Vista ]

Comments


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


we are having 64 bit server where we have deployed our application. Eveything works fine on development enviorment which is on 32 bit. but when we deploy on live server which is on 64 bit, VS2005, sql server 2005. there is piece of application which takes data from excel file and import it in the database. i am using OLEDB driver. i have tried using option x86 but i got an error "Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format." I have two libraries and one main project. One library is in VB and other in c# and application is in c# which is taking reference from both the dll. I tried all the option to build project. can someone help me here?

Thanks
Posted by Ajay Kumar on 5/11/2007 4:17 AM

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

Gravatar
I had this problem last week and found that you are running a 32 Bit application but somwhere you have a 64 bit dll begin loaded.

You will need to check your build process to make sure all DLL's are rebuilt as 32 bit.

Chris
Posted by Chris Crowe on 5/11/2007 7:33 AM

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


I get this error in UK SP1 version of VB 2005 Express and there is no option to force the build change that I can see - by chance has anyone else had such problem?

I would be overjoyed to hear as i have just come to a sudden halt with development :'(

Many thanks and salutations to you all

:)
Posted by Stuart on 6/15/2007 8:01 PM

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


Hi all, I was having the same problem as you running a WebApp that uses Microsoft Jet for importing some data from Excel, I was working with Windows Vista 64 bits after trying everything I found a workaround:



In the IIS(7), search for the application pool that supports your Web Application rigth click on it and select the option "Set Application Pool Defaults"...then find the Option Generals->Enable 32-bit Applications set it to true.



And that's it! Microsoft Jet is working again.
Posted by Armando Restrepo on 9/18/2007 6:56 AM

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

Gravatar
pls help it
Posted by kamal on 2/8/2008 1:33 AM

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


How can I install IIS(7) on Winxp SP2? this problem is making me cwazy...
Posted by Mj on 2/10/2008 1:25 AM

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


Thanks Armando, that was just what i was looking for. I spent several days looking around for answers but it was that simple.
Posted by Pawel on 4/1/2008 7:24 AM

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

Gravatar
Armando wrote:
"In the IIS(7), search for the application pool that supports your Web Application rigth click on it and select the option "Set Application Pool Defaults"...then find the Option Generals->Enable 32-bit Applications set it to true."

My question is: Is there an equivalent way to do this with IIS 6.0?
I am using Win Server 2003 so cannot install iis7.0

Thanks

Matt
Posted by Matt M on 4/16/2008 1:42 AM

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

Gravatar
I've found the answer to my previous post! Hooray :)

http://support.microsoft.com/kb/894435
Posted by Matt M on 4/16/2008 2:01 AM

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

Gravatar
Thank you Armando for sharing the solution. My hero! :-)
Posted by Dave L on 5/1/2008 3:53 AM

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


genious, such a simple solution...for change
Posted by davo_007 on 5/17/2008 12:11 PM

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


This Microsoft Article really helped me. Thanks Matt.
Posted by prem on 6/18/2008 4:07 AM

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

Gravatar
This is what I'm looking for.

Thank you sharing this solution!
Posted by Eric on 6/24/2008 8:25 AM

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


thnaks my problem is solved by learning from thi post
Posted by Nitin on 7/8/2008 8:58 PM

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

Gravatar
This doesn't help me at all, as I'm not running a 64 bit machine but I'm getting the same error. I am also unable to connect to a local Access database as I get the dialog box diappearing just before I can finish the Data Source wizard.

Any other tips?
I did a repair on one machine, that didn't work. I did a remove and reinstall (without rebooting) on another machine and that also did not work.
Posted by Rick on 7/9/2008 7:43 AM

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

Gravatar
thank you very much.
Posted by QuocCuong on 9/20/2008 12:30 AM

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


Thank you for your simple, easy, and to the point solution.
Posted by Bob M. on 10/31/2008 4:54 AM

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


Thank you for your help.
Posted by Tiger on 11/16/2008 3:02 AM

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

Gravatar
Thank you..
Posted by rüya tabiri on 11/26/2008 12:56 AM

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

Gravatar
thank you::))
Posted by games secret on 12/27/2008 5:48 AM

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

Gravatar
Hi,

I am using IIS 6.0 on win 2003 server x64 bit. While trying to query an excel sheet with OLEDB I receive the above error..
I have other applications running on my machine which work only in 64-bit mode so i cant configure my machine's IIS to run on 32 bit mode.
Is there any other way by which i can solve this problem??
Posted by AbHi on 12/29/2008 10:13 PM

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


Thank you very much for such a short, sweet, but effective to-the-point solution
Posted by Deepak Jadhav on 1/15/2009 8:24 AM

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

Gravatar
Lose the shadow font, the site is unreadable without highlighting everything.

Update, Microsoft now supoorts this:

64-Bit OLEDB Provider for ODBC (MSDASQL)
http://www.microsoft.com/downloads/details.aspx?FamilyID=000364db-5e8b-44a8-b9be-ca44d18b059b&displaylang=en
Posted by Dev on 1/30/2009 10:32 AM

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


Thanks Armando, your resolution to the problem, helped me a lot :)
Posted by Arun on 1/31/2009 3:58 PM

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


Thanks dude... solved my prob :)
Posted by Daniel on 2/5/2009 10:34 AM

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

Gravatar
Excellent solution. I have no words to express
Posted by Sekher on 2/26/2009 5:15 PM

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

Gravatar
I usually get things fixed and don't say thanks. but thanks bro! I hope that makes you feel a bit better when you get a bad day... you made someone else day.. respect
Posted by Jah Rastafari on 2/26/2009 7:08 PM

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


Thanks so much.
Posted by phc_173 on 2/27/2009 6:48 PM

# re: The 'Microsoft..ACE.OLEDB.12.0' provider is not registered on the local machine


I was trying to connect VS 2008 with MS Access 2007

I am getting the error "Provider=Microsoft.ACE.OLDEDB.12.0" is not registered in the local machine

Mine is Windows Vista Home Premium 32 bit OS

I have MS Access 2007, MS Office 2007....I have also downloaded and installed the MS Access Database engine to make sure I have all the dataconnectivity components.

My code is

Dim myConnection As New OleDb.OleDbConnection
Try
myConnection.ConnectionString = "Provider=Microsoft.ACE.OLDEDB.12.0, Data Source = c:\users\swapna\Documents\Database1.accmdb;"
myConnection.Open()
Catch ex As Exception
MessageBox.Show("Cannot connect", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

End Try


but am getting the error Provider=Microsoft.ACE.OLDEDB.12.0" is not registered in the local machine

somebody please help me to resolve this, i have almost spent 2 complete days going through this---anyhelp will be highly appreciatedd....
Posted by Swapna on 3/2/2009 6:32 PM

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

Gravatar
Thank you
Posted by granit on 3/15/2009 7:30 AM

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

Gravatar
I found Armando Restrepo's solution worked for me. Great post Chris. Keep blogging.
Posted by Ghazanfar on 4/1/2009 2:46 PM

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


You saved my bacon!

Thanks
Posted by Srikanth on 4/11/2009 3:09 AM

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

Gravatar
Hey dudes , I got d same problem in my vista Systems....... Ur first solution is Excellent wonderful . Thank u very much ........Dudes........
Posted by Aravind on 4/20/2009 4:54 PM

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

Gravatar
I have been trying to install a domino simulation software on my system and it keeps displayin the above error. some1 pls help mi out here. How do i sort this out?
Posted by Jay on 5/2/2009 7:20 AM

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

Gravatar
Thanks...
Posted by Sohbet on 5/14/2009 9:32 AM

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


Thanks Amanda. It works.
Posted by Hawkey on 5/20/2009 12:55 AM

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

Gravatar
Thanks for your idea!. I tried yours and my soft has run very well!. Many thanks!
Posted by Dave on 7/6/2009 11:53 PM

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

Gravatar
thank you very much! there is my problem!
Posted by HuyenVan on 7/11/2009 9:25 PM

# The 'Microsoft.Jet.OLEDB.4.0' provider not work with IE7 in window Vista Home Primium

Gravatar
I have problem with Ms Access Driver.
Posted by teav dara on 7/31/2009 3:57 AM

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

Gravatar
tks it's works
Posted by iqbal on 8/8/2009 12:46 AM

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


Hello all, I've been struggling with this same issue for a few days now. I am using Windows Server 2008 (64bit), IIS 7. I have tried the fix above (change application pool setting) but it gives the following error:

Service Unavailable

--------------------------------------------------------------------------------

HTTP Error 503. The service is unavailable.

I am also using Express Edition which means I can't try the other fix which seems to work which is to force the app to use the 32 bit change the target cpu to x86 in the advanced compiler options because Express doesn't have these options.

Does anyone know of anything else I can try? Is there any other way I can change the target cpu to x86?

Any advice would be very much appreciated!

Vicky
Posted by Vicky on 8/8/2009 4:05 AM

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

Gravatar
Hey dudes , I got d same problem in my vista System...plz tell me how m i resolve it????.jet 4.0 is also not available on my VISTA system
Posted by RItu on 8/19/2009 12:13 AM

# The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

Gravatar
hai

i am getting the above error while i uploded the file in my server. the same code works fine on local machine. plz help me out..
Posted by savitha on 8/21/2009 6:40 PM

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


Wow! This is like a gift that keeps on giving! I am running a Vista 64bit and trying to get access 2007 and excel 2007 to connect to sql server 2005. I was having errors running the connect scripts until I found this blog. I installed IIS7 and made the recommended changes and Wolla!!!!

Awesome, thanks!
Posted by karen on 8/28/2009 4:45 PM

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

Gravatar
Gracias al post de Armando Restrepo pude hallar la solución a mi problema.... "Data source name not found and no default driver specified"...

Posted by Marcos Maldonado Aguirre on 8/29/2009 12:09 PM

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

Gravatar
I used window vista 64bit, i can't connect provider:microsoft.jet.oledb.4.0
what can i got provider microsoft.jet.oledb.4.0
Posted by Like This on 10/17/2009 9:12 PM

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


It works for me when I changed the build to x86 only. thanks man
Posted by Ali Murtaza on 10/19/2009 7:04 AM

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

Gravatar
I get the same error on a Vista 64bit machine when I try to tun a .NET program that I purchased. I am assuming that it's because the software is a 32bit application? If so is there nay way around this?

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

Thanks
Posted by Brian on 11/2/2009 2:25 AM

Post Comment


Title *
Name *
Email
Url
Comment *  
Please add 7 and 6 and type the answer here: