title: Excel.dll- Getting error on using Excel
body: <p>I am using <code>Excel.dll</code> in my project to access data from Excel file.
  I have already added Excel.dll in Bin folder of my website.
  In my webpage i used using directive: </p>
  
  <pre><code>using Excel;
  </code></pre>
  
  <p>and code is</p>
  
  <pre><code>String path = "F:\\Saurabh\\database\\FMData1.xls";
  FileStream stream = File.Open(path, FileMode.Open, FileAccess.Read);
  Excel.IExcelDataReader excelReader = null;       
  excelReader = Excel.ExcelReaderFactory.CreateBinaryReader(stream); 
  </code></pre>
  
  <p>In my local server it is running fine.
  But when I uploaded it to the server it is giving error.</p>
  
  <pre><code>The type or namespace name 'Excel' could not be found (are you missing a using directive or an assembly reference?)
  </code></pre>
  
  <p>I think there is some problem with the .Net framework.
  Please help.......</p>