如何解决system.runtime.interopservices.comexception错误

时间:2018-12-03 14:30:35

标签: asp.net excel datatable webforms office-interop

我使用Microsoft.Office.Interop.Excel dll将数据表导出到Excel文件。当我在localhost中运行项目时,将创建Excel文件。但是,当我发布项目并运行网站时,会出现以下异常:

System.Runtime.InteropServices.COMException

我在这一行得到它:

Application excel = new Application();

我该如何解决这个问题?

0 个答案:

没有答案
相关问题