如何解决异常:呼叫由被叫方拒绝。在C#中:(0x80010001(RPC_E_CALL_REJECTED)从HRESULT异常)? [英] how to solve Exception:Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)) in C#?

查看:3450
本文介绍了如何解决异常:呼叫由被叫方拒绝。在C#中:(0x80010001(RPC_E_CALL_REJECTED)从HRESULT异常)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在控制台应用程序编写的C#代码,打开两个过人之处复制并从一个粘贴数据赛过另一个Excel。这是工作正常,直到目的地Excel的知名度是真实的。但我需要隐藏的Excel在执行的时间。所以我改变了能见度为false。就像,

I have written a C# code in console application to open two excels and copy and paste data from one excel to another excel. It was working fine until the destination excel's visibility was true. But I need to hide the excel at the time of execution. So I changed the visibility to false. Like,

  _destExcelApp = new Excel.ApplicationClass();
  _destExcelApp.Visible = false;

现在它的显示结果一样
异常拨打由被叫方拒绝。 (从HRESULT异常:0x80010001(RPC_E_CALL_REJECTED))
如何解决这一个?帮我解决这个问题...

Now its showing an exception like
Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)) How to solve this one??? Help me to fix this issue...

在此先感谢

推荐答案

我碰到了同样的错误,当我部署我的应用程序到计算机上没有Excel的充分激活和安装许可被抛出。我花了几个小时试图诊断问题。请务必检查您的Office安装,以确保它们是完整的。

I ran into this same error being thrown when I deployed my application onto a machine without a fully activated and licensed installation of Excel. I spent hours trying to diagnose the issue. Make sure you check your Office installations to make sure they are complete.

这篇关于如何解决异常:呼叫由被叫方拒绝。在C#中:(0x80010001(RPC_E_CALL_REJECTED)从HRESULT异常)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆