创建 Com 错误 80004005

Creating Com Error 80004005

我正在尝试 运行 FoxPro Windows 2012,

我已经使用 regsvr32 注册了 dll

当我尝试 运行 使用 dll 的应用程序时,我得到了这个

Error: Creating an instance of the COM component with CLSID {F6C4F46E-58A4-4774-802F-1CF9E64376B0} from the IClassFactory failed due to the following error: 80004005. Trace: at Lib.FoxProWrapper..ctor(String ODBC, String Acct, String Pswd) at App.Processor..ctor(String SrvType, String ServiceName) at App.App.startApp()

我假设您在这里谈论的是使用 Visual FoxPro 创建的 COM DLL,并且从它的外观来看,您正试图在 C# 中实例化它。

确保您已正确安装运行时。您可以下载它们 here.