Unhandled exception when the file is open already

Sep 3, 2013 at 11:53 AM
This kind of exception is fully understandable but why the heck it ends with a "CLOSE" / "DEBUG" dialog that hangs the excecution script forever?

RefreshExcel - Refreshes data in an Excel workbook

Refreshing z:\Reporting\Sales\Regular\ecm_daily_v2.xlsx
Error: Cannot open z:\Reporting\Sales\Regular\ecm_daily_v2.xlsx for writing. Fil
e is in use.
Error: Cannot open z:\Reporting\Sales\Regular\ecm_daily_v2.xlsx for writing. Fil
e is in use.

Unhandled Exception: ExcelRefresh.Excel.FileInUseException: Cannot open z:\Repor
ting\Sales\Regular\ecm_daily_v2.xlsx for writing. File is in use.
at ExcelRefresh.Excel.ExcelUtilities.RefreshWorkbook(String sourcePath, Strin
g saveToPath, String backupPath)
at RefreshExcel.Program.Main(String[] args)

z:\Reporting_Team_BI_Updaters>