Hello.

Im new to Informix
Im getting some problems connecting to Iformix database.
I already install DB2 Client v9.5. This installs IBM.Data.Informix.dll 9.5.0.1.

When a try to connect my connection string give a Invalid Argument error.
my code:

Code:
private void btConnect_Click(object sender, EventArgs e)
        {
            

        

            
           string constr = "Host=" + "abutre" + "; " +
                    "Service=" + "abutre_uci_tcp" + "; " +
                    "Server=" + "abutre_uci_tcp" + "; " +
                    "Database=" + "uci2" + "; " +
                    "Uid=" + "uci" + "; " +
                    "Protocol= " + "onsoctcp" + ";" +
                    "Password=" + "uci" + "; " +
                    "Client_Locale=" + "en_US.CP1252" + ";" + 
                    "DB_Locale=" + "en_US.819" + ";";
                    "Persist Security Info=" + "True" + ";" +
                    "Authentication=" + "Server" + ";";

            IfxConnection conn = new IfxConnection();
            
            try
            {

                conn.ConnectionString = constr;
                conn.Open();

                IfxCommand iCommand = new IfxCommand();
                iCommand.CommandText = "select * from tmp_teste_informix";
                IfxDataAdapter iDataAdapter = new IfxDataAdapter(iCommand.CommandText, conn);
                iDataAdapter.Fill(ds);
                dataGridView1.DataSource = ds.Tables[0];
                MessageBox.Show("connection Sucessfull!");

            }
            catch (Exception ex)
            {
                MessageBox.Show("Problem with connection attempt: " + ex.Message);
            }

}
I already view connection string in ConnectionStrings.com - Forgot that connection string? Get it here!

help meeee