![](/img/trans.png)
[英]C# 64-bit COM component for both 32-bit app and 64-bit Microsoft Excel VBA clients
[英]Error when initializing Microsoft Excel interop (64-bit)
我有一個使用ASP.NET和Excel 2010 Interop 64位(Microsoft.Office.Interop.Excel.dll)的網站。
我將代碼部署到Windows Server 64位。
通過使用命令:
xelApp = new Microsoft.Office.Interop.Excel.Application();
我看到這台服務器上沒有錯誤。 但是從另一台計算機(相同的域),有時(並非總是),我得到了錯誤:
System.Runtime.InteropServices.COMException (0x8000401A): Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a.
我該如何解決這個問題?
通過將Office 2010 64位安裝到服務器64位,我無法在DCOM配置中看到Excel。
請指教。
謝謝。
檢查以下各項:
我建議用ClosedXML替換Interop Excel。
由於權限不足等安全性問題或用戶名,密碼錯誤而導致發生該錯誤代碼。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.