从HRESULTexception:0x80010105(RPC_E_SERVERFAULT)打开xlsx文件时

我有这个例外,这让我疯狂。

当我尝试以这种方式打开一个.xlsx文件

Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application(); string v = "path\File.xlsx"; Workbook wb = app.Workbooks.Open(v); //This triggers the exception app.Visible = true; Worksheet sh = wb.Sheets[1]; 

我有这个例外

 Error: System.Runtime.InteropServices.COMException (0x80010105): Server launches an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) at Microsoft.Office.Interop.Excel.Workbooks.Open(String Filename, Object UpdateLinks, Object ReadOnly, Object Format, Object Password, Object WriteResPassword, Object IgnoreReadOnlyRecommended, Object Origin, Object Delimiter, Object Editable, Object Notify, Object Converter, Object AddToMru, Object Local, Object at MainWindow.loadFile(String v) in MainWindow.cs:line 139 

任何人都可以给我一个解决scheme,为什么会这样呢?

Ps:我正在使用Interop库打开Excel。

编辑:显然,如果我设置app.Visible = true; 它的工作原理,但我不希望Excel窗口出现。

  appExcel.Visible = true; classeur = appExcel.Workbooks.Open(DB_Path, 0, false, 5, "", "", true, XlPlatform.xlWindows, "\t", false, false, 0, true, 1, 0); appExcel.Visible = false;