System.Runtime.InteropServices.COMException (0x80010105): 服务器出现意外情况。 (异常来自 HRESULT:0x80010105 (RPC_E
来源:互联网 发布:蓝桥杯c语言历年试题 编辑:程序博客网 时间:2024/05/21 11:18
System.Runtime.InteropServices.COMException (0x80010105): 服务器出现意外情况。 (异常来自 HRESULT:0x80010105 (RPC_E_SERVERFAULT))
出现此问题是C#调用Microsoft.Office.Interop.Excel 导出excel时提示此错误。 但是在安装360和某pdf阅读器前都可以正常导出。 解决此问题时,可在调用open前设置xapp.Visible=true; xapp.Visible=true; Excel.Workbook workBook = xapp.Workbooks.Open(fileName, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value); 这样就可以导出。但是在界面中显示效果不好,一闪一闪的。于是放弃此种方法。 然后就是卸载360,再试还是那个问题;卸载此pdf阅读器,然后卸载不了了,还提示要关闭excel后才能卸载。发现进程中有个excel进程,结束之。接着卸载提示Runtime Error (at 312:454) Could not call proc. 于是只能强制卸载了,删程序所在的目录下的文件。再在注册表里删除相关的东西,查找foxit相关的 。删完重启了下。 然后可以正常导出了。
阅读全文
1 0
- System.Runtime.InteropServices.COMException (0x80010105): 服务器出现意外情况。 (异常来自 HRESULT:0x80010105 (RPC_E
- System.Runtime.InteropServices.COMException (0x80010105): 服务器出现意外情况 问题的解决
- 0x80010105: 服务器出现意外情况
- 异常详细信息: System.Runtime.InteropServices.COMException: 异常来自 HRESULT:0x800A03EC
- 创建Shp报错 (异常来自 HRESULT:0x80010105 (RPC_E_SERVERFAULT))
- System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800AC472
- WIN7SP1 Crystal Reports异常:System.Runtime.InteropServices.ComException(0x800003E7)
- 错误:system.runtime.interopservices.comexception (0x80040154)
- System.Runtime.InteropServices.COMException (0x80028018):
- System.Runtime.InteropServices.COMException (0x800A03EC)
- WIN7 C# System.Runtime.InteropServices.COMException VLC HRESULT:0x80040154 (REGDB_E_CLASSNOTREG)
- excel操作 System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800AC472
- System.Runtime.InteropServices.COMException (0x8004E00F): COM+ 无法与 Microsoft 分布式事务协调程序交谈 (异常来自 HRESU
- 关于system.runtime.interopservices.comexception(0x800A1066)的问题
- “System.Runtime.InteropServices.COMException”解决之道
- System.Runtime.InteropServices.COMException解决办法
- c#程序在部分电脑运行异常解决方法(System.Runtime.InteropServices.COMException (0x80070422): 无法启动服务)
- System.Runtime.InteropServices.COMException(0x8004020F): The server rejected one or more recipient addresses.
- 简单的jq时间格式转换
- 05.js.三元表达式
- 不同年龄阶段的孩子该如何学习奥数?
- 少数股东损益和少数股东权益的区别?
- Wolf从零学编程-用Python打造简单加密程序(八)
- System.Runtime.InteropServices.COMException (0x80010105): 服务器出现意外情况。 (异常来自 HRESULT:0x80010105 (RPC_E
- Android Studio查看模拟机中文件
- HDU 3695Computer Virus on Planet Pandora
- VC++中ADO方式访问数据库datetime字段(不带毫秒时间与带毫秒时间)
- Hadoop2.x对Hadoop1.x的改进
- bitCoin 好文收集
- 轻松搞定面试中的链表题目
- spring bean的生命周期
- 九、 通用工具 ----smart Pointer(智能指针)---shared_ptr 指针