无法发出程序集

发布于 2025-01-08 12:47:49 字数 200 浏览 3 评论 0原文

我创建了一个名为 dataLibrary 的 Visual Basic 类库,并将其添加为 infopath 2007 中应用程序的 Visual Studio 工具中的引用,并将其导入。

现在,当我尝试使用库中定义的类时,出现以下错误: “无法发出程序集:引用的程序集‘dataLibrary’没有强名称”

有人可以帮助我吗,我以前从未见过这样的事情。

I have created a visual basic class library named dataLibrary and have added it as a reference in a visual studio tools for application program in infopath 2007, and imported it.

Now when I try using a class defined in the library, I get the following error:
"Unable to emit assembly: Referenced assembly 'dataLibrary' does not have a strong name"

Can somebody help me out here, I've never seen anything like this before.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三寸金莲 2025-01-15 12:47:50

您可能遇到的问题是您的类库尚未使用强名称进行签名,但是您的程序集已进行了签名。

分辨率:
要么不对程序集进行签名,而让类库保持未签名状态,要么对程序集和类库都进行签名。

有关详细信息,请查看有关该主题的可靠答案:

为什么我会看到“无法发出程序集:引用的程序集... 做尝试添加引用时没有强名称”?

The issue you are likely encountering is that your class library has not been signed with a strong name, however your assembly IS signed.

Resolution:
Either don't sign your assembly and leave the class library unsigned or sign both the assembly and class library.

For more info, take a look at this solid answer on the topic:

Why would I see "Unable to emit assembly: Referenced assembly ... does not have a strong name" when trying to add a reference?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文