title: Interop workbook not able to access a file while saving
body: <p>We are opening an interop workbook to write data and save at a specified location. The excel workbook is declared as</p>
  <pre><code>   Application excel = new Application();
     protected Workbook workbook;
  </code></pre>
  <p>The save function is used</p>
  <pre><code>   public void SaveFile(string filePath)
     {
         workbook.SaveAs(filePath, XlFileFormat.xlWorkbookDefault, Type.Missing, Type.Missing,
                  false, false, XlSaveAsAccessMode.xlNoChange,
                  Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
         workbook.Close();
     }
  </code></pre>
  <p>The filePath passed is:</p>
  <pre><code>   C:\Users\newto\Desktop\ExcelDataTLTemplate.xlsx
  </code></pre>
  <p>It throws an exception saying</p>
  <pre><code>   System.Runtime.InteropServices.COMException: 'Microsoft Excel cannot access the file 'C:\Users\newto\Desktop\E86DE410'.
  </code></pre>