我尝试使用ComAutomationFactory.CreateObject创建对象。它给出了以下异常
"Failed to create an object instance for the specified ProgId"我的应用程序在OOB上运行,并且具有提升的权限。
如果(ComAutomationFactory.IsAvailable && App.Current.HasElevatedPermissions) {
dynamic sample = ComAutomationFactory.CreateObject("SampleCom.ComClass");
}其中,SampleCom是在C#中创建的my Com应用程序
我使用Silverlight 4
发布于 2010-02-09 18:18:16
仅当Dll已签名时,才能使用ComAutomationFactory.CreateObject创建对象
https://stackoverflow.com/questions/2069734
复制相似问题