Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 09, 2011 07:09 PM by Lannie
Jan 24, 2011 03:06 PM|LINK
I get the error 'The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.', when i am trying to read an excel file.
I have already installed 2007 Office System Driver: Data Connectivity Components available on
I can see the entry of the installed driver on the registry.
The web server is a Windows 2003 R2 Enterprise x64 R2 machine.
After installing the driver the machine has been restarted.
Same build works on a similar machine (Similar Hardware/OS). Hence ruled out rebuilding the code in 64 bit settings.
Thanks in advance.
Jan 24, 2011 05:04 PM|LINK
You need to allow 32-bit application to run on 64-bit machine.
For that setting
You can either do
1. Open command prompt and navigate to the %systemdrive%\Inetpub\AdminScripts
2. cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true
That should do it hopefully.
OR you can go the IIS Manager and for the application pool (the one your application is running under) go to advanced settings and there should be the option to Enable 32-bit Apps on x64 machines.
Jan 25, 2011 04:31 PM|LINK
My problem was solved by installing a correct version of the oledb driver.
you would need the 32bit version called "AccessDatabaseEngine.exe" NOT the 64bit edition which is "AccessDatabaseEngine_x64.exe".
Apr 08, 2011 07:13 PM|LINK
Thanks for the info but my quesiton is why is the 64 bit version not correct? If the 64 bit version is not appropiate for 64 bit Windows 2008 R2 then when is the 64 bit version appropriate?
Apr 08, 2011 10:27 PM|LINK
OLEDB is 32-bit
Apr 08, 2011 11:13 PM|LINK
If OLEDB is 32-bit I still think my question is valid and you that is not an answer. Microsoft has a 64 bit install named
AccessDatabaseEngine_x64.exe. If that tool will not work on Windows 2008 R2 bit then where does it work? The instuctions refer to OLEDB - if OLEDB is only 32 bit then what is
Apr 08, 2011 11:28 PM|LINK
OLEDB is an old connection driver that can communicate with MS Office (Access, Excel), and other databases.
I believe you will find it listed as 32-bit only on MS Tech Net website.
For 64-bit, MS Office uses ADO.NET.
Apr 08, 2011 11:38 PM|LINK
If I should be looking to a different product then please point me there
A 64 bit applicaiton is on www.microsoft.com/download/ with a date fo 12/16/2010
Based on the name and instuctions there is a 64 bit version and it support OLEDB
Please point me to the ADO.NET if that is what I should be using.
Users upload data in Excel to an ASP.NET Web Application that I recently migrated from Windows 2003 32 bit to Windows 2008 R2
But I still contend I have a valid question.
AccessDatabaseEngine_x64.exe is not vailid on Windows 2008 R2 then where is it valid?
Apr 09, 2011 07:09 PM|LINK
Do not confuse the database engine with the various database connection protocols (ODBC, OLEDB, ADO.NET, and many others)
I have read the limitation of OLEDB is that it is limited to 32-bit.
I always found OLEDB too limiting and ADO.NET providing more functionality, so never wasted my time usng OLEDB.