-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: WithLoveArul
Message 1 in Discussion


Hi friends, 
I am trying to build the below code and getting the following error 
"COM Interop registration failed. Could not find a type library for assembly 
'Oracle.DataAccess'."
This is because of the readonly property of type 
Oracle.DataAccess.Client.OracleConnection 
On the other hand if i use the property of type 
System.Data.OracleClient.OracleConnection or 
System.Data.OleDb.OleDbConnection, i could able to define the interface and 
also able to implement.
 
Can you please help me to solve this issue...actually i need to rework on a 
project which is built for SQL server, 
and i wanna move this into Oracle.... 
I am Using ODP.Net Client for connecting Oracle from .Net 
Code: 
Imports System.Runtime.InteropServices 
Imports Oracle.DataAccess.Client 
Public Interface IDataBase  
ReadOnly Property connection() As Oracle.DataAccess.Client.OracleConnection 
Function Connect() As Integer 
End Interface 
<ClassInterface(ClassInterfaceType.None)> _ 
Public Class DataBase  
Implements IDataBase 
Private DBConnection As Oracle.DataAccess.Client.OracleConnection 
Public Function Connect() As Integer Implements IDataBase.Connect 
End Function 
Public ReadOnly Property connection() As 
Oracle.DataAccess.Client.OracleConnection Implements IDataBase.connection 
Get  
Return DBConnection 
End Get 
End Property 
End Class

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to