无法发出程序集
我创建了一个名为 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能遇到的问题是您的类库尚未使用强名称进行签名,但是您的程序集已进行了签名。
分辨率:
要么不对程序集进行签名,而让类库保持未签名状态,要么对程序集和类库都进行签名。
有关详细信息,请查看有关该主题的可靠答案:
为什么我会看到“无法发出程序集:引用的程序集... 做尝试添加引用时没有强名称”?
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?