Thursday, November 12, 2009

Microsoft Office Excel cannot access the file

You might have experienced a problem while opening an excel file using

Excel.Workbook workBook = app.Workbooks.Open(Path, 0, true, 5, "", "", true, Excel.XlPlatform.xlWindows, "\t", false, false, 0, true, 1, 0);

and ended up with the following error

Microsoft Office Excel cannot access the file '\\\ExcelFile.xls'. There are several possible reasons:

• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook.

This problem occurs on IIS 5 and IE 6.

It is a known issue and Microsoft offers a hotfix for IE 6 to overcome this issue.

You can find a detailed description of the problem and the link to download the hotfix on

No comments: