DB2Connection DLL错误VB.NET [英] DB2Connection DLL error VB.NET

查看:75
本文介绍了DB2Connection DLL错误VB.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我一直在为我的部门开发一些自行开发的应用程序,其中一个连接到DB2数据库并从中生成报告。它在我的机器上运行得非常出色,但今天早上当我在另一台用户机器上测试它时,它崩溃了。


我有两个不同的例外:

1)System.EntryPointNotFoundException:无法找到名为?nmpTraceOn的入口点?在DLL?db2app.dll?。

2)System.DLLNotFoundException:无法加载DLL?db2app.dll?。找不到指定的程序。


当我尝试在安装文件中打包DLL时,我仍然收到同样的错误。我认为它适用于我的机器,因为我安装了DB2开发人员工具包。有没有办法让程序链接到该DLL,或者我是否必须在每个人的机器上安装该工具包?


这是生成错误:

Hi all,

I''ve been working on a few home-grown apps for my department, one of which connects to a DB2 database and generates reports from it. It has worked splendidly on my machine, but this morning when I testing it on another users machine, it crashed.

I?ve gotten 2 separate exceptions:
1) System.EntryPointNotFoundException: Unable to find an entry point named ?nmpTraceOn? in DLL ?db2app.dll?.
2) System.DLLNotFoundException: Unable to load DLL ?db2app.dll?. The specified procedure could not be found.

When I tried to package the DLL in the install file, I still received the same error. I would think it works on my machine because I had the DB2 developers kit installed. Is there a way to get the program to link to that DLL, or am I going to have to get the kit installed on everyone?s machine?

This is the code that generates the error:

展开 | 选择 | Wrap | 行号

推荐答案

我认为你需要先用windows注册dll。

regdll或我认为的东西。谷歌如何用Windows注册.DLL文件,你应该找到它。

我认为需要先做才能使用它吗?
I think you need to register the dll with windows first.
regdll or something I think. Google how to register .DLL files with windows and you should find it.
I think that needs to be done before you can use it?


我试过在用户的机器上注册DLL,但它没有成功。还有其他想法吗?我差不多了......
I tried to register the DLL on the user''s machine, but it was not successful. Any other ideas? I''m about out of them....


失败说了什么?我对你如何使用包含的类有点困惑。

这是一个.NET dll还是一个COM dll?

你不能重新编写.NET dll是Windows,但CLR是全球大会现金(GAC)。但也许只适用于Web应用程序。

无论如何,它是什么类型的DLL?
What did the failure say? I am a little confused at how you were using the classes contained withen.
Is this a .NET dll or a COM dll?
You don''t reegister .NET dll''s with windows but with the CLR in the global assambly cash (GAC). But maybe that only applies to web applications.
Regardless, what type of DLL is it?


这篇关于DB2Connection DLL错误VB.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆