The type or namespace name 'oracle' could not be found error

前端 未结 2 400
别那么骄傲
别那么骄傲 2021-01-19 21:44

I am building C# Console Application to connect with database and do simple query.

But when I debug program, I get this error:

The type or namespace          


        
相关标签:
2条回答
  • 2021-01-19 22:22

    Agreed you need to reference :

     Oracle.DataAccess.dll
    

    You may need to be careful that you have the right Oracle client installed - if you have the 32bit one then you may need to force your app into 32 bit mode.

    For distribution you may also want to include all the dependencies in your BIN folder - for 32bit that would look like : enter image description here

    0 讨论(0)
  • 2021-01-19 22:24

    In the install location of the pack you downloaded there is

    Oracle.DataAccess.dll
    

    which you should reference. Here is a guide doing exactly that.

    0 讨论(0)
提交回复
热议问题