简体   繁体   中英

Adding third party reference dll's to C# project

I'm working on C# winforms project which connects to Oracle DB via ODP. I included Oracle.DataAccess.dll file for accessing ODP . I created a folder named references under the solution folder near the projects and included it from the necessary projects under the solution. I also made the dll as include under properties->publish->application files of main project. But when i deploy the applicaton to another computer it throws exception as:

Could not load file or assembly 'Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.

Any suggestion how i can handle this please?

您可以随时在您的dll上使用Dependency Walker来查看它缺少哪些依赖项。

First, make sure that the Oracle.DataAccess Assembly is indeed in place on the system. It might well be that something failed in your installation process.

If it is in place, and you still get the error, you will need to install the Oracle client on this system. ODP is just a wrapper using the client. It will not enable a system without an Oracle client to access an Oracle database as far as I remember.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM