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

系统环境:

windows 8.1 x64

VS2013 pro x86

MS Access 2013 x64


问题原因与解决方法:

出现这个问题的原因是vs版本和access版本的平台不兼容导致的。所以解决原因很简单,安装 access的x86版本的数据库驱动即可。下载地址如下:

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


安装x86版本的驱动。


另外,数据库连接池需要设置为允许x86应用程序运行。设置方法如下:

Now, whether your web application runs in x86 (32-bit) or x64 mode is not determined by your build settings but by the settings of your application pool: Select the application pool in IIS Manager, go to Properties/Advanced Settings and verify the setting of Enable 32-bit Applications. If it is set, your application runs in x86 mode, otherwise in x64 mode. Make sure it is the same mode as the one of which you installed the ACE driver.


X64的系统需要将原来的 Enable 32-bit Application 改为 true

你可能感兴趣的:(Application)