title: The type or namespace name 'OracleConnection' could not be found
body: <p>I am getting this error every time I try to debug my program: </p>
  
  <blockquote>
    <p>CS0246: The type or namespace name 'OracleConnection' could not be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>This occurs on the declaration <code>private readonly OracleConnection oracleConnection;</code> (and in a few other places as well)</p>
  
  <p>I have been trying a number of suggested solutions but so far none have worked:</p>
  
  <ul>
  <li>I have added a reference to the <code>System.Data.OracleClient.dll</code></li>
  <li>My target framework is set to <code>.NET Framework 4</code></li>
  <li>I have tried both including <code>using System.Data.OracleClient</code> and manually writing out <code>System.Data.OracleClient.OracleConnection</code></li>
  </ul>
  
  <p><strong>EDIT:</strong> The code I am using is as follows:</p>
  
  <pre><code>using System;
  using System.Data.SqlClient;
  using System.Data.SqlTypes;
  using System.Collections.Generic;
  using System.Data.OleDb;
  using System.Linq;
  using System.Web;
  using System.Data;
  using System.Configuration;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using System.Web.UI.WebControls.WebParts;
  using System.Web.UI.HtmlControls;
  
  namespace Foo
  {
      public class DBHandler
      {
          private readonly OracleConnection oracleConnection;
          private readonly OracleCommand oracleCommand;
          private readonly OracleDataAdapter oracleAdapter;
  </code></pre>
  
  <p>Nothing has worked so far, so any suggestions would be appreciated.</p>