本文介绍了升级到Windows 10后,如何纠正VB .NET中的此ADODB缺少参考错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到Windows 10后,我在VB .NET应用程序中遇到了很多与损坏的ADODB参考有关的错误。我从此,它似乎可以修复损坏的参考错误。该解决方案实际上使该应用程序可以在我的Windows 10系统上为我的一些同事使用。不幸的是,在我使用Recordset的应用程序中的任何地方,仍然出现此错误:

After upgrading to Windows 10, I got a lot of errors relating to a broken ADODB reference in my VB .NET application. I performed the steps described in the answer from this topic and that seemed to fix the broken reference errors. That solution actually got the application working for some of my colleagues on their Windows 10 systems. Unfortunately, anywhere in the application where I'm using a Recordset, I'm still getting this error:

汇编'ADODB,版本= 2.5.0.0所需的引用,Culture = neutral,PublicKeyToken = null,类型为 ADODB.Recordset。将一个添加到您的项目中。

"Reference required to assembly 'ADODB, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null' containing the type 'ADODB.Recordset'. Add one to your project."

当我进行更多调查时,发现参考的位置为 C:\Program Files(x86)\Common Files\System\ado\msado25.tlb。使用此路径,我尝试使用Tlbimp.exe注册msado25.tlb类型库,但似乎无济于事。

When I investigated some more, I found that the reference's location was "C:\Program Files (x86)\Common Files\System\ado\msado25.tlb". With this path, I tried to register msado25.tlb type library using Tlbimp.exe but it didn't seem to help any.

我有一种感觉缺少一些愚蠢的东西,但我不知道它是什么。任何帮助将不胜感激。谢谢。

I have a feeling that I'm missing something stupid but I have no idea what it is. Any help would be greatly appreciated. Thank you.

以下一些其他相关屏幕快照可能会有所帮助:

Here are some additional related screenshots that may help:

推荐答案

Windows 10周年更新后,我遇到了这个问题,并使用tlbimp.exe解决了该问题。 tlbimp会生成一个新的adodb.dll,您可以在项目中引用它。

I had this issue after the Windows 10 Anniversary update and I solved it by using tlbimp.exe. tlbimp generates a new adodb.dll and you can reference this in your project.

C:\Program Files(x86)\Microsoft SDKs\Windows\ v7.0A\Bin\tlbimp.exe C:\Program Files(x86)\Common Files\System\ado\msado21.tlb

"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\tlbimp.exe" "C:\Program Files (x86)\Common Files\System\ado\msado21.tlb"

类型库导入器将在COM类型库中找到的类型定义转换为公共语言运行时程序集中的等效定义。

The Type Library Importer converts the type definitions found within a COM type library into equivalent definitions in a common language runtime assembly.

这篇关于升级到Windows 10后,如何纠正VB .NET中的此ADODB缺少参考错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 10:05