title: Error when using OracleConnection.Open() ORA-00303: Network Library: Name-Value syntax error ODP.NET managed dll
body: <p>I am getting this error when i hit the source.Open(); line of code and I cannot figure out why. I was using the unmanaged dll and I am trying to upgrade to the version Oracle.ManagedDataAccess.dll 64-bit and my project is using .NET framework 4. The TNS string is working in the production tnsnames.ora file(Ive replaced various element name and values). From the error it seems like something should be obviously wrong but I just cant get it to work.</p>
  
  <p>TNS in app.config:</p>
  
  <pre><code>&lt;oracle.manageddataaccess.client&gt;
  &lt;version number="*"&gt;
    &lt;dataSources&gt;
      &lt;dataSource alias="ABC_DEF_GH" descriptor="ABC_DEF_GH =    (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server.company.com)(PORT = 11111))(CONNECT_DATA = (SERVICE_NAME = ABC_DEF_GH.company.com)))"/&gt;
    &lt;/dataSources&gt;
  &lt;/version&gt;
  
  &lt;/oracle.manageddataaccess.client&gt;
  </code></pre>
  
  <p>Code snippet:</p>
  
  <pre><code>using (OracleConnection source = new OracleConnection("UserId=xxxxx;Password=xxxxxx;DataSource=ABC_DEF_GH;"))
  {
  
  OracleCommand command = new OracleCommand(transferConfig.QueryLogic + WhereClause, source);
  //The time (in seconds) to wait for the command to execute. The default is 30 seconds.
  command.CommandTimeout = transferConfig.SourceCommandTimeout;
  // command.Connection.ConnectionTimeout is set in the connection string only
  source.Open();
  //...
  }
  </code></pre>
  
  <p>Error: ORA-00303: Network Library: Name-Value syntax error</p>