简体   繁体   English

“Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册

[英]The 'Microsoft.ACE.OLEDB.12.0' provider is not registed on the local machine

I developed a .net-core web page with an angular project.我开发了一个带有 angular 项目的 .net-core 网页。 After i developed it i wanted to host this website via IIS.在我开发它之后,我想通过 IIS 托管这个网站。 this worked fine on my computer where i developed it.这在我开发它的计算机上运行良好。 After that worked i wanted to host it on another Computer but there it's not working.在那工作之后,我想将它托管在另一台计算机上,但在那里它不起作用。 I get this error message.我收到此错误消息。 System.InvalidOperationException: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. System.InvalidOperationException:“Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册。 After i got this error i watched in the Internet what i can do against this.收到此错误后,我在互联网上查看了我可以采取的措施。 Nearlly all posts i found says that i need to install Microsoft Access Database Engine 2010 .我发现的几乎所有帖子都说我需要安装Microsoft Access Database Engine 2010 I thought ok may it works.我想可以,它可以工作。 Surprise it didn't.惊讶它没有。

Does anyone has any ideas what i can do against this error?有没有人知道我可以针对这个错误做些什么?

I have several programs running at work.我有几个程序在运行。 These all uses Access databases (accdb) and Excel workbooks (xlsx).这些都使用 Access 数据库 (accdb) 和 Excel 工作簿 (xlsx)。 There is a mix of W7 and W10 out there and the programs are working on all of them.那里有 W7 和 W10 的组合,程序正在处理所有这些。 However, on both OS machines this has to be installed:但是,在两台操作系统机器上都必须安装:

Microsoft Access Database Engine 2010 Redistributable, https://www.microsoft.com/en-us/download/details.aspx?id=13255 Microsoft Access 数据库引擎 2010 Redistributable, https://www.microsoft.com/en-us/download/details.aspx? id =13255

I implemented a check of whats installed on the users computers.我对用户计算机上安装的内容进行了检查。 It just logs to the inifile if the ACEOLEDB.DLL exists and where to be found.如果 ACEOLEDB.DLL 存在以及在哪里可以找到,它只会记录到 inifile。 Then I check my log file for which machine/user that returns an error.然后我检查我的日志文件返回错误的机器/用户。 This is what i found: On W10 computers this is definitely working with the above mentioned install:这就是我发现的:在 W10 计算机上,这绝对适用于上述安装:

AceOleDbAlt1_NOT_EXISTING!=C:\\Program Files (x86)\\Common Files\\microsoft shared\\OFFICE12\\ACEOLEDB.DLL AceOleDbAlt1_NOT_EXISTING!=C:\\Program Files (x86)\\Common Files\\microsoft shared\\OFFICE12\\ACEOLEDB.DLL

AceOleDbAlt2_EXISTS=C:\\Program Files (x86)\\Microsoft Office\\root\\VFS\\ProgramFilesCommonX86\\Microsoft Shared\\OFFICE16\\ACEOLEDB.DLL AceOleDbAlt2_EXISTS=C:\\Program Files (x86)\\Microsoft Office\\root\\VFS\\ProgramFilesCommonX86\\Microsoft Shared\\OFFICE16\\ACEOLEDB.DLL

AceOleDbAlt3_EXISTS=C:\\Program Files (x86)\\Common Files\\microsoft Shared\\OFFICE14\\ACEOLEDB.DLL AceOleDbAlt3_EXISTS=C:\\Program Files (x86)\\Common Files\\microsoft Shared\\OFFICE14\\ACEOLEDB.DLL

On a W7 machine, this works:在 W7 机器上,这有效:

AceOleDbAlt1_EXISTS=C:\\Program Files (x86)\\Common Files\\microsoft shared\\OFFICE12\\ACEOLEDB.DLL AceOleDbAlt1_EXISTS=C:\\Program Files (x86)\\Common Files\\microsoft shared\\OFFICE12\\ACEOLEDB.DLL

AceOleDbAlt2_EXISTS=C:\\Program Files (x86)\\Microsoft Office\\root\\VFS\\ProgramFilesCommonX86\\Microsoft Shared\\OFFICE16\\ACEOLEDB.DLL AceOleDbAlt2_EXISTS=C:\\Program Files (x86)\\Microsoft Office\\root\\VFS\\ProgramFilesCommonX86\\Microsoft Shared\\OFFICE16\\ACEOLEDB.DLL

AceOleDbAlt3_NOT_EXISTING!=C:\\Program Files (x86)\\Common Files\\microsoft Shared\\OFFICE14\\ACEOLEDB.DLL AceOleDbAlt3_NOT_EXISTING!=C:\\Program Files (x86)\\Common Files\\microsoft Shared\\OFFICE14\\ACEOLEDB.DLL

So, it may not answer your question, but i hope it gives you an idea of what helps.因此,它可能无法回答您的问题,但我希望它能让您了解什么有帮助。

Download and run this test access connection application:下载并运行此测试访问连接应用程序:

https://1drv.ms/u/s!Avrwal_LV4qxhpdBSWWSP5Ivv38AZw?e=BzIAhE https://1drv.ms/u/s!Avrwal_LV4qxhpdBSWWSP5Ivv38AZw?e=BzIAhE

There is a x32 bit version, and a x64 bit version.有 x32 位版本和 x64 位版本。 It will let you browse to any accdb file, and open the file.它将让您浏览到任何 accdb 文件,并打开该文件。 There is no install, and it is a "tiny" exec file (about 30k - super small).没有安装,它是一个“微小”的 exec 文件(大约 30k - 超小)。

The screen it has looks like this:它的屏幕看起来像这样: 在此处输入图片说明

So run the exe in the above zip file.所以运行上面zip文件中的exe。 The x32 version, or x64 version displays what bit size it is running as. x32 版本或 x64 版本显示它运行时的位大小。 You can simple select the database, and then hit open.您可以简单地选择数据库,然后点击打开。 If you have the ACE engine installed correctly, then it will work.如果您正确安装了 ACE 引擎,那么它将起作用。

暂无
暂无

声明:本站的技术帖子网页,遵循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'提供程序的在线错误。” - online error of “The 'Microsoft.ACE.oledb.12.0' provider is not registered on the local machine.” 在没有可重新分发数据库引擎的情况下解决“ microsoft.ace.oledb.12.0'提供程序未在本地计算机上注册” - Solving “microsoft.ace.oledb.12.0' provider is not registered on the local machine” without the DB Engine Redistributable Microsoft.ACE.OLEDB.12.0 提供程序未在本地计算机上注册,即使它确实已安装 - The Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine even if it actually IS installed “Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机 Office 365 上注册 - 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine Office 365 Visual Studio 错误:“Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册 - Visual Studio Error: 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine 将数据导出到 MS ACCESS 时,“Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册 - The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine while data export to MS ACCESS “'Microsoft.ACE.OLEDB.12.0' 提供程序未在本地计算机上注册”Win 10 64 位 - "The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine" Win 10 64 bit Microsoft.ACE.OLEDB.12.0'提供程序未在C#应用程序的本地计算机上注册错误 - Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine error in C# application 'Microsoft.ACE.OLEDB.12.0'提供程序未在本地计算机上注册',而无需安装Access Engine - 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine' without need to install Access Engine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM