COMException如何修复错误80040154? [英] How to repair COMException error 80040154?
问题描述
检索由于以下
错误:80040154,因此CLSID
{681EF637-F129-4AE9-94BB-618937E3F6B6}的组件的COM类工厂失败。
681EF637-F129-4AE9-94BB-618937E3F6B6不在注册表中,因此未正确安装,但这是以前在64位Windows 7机器上出现问题的相同ID。发现64位Windows 7机器上的此错误的解决方案 here (将Platform Target更改为x86),但这并不能解决32位XP机器上的问题。如何找到与681EF637-F129-4AE9-94BB-618937E3F6B6相关联的DLL,或者甚至更好地修复此异常?
要查找DLL,请转到您的64位计算机并打开注册表。找到名为 HKEY_CLASSES_ROOT\CLSID\ {681EF637-F129-4AE9-94BB-618937E3F6B6} \InprocServer32
的密钥。该键将具有DLL的文件名作为其默认值。
如果您通过重新编译x86的项目来解决64位机器上的问题,需要查看注册表的32位部分,而不是在正常的位置。这是 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\ {681EF637-F129-4AE9-94BB-618937E3F6B6} \InprocServer32
。
如果DLL是为32位构建的,那么可以直接在32位机器上使用。如果它是为64位构建的,那么您必须联系供应商并从中获取32位版本。
当您有DLL时,通过运行c:\windows\system32\regsvr32.exe。
Moving a working C# project from a 64 bit windows 7 machine to a 32 bit XP machine caused the following error:
Retrieving the COM class factory for component with CLSID {681EF637-F129-4AE9-94BB-618937E3F6B6} failed due to the following error: 80040154.
681EF637-F129-4AE9-94BB-618937E3F6B6 is not in the registry so it is not properly installed, but this is same ID that was previously a problem on the 64 bit windows 7 machine. The solution to this error on the 64 bit windows 7 machine was found here (change Platform Target to x86) but this does not solve the problem on the 32 bit XP machine. How do I find the dll associated with 681EF637-F129-4AE9-94BB-618937E3F6B6, or, even better, how do I repair this exception?
To find the DLL, go to your 64-bit machine and open the registry. Find the key called HKEY_CLASSES_ROOT\CLSID\{681EF637-F129-4AE9-94BB-618937E3F6B6}\InprocServer32
. This key will have the filename of the DLL as its default value.
If you solved the problem on your 64-bit machine by recompiling your project for x86, then you'll need to look in the 32-bit portion of the registry instead of in the normal place. This is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{681EF637-F129-4AE9-94BB-618937E3F6B6}\InprocServer32
.
If the DLL is built for 32 bits then you can use it directly on your 32-bit machine. If it's built for 64 bits then you'll have to contact the vendor and get a 32-bit version from them.
When you have the DLL, register it by running c:\windows\system32\regsvr32.exe.
这篇关于COMException如何修复错误80040154?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!