'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine though Microsoft.ACE.OLEDB.12.0 is installed

狂风中的少年 提交于 2019-12-04 19:52:04

If you system is 64 bit,Then you have to change your pool settings to allow 32 bit applications that is OLEDB. ,then this link might help.

http://help.webcontrolcenter.com/KB/a1114/how-to-enable-32-bit-application-pool-iis-7-dedicatedvps.aspx

I have searched for a solution to this issue for a long time and finally i did find.

My System: IIS (Version 7.5.7600.16385) is running on a 64-bit.

First you have to install "AccessDatabaseEngine" you can find the exe below

http://www.microsoft.com/en-us/download/details.aspx?id=13255

After you install it to your server you have to do one more thing.

Go to your application pool and change "Managed pipeline mode" to Classic.

That's it!!

Now you can use "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=[SOURCE];Extended Properties=Excel 12.0;" connection string

Pankil Agrawal

convert to data base to .mdb. To convert you .accdb file to .mdb check this link convert and change connection string like this

<add name="ConnectionString4" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:/HostingSpaces/persistanceplus/doaminname.com/wwwroot/Database3.mdb"/>

this is best solution of this problem.

It may be problem with your project configuration settings. If it set to Any CPU it cannnot work properly. You should specify x86 or x64 configuration (depends on installed OLE provider version. Detailed instruction here

Right click on the project and select the bottom most option that is properties, and uncheck "prefer 32-bit" in build tab

Thanks and Regards, Rk_Hirpara

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!