如何完全禁用签名的程序集? [英] How do completely disable signed assemblies?

查看:197
本文介绍了如何完全禁用签名的程序集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个项目VS.NET 2010的解决方案。我只是增加了一个新的库项目(the.library.assembly)。启动项目是一个网站。当我运行的网站,我得到这个错误:

I have a VS.NET 2010 solution with several projects. I just added a new library project (the.library.assembly). The startup project is a website. When I run the website, I get this error:

无法加载文件或程序集the.library.assembly或它的一个依赖。强名称签名无法验证。该组件可能已被篡改,或它被延迟签署,但以正确的私钥不完全签名。 (异常来自HRESULT:0x80131045)

Could not load file or assembly 'the.library.assembly' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

在哪里这是从哪里来的?我还没有使用签名的程序集与其他项目已经和他们很好地工作。

Where does this come from? I haven't been using signed assemblies with other projects and they work fine.

---编辑---

其实,我确实发现the.library.assembly上签字。这是有关故障排除的签署问题。我都不选中,在项目属性,并通过解决方案中的所有项目了。无签署。我现在得到的生成错误:

Actually, I did find that the.library.assembly was signed. This was related to trouble shooting the signed issue. I have unchecked that in project properties and gone through all projects in the solution. None are signed. I get the build error now:

Assembly generation failed -- Referenced assembly 'the.library.assembly' does not have a strong name.

我想,也许这是关系到一个WCF服务the.library.assembly被引用。我删除了服务和相关的code。一切都建立了良好的。我加的服务回报。另一个好身材。我增值服务相关的code回the.library.assembly。仍在构建。然后我说the.library.assembly调用到Web应用程序。这时候,我得到了上述构建失败的。

I thought maybe this was related to a WCF service the.library.assembly was referencing. I removed the service and related code. Everything built fine. I added the service back. Another good build. I added service related code back to the.library.assembly. Still builds. Then I added the.library.assembly calls into the web app. That's when I get the above build failure.

推荐答案

我发现条目引用了web应用程序的AssemblyInfo.cs中签约。这些评论让出解决方案来构建。

I found entries referencing signing in the web app's AssemblyInfo.cs. Commenting those out allowed the solution to build.

这篇关于如何完全禁用签名的程序集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆