由于以下错误,检索具有 CLSID {XXXX} 的组件的 COM 类工厂失败:80040154 VB.net

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20200452/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 15:57:18  来源:igfitidea点击:

Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154 VB.net

c#vb.netvisual-studio-2010visual-studio-2008

提问by user3033519

I code in VB.net under Visual Studio 2008. I have this error and I don't understand why.

我在 Visual Studio 2008 下的 VB.net 中编码。我有这个错误,我不明白为什么。

Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154

由于以下错误,检索具有 CLSID {XXXX} 的组件的 COM 类工厂失败:80040154

I use a DLL and I want to compile it in 64bit. I have the following code:

我使用一个 DLL,我想用 64 位编译它。我有以下代码:

Imports MetroProDAT_Library

Public Class Data
    Public attr As ZygoDataAttributes
    Public oData As ZygoDataFile

    Public Sub LoadData(ByVal FileName As String)
        Dim idx As Double
        Dim jdx As Double

        oData = New ZygoDataFile  '///this sentence bug
        attr = oData.Attribute
    End Sub
End Class

回答by Joseph Vincent Magtalas

it might be the dll file. do you have a specific dll files that needed to run the program ?

可能是dll文件。您是否有运行该程序所需的特定 dll 文件?

register it to the machine and test it again

将其注册到机器并再次测试