Microsoft.Office.Interop.Excel error: 80070005

 

錯誤:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.安全

->"開始" -> "運行"中輸入DCOMCNFG spa

->"組件服務"->"計算機"->"個人電腦"->"DCOM配置"component

-> 找到"Microsoft Excel 應用程序" -> 右鍵->"屬性", 彈出"Microsoft Excel 應用程序屬性"對話框blog

->"安全"標籤 -> 在"啓動和激活權限"上點擊"自定義",it

->填加"NETWORK SERVICE" (或者ASPNET) (注意要選擇本計算機名),class

->添加"本地啓動"和"本地激活"權限.配置

相關文章
相關標籤/搜索