潜在的错误? [英] Potential bug?
问题描述
有人可以试试吗?使用一个类创建一个新的.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
推荐答案
在目标计算机上安装MDAC
-
--- Nick Malik [微软]
MCSD,CFPS,认证Scrummaster
http://blogs.msdn.com/nickmalik
免责声明:此论坛中发表的意见是我自己的,而不是我雇主的b $ b代表。
我不代表我的雇主回答问题。我只是一个帮助程序员的
程序员。
-
Jessard <济***** @ discussions.microsoft.com>在消息中写道
news:77 ********************************** @ microsof t.com ...
install MDAC on the target computer
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I''m just a
programmer helping programmers.
--
"Jessard" <Je*****@discussions.microsoft.com> wrote in message
news:77**********************************@microsof t.com...
有人可以尝试这个吗?使用一个类创建一个新的.NET类库。
创建一个简单实例化ADODB.Connection实例的方法。
您需要在.NET选项卡下引用ADODB程序集。建立
项目。现在创建一个vbscript文件,创建一个刚刚构建的类的对象。然后调用public方法(它将尝试实例化ADODB.connection)。如果您添加了一个强密钥并注册了类型库,并将程序集放在全局
程序集缓存中,则一切正常。但是,尝试将程序集移动到没有visual studio的计算机
(使用安装项目)并看看你如何去。
我得到一个文件或程序集名称ADODB,或者其中一个它的依赖关系没有找到。怎么回事?
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
嗨尼克,
我有。首先是2.6,2.6,现在是2.8。
你试过吗?如果有的话,它有效吗?
Jesse
" Nick Malik [微软]"写道:
Hi Nick,
I have. First 2.6, 2.6 and now 2.8.
Did you try it and if so did it work?
Jesse
"Nick Malik [Microsoft]" wrote:
在目标计算机上安装MDAC
-
--- Nick Malik [微软]
MCSD,CFPS,认证Scrummaster
http://blogs.msdn.com/nickmalik <免责声明:本论坛中表达的意见是我自己的,而不是我雇主的代表。
我不代表我的雇主回答问题。我只是一名帮助程序员的程序员。
-
Jessard <济***** @ discussions.microsoft.com>在消息中写道
新闻:77 ********************************** @ microsof t.com。 ..
install MDAC on the target computer
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I''m just a
programmer helping programmers.
--
"Jessard" <Je*****@discussions.microsoft.com> wrote in message
news:77**********************************@microsof t.com...
有人可以试试吗?使用一个类创建一个新的.NET类库。
创建一个简单实例化ADODB.Connection实例的方法。
您需要在.NET选项卡下引用ADODB程序集。建立
项目。现在创建一个vbscript文件,创建一个刚刚构建的类的对象。然后调用public方法(它将尝试实例化ADODB.connection)。如果你已经添加了一个强密钥并注册了类型库,并将程序集放在全局
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
程序集
缓存中,则一切正常。但是,尝试将程序集移动到计算机
cache all works fine. However, try moving the assembly to a computer
,不要使用
without
visual studio(带安装项目),看看你如何去。
我得到了a文件或程序集名称ADODB,或其中一个依赖项未找到。怎么回事?
Jesse
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
在目标计算机上安装MDAC
-
--- Nick Malik [微软]
MCSD,CFPS,认证Scrummaster
http://blogs.msdn.com/nickmalik
免责声明:意见表达于这个论坛是我自己的,而不是我雇主的b $ b代表。
我不代表我的雇主回答问题。我只是一个帮助程序员的
程序员。
-
Jessard <济***** @ discussions.microsoft.com>在消息中写道
news:77 ********************************** @ microsof t.com ...
install MDAC on the target computer
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I''m just a
programmer helping programmers.
--
"Jessard" <Je*****@discussions.microsoft.com> wrote in message
news:77**********************************@microsof t.com...
有人可以尝试这个吗?使用一个类创建一个新的.NET类库。
创建一个简单实例化ADODB.Connection实例的方法。
您需要在.NET选项卡下引用ADODB程序集。建立
项目。现在创建一个vbscript文件,创建一个刚刚构建的类的对象。然后调用public方法(它将尝试实例化ADODB.connection)。如果您添加了一个强密钥并注册了类型库,并将程序集放在全局
程序集缓存中,则一切正常。但是,尝试将程序集移动到没有visual studio的计算机
(使用安装项目)并看看你如何去。
我得到一个文件或程序集名称ADODB,或者其中一个它的依赖关系没有找到。怎么回事?
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
这篇关于潜在的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!