title: ((System.IO.FileNotFoundException)(the specified module could not be found. (Exception from HRESULT: 0x8007007E) when running a C# console application
body: <p>I am getting an error while running a .Net application.</p>
  
  <p>The main problem which I feel is due to the <code>Oracle.Data.Access</code>.I made the project build to 32 bit as it had some problem of <a href="/questions/tagged/oracle" class="post-tag" title="show questions tagged &#39;oracle&#39;" rel="tag">oracle</a> exception</p>
  
  <blockquote>
    <p>"Could not load file or assembly 'Oracle.DataAccess,
    Version=2.111.7.20, Culture=neutral, PublicKeyToken=89b483f429c47342'
    or one of its dependencies. The system cannot find the file specified"</p>
  </blockquote>
  
  <p>Making my project to 32 bit actually solved this Oracle problem, but then the following error is thrown:</p>
  
  <blockquote>
    <p>((System.IO.FileNotFoundException)(the specified module could not be
    found. (Exception from HRESULT: 0x8007007E)</p>
  </blockquote>
  
  <p>I am actually trying to write to a file in the function from where the exception is being thrown.The file location is defined in app.config </p>
  
  <p>
      </p>
  
  <p>Is this error due to 32 or 64 bit as my Windows 7 version is 64 bit and the project is built using 32 bit or something else</p>
  
  <p>Please suggest a possible outcome of this error</p>