Sunday, September 20, 2020

[VB.net] namesapce or type specified in the imports oracle.dataaccess.types desn't contain any public member or cannot be found.

 Error message:

Type "OracleConnection" is not defined.

Type "OracleDataReader" is not defined.

Type "OracleCommand" is not defined.

Type "OracleDbType" is not defined.


Please confirm you import these file for your project reference:

System.Data.OracleClient.dll

Oracle.DataClient.dll


After Imported but found another problem, you need also import Microsoft.VisualBasic.Compatibility.dll :

namespace or type specified in the imports oracle.dataaccess.types desn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases

No comments :

Post a Comment