Click here to Skip to main content
15,890,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am getting this error after deploying asp.net website in IIS.

the microsoft.ace.oledb.12.0 provider is not registered on the local machine.

I am using MS Access 2013 database with asp.net c# on windows 7.
I have changed all platforms to x86. This is my connection string in web.config file.

<connectionStrings>
    <add name="score_cs"
         connectionString="Provider=Microsoft.ACE.OLEDB.12.0; Data source=D:\SOFTWARE APPLICATIONS\EMP_SCORE\EMP_SCORE\EMP_SCORE\EMPSCORE.accdb"/>
  </connectionStrings>


Need help!!

What I have tried:

changed all platforms to x86 but still not working
Posted
Updated 29-Jun-16 22:15pm

1 solution

You have to Download and install the MS Access 2007 Database Engine..

Download 2007 Office System Driver: Data Connectivity Components from Official Microsoft Download Center[^]
I this will work..
 
Share this answer
 
Comments
planetz 30-Jun-16 4:23am    
still it is not working..!! I installed Microsoft Access Database Engine 2010 Redistributable also.....
JayantaChatterjee 30-Jun-16 4:27am    
Not the "Access Database Engine 2010 Redistributable", only install "MS Access 2007 Database Engine", from provided link..
I had this problem also...
planetz 30-Jun-16 5:55am    
will it work for 2013?? I installed this only. Still not working.
JayantaChatterjee 30-Jun-16 6:02am    
My problem is solved after installing the "MS Access 2007 DB Engine"..
some key points are:-
Restart your computer. if you already did that,
then you can try installing the "MS office 32-bit version"...
Else
Sorry I'm out of Points. :-)
planetz 1-Jul-16 0:45am    
I changed default settings of project to 32 bit in IIS. Now it is working. It is a 'bit' issue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900