0

I have a windows application that write with c# 4. in this windows application i get user name, password, server IP and etc from user and create a oracle connection string from this inputs and test connect to database by this code:

private OperationStatus CheckConnectToOracleDatabase(string connectionString)
{
    var oracleConnection = new OracleConnection();
    try
    {
        oracleConnection.ConnectionString = connectionString;
        oracleConnection.Open();
        oracleConnection.Close();
        return new OperationStatus { Status = true };
    }
    catch (OracleException ex)
    {

        return new OperationStatus { Status = false, ExceptionMessage = ex.Message };
    }
    catch (Exception ex)
    {
        return new OperationStatus { Status = false, ExceptionMessage = ex.Message };
    }
    finally
    {
        if (oracleConnection.State != ConnectionState.Closed)
            oracleConnection.Close();
    }
}

In my platform everything is OK and test is successful, but in the platform of customer and error was happened, this error was shown in below picture:

oracle c# error

my platform is win server 2003, and platform of customer is win 7 32bit.

Pezhman Parsaee
  • 1,209
  • 3
  • 21
  • 35

0 Answers0