简体   繁体   English

“未在本地计算机上注册'Microsoft.ACE.oledb.12.0'提供程序的在线错误。”

[英]online error of “The 'Microsoft.ACE.oledb.12.0' provider is not registered on the local machine.”

I am creating my website using my visual studio and Microsoft access as to create my database. 我正在使用Visual Studio和Microsoft访问权限来创建网站,以创建数据库。 in my local server and my own PC this web compile and run perfectly , but whenever I try to upload my web on the server and then run the part of my website that the web try to get access to the database I get the following error : 在我的本地服务器和我自己的PC上,此Web可以编译并完美运行,但是每当我尝试将Web上传到服务器上,然后运行网站的一部分以使Web可以访问数据库时,都会出现以下错误:

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

I've searched the internet and they all said it's because you are running on 64 bit windows and its' configs are for win 32 bit. 我搜索了互联网,他们都说这是因为您正在64位Windows上运行,并且其配置是针对Win 32位的。

I have windows XP 32 bit and it works perfectly on my PC, but I think it's because of the servers local machines that are running on windows 64 bit (maybe). 我有32位Windows XP,并且可以在我的PC上完美运行,但是我认为这是因为在64位Windows(也许)上运行的服务器本地计算机。 but the problem is I don't know what to do here. 但问题是我不知道该怎么办。 I don't know what to do. 我不知道该怎么办。 and all the internet solutions were for offline console programs, not the web services. 所有的Internet解决方案都是针对脱机控制台程序的,而不是针对Web服务的。

Try by installing this?: http://www.microsoft.com/en-us/download/details.aspx?id=13255 尝试通过安装吗?: http : //www.microsoft.com/zh-cn/download/details.aspx ? id= 13255

OR 要么

  1. Open the IIS 7.5 manager and select the application pool corresponding to your web application. 打开IIS 7.5管理器,然后选择与您的Web应用程序相对应的应用程序池。
  2. Right click the application pool and select 'Advanced settings'. 右键单击应用程序池,然后选择“高级设置”。
  3. Select the field 'Enable 32-bit applications' and change it to 'true'. 选择“启用32位应用程序”字段,并将其更改为“ true”。
  4. Restart your application pool and access your application to fix the error you saw. 重新启动您的应用程序池并访问您的应用程序以解决所看到的错误。

Greatz 大茨

The simplest workaround is to change the Target Platform of your application through Visual Studio menu 最简单的解决方法是通过Visual Studio菜单更改应用程序的目标平台

In Project explorer: 在项目浏览器中:

 Solution (Right-Click) -> Configuration Manager -> Active Solution Platform -> x86

If the x86 option is not already there, then select NEW, name it x86 , Copy Settings from AnyCPU and check Create new project platforms 如果还没有x86选项,则选择“新建”,将其命名为x86 ,从AnyCPU复制设置并选中“创建新项目平台”。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ''Microsoft.ACE.OLEDB.12.0' 提供程序未在本地计算机上注册。' - 'The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.' “Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册。 - The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. “ Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册。 错误 - The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. Error 错误:“ Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册” - Error: 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine' Microsoft.ACE.OLEDB.12.0'提供程序未在本地计算机上注册错误 - Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine error 一些有关“ Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册的问题。 - Some issue about “The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.” “ Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册。 C# - The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. c# System.InvalidOperationException:'Microsoft.ACE.OLEDB.12.0' 提供程序未在本地计算机上注册。' - System.InvalidOperationException: 'The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.' 未在本地计算机上注册“ Provider = Microsoft.ACE.OLEDB.12.0”提供程序 - The 'Provider=Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine microsoft.ace.oledb.12.0提供程序未在本地计算机上注册 - the microsoft.ace.oledb.12.0 provider is not registered on the local machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM