繁体   English   中英

任何人都可以对执行.net Console应用程序时收到的错误有所了解。 (System.Runtime.InteropServices.COMException(0x80040111)

[英]Can anyone shed some light on error I'm receiving when executing .net Console application. (System.Runtime.InteropServices.COMException (0x80040111)

我有一个.net(框架版本4.5.1)控制台应用程序,执行该应用程序时遇到以下错误:

       System.Runtime.InteropServices.COMException (0x80040111): Retrieving the COM class factory for component with CLSID {F374E943-076A-40B9-813E- 0FBFB823E638} failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)).
       at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
       at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
       at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
       at System.Activator.CreateInstance(Type type)

我曾尝试根据其他类似的帖子将Platform目标更改为X86,但这对我没有用。 我的控制台应用程序中引用的.dll是Interop.MOVEitAPI.dll。 问题可能是由于控制台应用程序中引用的MOVEitAPI版本与运行该控制台应用程序的服务器上实际安装的版本不匹配造成的吗?

在执行程序的计算机上,确保具有用于生成程序的原始COM MOVEitAPI.dll,并确保已注册DLL。 要注册一个DLL,运行

regsvr32 MOVEitAPI.dll

以管理员身份在命令提示符下。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM