简体   繁体   English

如何解决异常:“检索 COM class 工厂…失败…80080005 服务器执行失败”来自 Codesoft?

[英]How can I resolve exception: “Retrieving the COM class factory…failed…80080005 Server Execution failed” from Codesoft?

Please help with any advice or troubleshooting tips for this error.请提供有关此错误的任何建议或故障排除提示。

I'm in a small medical R&D+manufacturing company and we have a number of installations of Codesoft 2012, 2015, and 2018, on Windows 7 and Windows 10 machines.我在一家小型医疗研发+制造公司工作,我们在 Windows 7 和 Windows 10 机器上安装了许多 Codesoft 2012、2015 和 2018。 Codesoft is installed locally and each instance has it's own license, not running from a server. Codesoft 安装在本地,每个实例都有自己的许可证,而不是从服务器运行。 We have an in house application, developed by someone no longer here, (C# .NET VS2013) that we run which uses the Codesoft API for label printing.我们有一个内部应用程序,由不再在这里的人开发(C# .NET VS2013),我们运行它使用 Codesoft API 进行 label 打印。 I made a few minor modifications to our program (not related to Codesoft) and built and deployed it (uses InstallShield single setup.exe if that matters).我对我们的程序进行了一些小的修改(与 Codesoft 无关)并构建和部署了它(如果重要,使用 InstallShield 单一 setup.exe)。 Previously, we did not have this problem, but on this build on certain PCs, when the Codesoft API is started, there is a 120 second delay, and the following exception is returned:之前我们没有这个问题,但是在某些PC上的这个build上,当Codesoft API启动时,有120秒的延迟,返回如下异常:

Application initialization failed with exception: Exception raised during initialization: Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT:0x80080005 (CO_E_SERVER_EXEC_FAILURE)).应用程序初始化失败并出现异常:初始化期间引发异常:检索 COM class 工厂,用于具有 CLSID {XXXX} 的组件因以下错误而失败:80080005 服务器执行失败(来自 HRESULT 的异常:0x80080_FAILUREEX_E)。

This is the line of code that returns the exception:这是返回异常的代码行:

Codesoft = new Tkx.Lppa.Application();

Of course this is just starting up the API, nothing special, and is the first point of use of the Codesoft API.当然这只是启动API,没什么特别的,是Codesoft API的第一个使用点。 Lppa.exe (the Codesoft program) does appear in Task Manager for the 2 minute duration. Lppa.exe(Codesoft 程序)确实会在任务管理器中出现 2 分钟。 EDIT (It occurs on Windows 7 and 10, and with Codesoft 2015 and 2018, but never with Codesoft 2012. On Windows 7 32-bit machines with Codesoft 2018, it worked fine for a while, then started showing the error as well.) Launching Codesoft manually works ok.编辑(它发生在 Windows 7 和 10 以及 Codesoft 2015 和 2018 上,但从未与 Codesoft 2012 一起发生。在 Windows 7 32 位机器上使用 Codesoft 2018,它工作了一段时间,然后开始显示错误。)手动启动 Codesoft 工作正常。 I never saw this issue during development, working on a Windows 10 machine with Codesoft 2012 (the version we have a dev license for).在使用 Codesoft 2012(我们拥有开发许可证的版本)的 Windows 10 机器上工作时,我在开发过程中从未见过这个问题。 I have reached out to Codesoft (Teklynx) technical support, but they haven't helped (phone support refused for API, email only, no response yet).我已经联系了 Codesoft (Teklynx) 技术支持,但他们没有提供帮助(电话支持拒绝 API,仅限 email,还没有回复)。

Some troubleshooting I have attempted:我尝试过的一些故障排除:

It's possible I may have missed something in the above links, and I'll probably go back through them and try again.我可能错过了上述链接中的某些内容,我可能会通过它们返回 go 并重试。 EDIT Next step: Setting up a dev environment on a Win 7 machine and rebuild.编辑下一步:在 Win 7 机器上设置开发环境并重建。

Solved.解决了。 I was using the 2012 version of the API lppanet.dll in my build.我在我的构建中使用了 2012 版本的 API lppanet.dll。 That's why it worked on 2012 and not other versions (although the inconsistent operation on 2018 is odd).这就是为什么它在 2012 年而不是其他版本上工作的原因(尽管 2018 年的不一致操作很奇怪)。 Using a higher level version works.使用更高级别的版本有效。 I was thrown off by only having a dev license on 2012 (thinking that's the version that had been used previously, when it wasn't), and not being aware that it had been updated and wasn't forward compatible.我在 2012 年只拥有开发许可证(认为这是以前使用过的版本,其实不是),并且不知道它已经更新并且不向前兼容,这让我很失望。

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

相关问题 检索执行的组件的COM类工厂80080005服务器执行失败 - Retrieving the COM class factory for component with execution 80080005 Server execution failed C#Outlook由于以下错误而无法为具有CLSID的组件检索COM类工厂:80080005 - C# Outlook Retrieving the COM class factory for component with CLSID failed due to the following error: 80080005 检索具有 CLSID {00024500-0000-0000-C000-000000000046} 的组件的 COM 类工厂失败 - 80080005 - Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed - 80080005 服务器执行失败(来自 HRESULT 的异常:0x80080005 (CO_E_SERVER_EXEC_FAILURE)) - Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)) NetOffice获得80080005服务器执行失败 - NetOffice getting 80080005 Server execution failed 检索COM类工厂失败; 未注册课程 - Retrieving COM class factory failed; class not registered 检索具有CLSID {}的组件的COM类工厂失败 - Retrieving the COM class factory for component with CLSID {} failed 检索COM类工厂失败错误:80040154 - Retrieving COM class factory failed error: 80040154 Word 2016自动化生成“错误:80080005服务器执行失败” - Word 2016 automation generates “error: 80080005 Server execution failed” 80080005 使用 Word 自动化时服务器执行失败 - 80080005 Server execution failed when using Word Automation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM