简体   繁体   English

一些有关“ Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册的问题。

[英]Some issue about “The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.”

I get the issue 我明白了

Some issue about "The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.. 有关“ Microsoft.ACE.OLEDB.12.0”提供程序的某些问题未在本地计算机上注册。

I've already installed Microsoft Access Database Engine 2010 Redistributable and 2007 one on the server machine which has iis and SQL server. 我已经在具有iis和SQL Server的服务器计算机上安装了Microsoft Access Database Engine 2010 Redistributable和2007 one。 When I am debugging in VS on the server, there is no error and it works well; 当我在服务器上的VS中调试时,没有错误,并且运行良好; although when I am trying to import excel other PC's via internet with HTTP protocol it returns error, if I try it on the server via http web page it returns "The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine." 虽然当我尝试使用HTTP协议通过Internet导入excel其他PC时返回错误,但是如果我通过http网页在服务器上尝试将其返回,则返回"The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine." this error. 这个错误。

I can only use it just debugging and already have access database engine, how can I fix it? 我只能在调试时使用它,并且已经可以访问数据库引擎,该如何解决?

Here is my connectionstrings in web config 这是我在Web配置中的连接字符串

<add name ="Excel03ConString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Extended Properties='Excel 8.0;HDR={1}'"/>
<add name ="Excel07ConString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties='Excel 12.0;HDR={1}'"/>

ps:I've got the error both oledb.4.0 and oledb.12.0 ps:我同时收到oledb.4.0和oledb.12.0的错误

On IIS7 and higher I believe you can enable 32-bit on the application pool. 在IIS7及更高版本上,我相信您可以在应用程序池上启用32位。

Open inetmgr and go to application pools. 打开inetmgr并转到应用程序池。 For the application pool that your web site is using, click "Advanced settings" in the pane to the right. 对于您的网站使用的应用程序池,在右侧窗格中单击“高级设置”。

Find the setting "Enable 32 Bit Applications" and change the value to "True". 找到设置“启用32位应用程序”,并将其值更改为“ True”。

Instead of changing the default ASP.NET application pool, you should create your own application pool for your web site. 您应该为网站创建自己的应用程序池,而不是更改默认的ASP.NET应用程序池。

在此处输入图片说明

You need to change your working platform from Configuration Manager. 您需要从Configuration Manager更改工作平台。

Link: How to change working platform (x86/x64) (You can check the answer of Steve) 链接: 如何更改工作平台(x86 / x64)(您可以查看Steve的答案)

暂无
暂无

声明:本站的技术帖子网页,遵循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.' “未在本地计算机上注册&#39;Microsoft.ACE.oledb.12.0&#39;提供程序的在线错误。” - online error of “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:&#39;Microsoft.ACE.OLEDB.12.0&#39; 提供程序未在本地计算机上注册。&#39; - System.InvalidOperationException: '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 未在本地计算机上注册“ 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 “&#39;Microsoft.ACE.OLEDB.12.0&#39; 提供程序未在本地计算机上注册” - "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
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM