---
# System prepended metadata

title: FAILED LOG

---

# FAILED LOG

## RCP

![](https://i.imgur.com/E4LybZK.png)

https://dotblogs.com.tw/supershowwei/2017/11/16/143448

[2022/10/11 19:18:01] -- do ExcelConvert please wait....
[2022/10/11 19:18:09] -- excel convert error:System.Runtime.InteropServices.COMException (0x800706BE): 遠端程序呼叫失敗。 (發生例外狀況於 HRESULT: 0x800706BE)
   於 Microsoft.Office.Interop.Excel.Workbooks.Open(String Filename, Object UpdateLinks, Object ReadOnly, Object Format, Object Password, Object WriteResPassword, Object IgnoreReadOnlyRecommended, Object Origin, Object Delimiter, Object Editable, Object Notify, Object Converter, Object AddToMru, Object Local, Object CorruptLoad)
   於 DocTransService.Lib.Office.excelConvert(String sourcePath, String targetPath, String& errMsg) 於 D:\Support6\Watermark\DocTransService\DocTransService\Lib\Office.cs: 行 182
[2022/10/11 19:18:09] -- System.Runtime.InteropServices.COMException (0x800706BA): RPC 伺服器無法使用。 (發生例外狀況於 HRESULT: 0x800706BA)
   於 Microsoft.Office.Interop.Excel.ApplicationClass.Quit()
   於 DocTransService.Lib.Office.excelConvert(String sourcePath, String targetPath, String& errMsg) 於 D:\Support6\Watermark\DocTransService\DocTransService\Lib\Office.cs: 行 212
   於 DocTransService.Lib.Convertor.Convert(ModelConvertWork dr) 於 D:\Support6\Watermark\DocTransService\DocTransService\Lib\Convertor.cs: 行 73
[2022/10/11 19:18:11] -- 1
[2022/10/11 19:18:11] -- input_path=C:\Support6\Drive\IQ-FSX-Storage\00\00\00\eb6f2683-536c-416a-985b-d9d85f9b59e8.xls output_path=C:\Support6\Drive\IQ-FSX-Storage\00\00\00\83.pdf fileext=.xls
[2022/10/11 19:18:11] -- do ExcelConvert please wait....


## 手動執行失敗

解決方案 : https://gorgiastw.medium.com/system-componentmodel-win32exception-0x80004005-%E5%AD%98%E5%8F%96%E8%A2%AB%E6%8B%92-f3a7949d1bf

[2022/10/11 15:13:37] -- isDone = True
[2022/10/11 15:13:37] -- upd=success
[2022/10/11 15:13:37] -- EndTask:04
[2022/10/11 15:13:39] -- 1
[2022/10/11 15:13:39] -- input_path=C:\Support6\Drive\IQ-FSX-Storage\00\00\00\9e497f81-2ae7-4010-bd1e-2c26f0f7003b.xlsx output_path=C:\Support6\Drive\IQ-FSX-Storage\00\00\00\45.pdf fileext=.xlsx
[2022/10/11 15:13:39] -- do ExcelConvert please wait....
[2022/10/11 15:13:39] -- System.ComponentModel.Win32Exception (0x80004005): 存取被拒。
   於 System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited)
   於 System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
   於 System.Diagnostics.Process.Kill()
   於 DocTransService.Lib.Office.excelConvert(String sourcePath, String targetPath, String& errMsg) 於 D:\Support6\Watermark\DocTransService\DocTransService\Lib\Office.cs: 行 158




## 轉換 xlsx 失敗
-- excel convert error:System.Runtime.InteropServices.COMException (0x80080005): 擷取元件 (CLSID 為 {00024500-0000-0000-C000-000000000046}) 的 COM Class Factory 失敗，因為發生下列錯誤: 80080005 伺服器執行失敗 (發生例外狀況於 HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))。
   於 System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType)
   於 System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(RuntimeType serverType)
   於 System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj)
   於 System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   於 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   於 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   於 System.Activator.CreateInstance(Type type, Boolean nonPublic)
   於 System.Activator.CreateInstance(Type type)
   於 DocTransService.Lib.Office.excelConvert(String sourcePath, String targetPath, String& errMsg) 於 D:\Support6\Watermark\DocTransService\DocTransService\Lib\Office.cs: 行 174
   
   
   ## 遠程失敗
   
   解法
https://www.cnblogs.com/easy5weikai/p/5394760.html
   
   [2022/10/11 13:40:14] -- 1
[2022/10/11 13:40:14] -- input_path=C:\Support6\Drive\IQ-FSX-Storage\00\00\00\bc0a3907-2daa-4cf7-8b17-ecc168af3b5e.xlsx output_path=C:\Support6\Drive\IQ-FSX-Storage\00\00\00\3A.pdf fileext=.xlsx
[2022/10/11 13:40:14] -- do ExcelConvert please wait....
[2022/10/11 13:40:35] -- excel convert error:System.Runtime.InteropServices.COMException (0x800706BE): 遠端程序呼叫失敗。 (發生例外狀況於 HRESULT: 0x800706BE)
   於 Microsoft.Office.Interop.Excel.Workbooks.Open(String Filename, Object UpdateLinks, Object ReadOnly, Object Format, Object Password, Object WriteResPassword, Object IgnoreReadOnlyRecommended, Object Origin, Object Delimiter, Object Editable, Object Notify, Object Converter, Object AddToMru, Object Local, Object CorruptLoad)
   於 DocTransService.Lib.Office.excelConvert(String sourcePath, String targetPath, String& errMsg) 於 D:\Support6\Watermark\DocTransService\DocTransService\Lib\Office.cs: 行 182
[2022/10/11 13:40:35] -- System.Runtime.InteropServices.COMException (0x800706BA): RPC 伺服器無法使用。 (發生例外狀況於 HRESULT: 0x800706BA)
   於 Microsoft.Office.Interop.Excel.ApplicationClass.Quit()
   於 DocTransService.Lib.Office.excelConvert(String sourcePath, String targetPath, String& errMsg) 於 D:\Support6\Watermark\DocTransService\DocTransService\Lib\Office.cs: 行 212
   於 DocTransService.Lib.Convertor.Convert(ModelConvertWork dr) 於 D:\Support6\Watermark\DocTransService\DocTransService\Lib\Convertor.cs: 行 73
