C# COM异常80010108是什么意思?

C# COM异常80010108是什么意思?,c#,com,powerpoint,C#,Com,Powerpoint,我正在尝试从C#.NET应用程序内部创建PowerPoint演示文稿 在大多数情况下,它是有效的,但偶尔我会在日志中看到这个错误: Creating an instance of the COM component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} from the IClassFactory failed due to the following error: 80010108. 触发此异常的行是: Microsoft.Off

我正在尝试从C#.NET应用程序内部创建PowerPoint演示文稿

在大多数情况下,它是有效的,但偶尔我会在日志中看到这个错误:

Creating an instance of the COM component with CLSID
{91493441-5A91-11CF-8700-00AA0060263B} from the IClassFactory failed due
to the following error: 80010108.
触发此异常的行是:

Microsoft.Office.Interop.PowerPoint.ApplicationClass oPPT =
         new Microsoft.Office.Interop.PowerPoint.ApplicationClass();
有人知道这意味着什么以及我如何避免它吗?

错误消息的意思是:“调用的对象已与其客户端断开连接”

尝试使用创建对象

    ApplicationClass oPPT = (ApplicationClass)Activator.CreateInstance(typeof(ApplicationClass));

错误代码表示RPC_E_已断开连接的错误。出现这种特定错误代码的原因有很多,我们需要更多的信息来了解发生了什么

如果你有更多的数据,在RPC_E_断开连接的情况下将其插入谷歌,你可能会得到很多结果。似乎有很多关于office、托管代码和RPC的文章