title: .NET 4.0 Reference to wrong Oracle.DataAccess.dll
body: <p>When I use my CruiseControl.NET Build Server to build my C# application it always references to the wrong Oracle.DataAccess.dll. On my local machine it is working without any problems.</p>
  
  <p>My local machine and my build server are both Windows 7 machines. I installed the Oracle Client 11.2.0.3 (32 AND 64 bit) on both machines.
  My application is a .NET Framework 4.0 C# application. I set specific version and local copy of the OracleDataAccess.dll to false.</p>
  
  <p>When I build it on my local machine everything works fine.
  I analyzed the file using IL-Disassembler, the reference here is ok:</p>
  
  <pre><code>.assembly extern Oracle.DataAccess
  {
    .publickeytoken = (89 B4 83 F4 29 C4 73 42 )                         // ....).sB
    .ver 4:112:3:0
  }
  </code></pre>
  
  <p>When I build it on the build server my application references to the wrong OracleDataAccess.dll.
  Here I get this reference:</p>
  
  <pre><code>.assembly extern Oracle.DataAccess
  {
    .publickeytoken = (89 B4 83 F4 29 C4 73 42 )                         // ....).sB
    .ver 2:112:3:0
  }
  </code></pre>
  
  <p>All the references in the project point to the 4... version. I reinstalled the 32 and 64 bit oracle clients. I checked all the oracle references on the build server, everything looks fine. After trying to find the error the whole day I don't know how to continue. Please, can someone help me with this problem?</p>