system.runtime.interopservices中的COM异常 [英] COM Exception in system.runtime.interopservices

查看:132
本文介绍了system.runtime.interopservices中的COM异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[COMException (0x80040154): Retrieving the COM class factory for component with CLSID {2C6D3CA1-2350-101B-AE3A-0040332013F0} failed due to the following error: 80040154.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +146
   System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +298
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +79


当我在IIS中部署Web应用程序时出现上述错误,但是当我们直接运行代码时,它可以正常工作.

任何快速帮助将不胜感激.

最好的问候,
Sriman


I am getting the above error when I deployed my web app in IIS but it works fine when we ran the code directly.

Any quick help would be appreciated.

Best Regards,
Sriman

推荐答案

亲爱的伯恩哈德

我做了同样的事情,它的正常工作.我不小心问了同样的问题两次.
感谢您的答复.

我在得到回复之前解决了这个问题,但是还是谢谢
Dear Bernhard

I did the same and its woking fine. I accidentally asked the same question twice.
Thanks for your reply.

I solved this before I got reply but anyway thanks


这篇关于system.runtime.interopservices中的COM异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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