title: The type or namespace name 'Oracle' could not be found (are you missing a using directive or an assembly reference?)
body: <p>I have created a new Console Application project with Visual Studio 2010 (I tried with VS 2012 and the problem is the same).
  The using are:</p>
  
  <pre><code>using System;
  using System.Data.Common;
  using Oracle.DataAccess.Client;
  </code></pre>
  
  <p>In the Main method I wrote this code:</p>
  
  <pre><code>   var oracleInstance = OracleClientFactory.Instance;
          using (DbConnection conn = oracleInstance.CreateConnection())
          {
              conn.ConnectionString =
                  "Data Source=XXX;Persist Security Info=True;User ID=XXX;Password=XXX;";
              conn.Open();
  
              var command = conn.CreateCommand();
              command.CommandText = "SELECT * FROM TABLE1 where rownum = 1";
  
              DbDataReader reader = command.ExecuteReader();
  
  
              while (reader.Read())
              {
                  for (int i = 0; i &lt; reader.FieldCount; i++)
                  {
                      Console.WriteLine("Column number {0}: {1}", i, reader[i]);
                  }
              }
  }
  </code></pre>
  
  <p>The target framework is .NET 4.0 . I referenced Oracle.DataAccess.dll 4.112.3.0 (.NET 4).</p>
  
  <p>The problem is: <strong>if I target .NET 4.0, the compilation doesn't work</strong> and it says <i>The type or namespace name 'Oracle' could not be found (are you missing a using directive or an assembly reference?)</i>
  <strong>If I target .NET 4.0 Client Profile, it works fine.</strong> 
  The fact is that <strong>I need to target .NET 4.0 framework, NOT .NET 4.0 Client Profile</strong>!!</p>
  
  <p>Is there a solution to this problem?</p>