c# - Excel 互操作库无法在 Azure 上运行

标签 c# excel azure office-interop office-automation

现在,我正在处理 Excel 导入。它在我的本地计算机上工作正常,但当我部署在 Azure 应用程序服务上时,它无法正常工作,因为无法访问我们可以安装依赖项的实际环境,请告诉我是否有替代方法可以解决此问题。

异常

System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

谢谢

最佳答案

将您的应用及其依赖项打包在 Windows 容器中,并在应用服务中运行此容器。

关于c# - Excel 互操作库无法在 Azure 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74875358/

相关文章:

c# - efcore 3.1 不支持字符串连接查询?

c# - 在 WebAPI 中对模型使用可序列化属性

excel - 基于列标题的条件格式

azure - 将 native iOS Azure SSO 与 Multi-Tenancy Web 应用程序集成

azure - 如何从 Spring JMS 设置 Azure ServiceBus 的 ContentType

c# - NHibernate:来自表 X 的关联引用未映射的类:X

excel - 使用VBA完全控制另一个程序

python - 使用 xlsxwriter 模块将列表中的数据写入 Excel 工作表中的列

c# - Azure 应用程序日志不显示跟踪消息

javascript - 如何使用 ASP.net、C# 或 Javascript 创建箱线图