解决 Pdm 加载项问题:Class 在注册表中找不到 ID

Trouble shoot Pdm Add-In : Class ID not found in registry

尝试创建 Solidworks PDM 加载项以从我们的 Epicor ERP 系统检索信息并将其添加到 PDM 数据卡中的 vars。

从我们的 Epicor erp 系统中检索信息。我添加了必要的 .dll 引用并将本地复制设置为 true。

作为调试加载项加载时它会正常工作,但作为实时加载项加载时会出现此错误。 Pdm error message "Error creating the add-in COM object from the DLL "Epicor.Mfg.BO.SysConfig.dll" 原因:加载项注册成功,但在注册表中找不到加载项的 class ID。"

如果每个用户的机器上都有 Epicor 软件。使用 regasm.exe 注册 .dll 是否可能导致问题?是否必须在可以使用该加载项的每个人的计算机上完成?

有什么建议吗? 谢谢

您是否将程序集设置为 COMVisible?

在AssemblyInfo.cs中:

[assembly: ComVisible(true)]

您使用的库与 SOLIDWORKS PDM 不兼容(我不确定具体原因,但某些库导致注册冲突)。例如,您可能在项目中使用 System.Threading.Tasks.Extensions.dll。请参见 Failed to add SOLIDWORKS PDM Add-in - Class ID could not be found in the registry 文章了解更多信息