在 IIS 服务器上部署后使用 COM 引用
Using COM References after deplyoing on IIS Server
我开发了一个简单的 powerpoint 转换(转换为图像)以在轮播中显示它们。
所以我用了
Interop.Microsoft.Office.Interop.PowerPoint
在我的开发环境中它运行良好,但是当我在我的 IIS 服务器上使用 Azure 发布它时,id 似乎不起作用。
Exception:
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80040154
为什么它在部署到 IIS 之前就可以工作?
我尝试在服务器上安装 powerpoint 但没有成功,你能给我提示吗?
嗯,使用 Microsoft COM 太麻烦了:
HRESULT_FAIL + 并非所有客户端都有 Office + Office Server 等
所以我只用这个:https://help.syncfusion.com/file-formats/presentation/presentation-to-image
可以多次使用免费试用版,也可以免费获得许可证密钥。
我开发了一个简单的 powerpoint 转换(转换为图像)以在轮播中显示它们。 所以我用了
Interop.Microsoft.Office.Interop.PowerPoint
在我的开发环境中它运行良好,但是当我在我的 IIS 服务器上使用 Azure 发布它时,id 似乎不起作用。
Exception: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80040154
为什么它在部署到 IIS 之前就可以工作? 我尝试在服务器上安装 powerpoint 但没有成功,你能给我提示吗?
嗯,使用 Microsoft COM 太麻烦了: HRESULT_FAIL + 并非所有客户端都有 Office + Office Server 等
所以我只用这个:https://help.syncfusion.com/file-formats/presentation/presentation-to-image
可以多次使用免费试用版,也可以免费获得许可证密钥。