Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Can connect oracle database in cross plateform xamarin?
 
it is showing error when open the connection(oracle connection is not openning)
 
Error
Unhandled Exception: System.DllNotFoundException: occurred


What I have tried:

public static string constr = @"Data Source=(DESCRIPTION =
   (ADDRESS_LIST =
     (ADDRESS = (PROTOCOL = TCP)(HOST = *********)(PORT = ****))
   )
   (CONNECT_DATA =
     (SERVER = DEDICATED)
     (SERVICE_NAME = ******)
   )
 ); User ID=****;Password=****;Unicode=True";



using (OracleConnection conn = new OracleConnection(connectionstring.constr))
        {
            if (conn.State == ConnectionState.Closed)
            {
                conn.Open();
            }
            //using (OracleConnection con = new OracleConnection(connectionstring.constr))
            //{
            UsernameEntry.Text = "";

            OracleCommand cmd = new OracleCommand("SELECT * FROM tbltest", conn);
            OracleDataAdapter oda = new OracleDataAdapter(cmd);
            DataSet ds = new DataSet();
            oda.Fill(ds);
            UsernameEntry.Text = ds.Tables[0].Rows[0]["LOGINID"].ToString();
            //UsernameEntry.Text = "Hello Kuldeep";

        }
Posted
Comments
F-ES Sitecore 3-Dec-18 7:03am    
From the error message it looks like a DLL is missing, nothing to do with your code.
ZurdoDev 3-Dec-18 9:39am    
What he said, ^.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900