Microsoft.Office.Interop.Excel Exception de HRESULT:0x800A03EC

时间:2018-05-16 20:55:01

标签: c# excel interop

我在服务器上处理Excel,当我尝试使用Microsoft.Office.Interop.Excel打开我的Excel文件时,出现此错误:

  

Exception de HRESULT:0x800A03EC

我检查了对我文件的访问权限,我的IIS帐户对此有完全控制权。这是我的代码:

var excelApp = new Excel.Application();
Excel.Workbook workbook = excelApp.Workbooks.Open(
                              Filepath,
                              Type.Missing, Type.Missing, Type.Missing,
                              Type.Missing, Type.Missing, Type.Missing,
                              Type.Missing, Type.Missing, Type.Missing,
                              Type.Missing, Type.Missing, Type.Missing,
                              Type.Missing,
                              true
                          );

由于

0 个答案:

没有答案