潜在的错误?

扫码查看
本文介绍了潜在的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有人可以试试吗?使用一个类创建一个新的.NET类库。

创建一个简单实例化ADODB.Connection实例的方法。

您需要在下面引用ADODB程序集。 NET选项卡。构建

项目。现在创建一个vbscript文件,创建一个你刚刚构建的类的对象。然后调用public方法(它将尝试
实例化ADODB.connection)。如果你已经添加了一个强密钥和

注册了类型库,并将程序集放在全局程序集中

cache一切正常。但是,尝试将组件移动到没有

visual studio(带有安装项目)的计算机上,看看你是怎么回事。


我得到一个文件或程序集名称ADODB,或其中一个依赖项不是

found。怎么回事?

Jesse

Hi,

Can somebody try this? Make a new .NET class library with one class.
Create a method that simply instantiates an instance of ADODB.Connection.
You will need to reference the ADODB assembly under .NET tab. Build the
project. Now make a vbscript file that creates an object of the class you
have just built. Then call the public method (which will attempt to
instantiate the ADODB.connection). If you have added a strong key and
registered the type library, and placed the assembly in the global assembly
cache all works fine. However, try moving the assembly to a computer without
visual studio (with a setup project) and see how you go.

I get a "File or Assembly name ADODB, or one of its dependencies was not
found". How bout you?
Jesse

推荐答案




程序集


,不要使用


without






这篇关于潜在的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 11:18
查看更多