创建COM实例对象时发生异常 [英] Exception when create a COM Instance object

查看:103
本文介绍了创建COM实例对象时发生异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个与VS COM接口通信的应用程序.

I'm developing an application which communicates with VS COM interface.

我使用这两行代码创建一个Visual Studio实例(devenv.exe):

I use this two line of code to create a Visual Studio instance (devenv.exe) :

有时我在代码的第二行出现错误:

Sometimes I get an Error on the second line of the code:

[System.Runtime.InteropServices.COMException] = {由于follwinf错误,无法从IClassFactory创建具有CLSID {3C0D7ACB-790B-4437-8DD2-815CA17C474D}的COM组件的实例:8001010a."}.

我已经实现并注册了MessageFilter类,但是似乎无法解决此错误.

I already have a MessageFilter class implemented and registered  but this error seems to not to be handled by it.

我知道CLID是COM对象类(Windows OS的密钥寄存器)的唯一标识符,那么为什么有时会发生此错误?我该如何处理?希望你能帮忙!提前致谢. Nico

I know the CLID to be the unique identifier of a COM object class (key register of Windows OS) , so why this error occurs sometimes ? How can I handle it? Hope you can help ! thanks in advance. Nico

推荐答案

欢迎访问MSDN论坛.

您的应用程序的项目类型是什么?

错误代码"8001010a"表示 RPC_E_SERVERCALL_RETRYLATER,表示该应用程序已购买,您可以拥有查看任务管理器并杀死相关进程,或者请重新启动计算机 并再次检查此问题.

The error code ‘8001010a’ means RPC_E_SERVERCALL_RETRYLATER, that indicated the application is buys, you can have a look at the task manager and kill the related process or please reboot your computer and check this issue again.

最好的问候,

Sara


这篇关于创建COM实例对象时发生异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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