[英]Strong name verification does not fail for modified assembly
I followed this video , and the steps I did were: 我观看了此视频 ,然后执行的步骤是:
sn -v a.dll
command, and the response is: " Failed to verify assembly -- Strong name validation failed. " sn -v a.dll
命令进行了验证 ,响应为:“ 验证程序集失败-强名称验证失败。 ” My results are not the same as seen in the video. 我的结果与视频中看到的结果不同。 Is there a reason for this?
是否有一个原因?
I'm guessing you're using .NET 3.5 SP 1 or later, and I'm guessing the video is based on an earlier version, or has applied the below fix to disable the "Strong Name Signing Bypass". 我猜您正在使用.NET 3.5 SP 1或更高版本,并且我猜视频是基于较早版本的,或者已应用以下修补程序禁用了“强名称签名绕过”功能。
Please visit How to: Disable the Strong Name Signing Bypass Feature 请访问如何:禁用强名签名绕过功能
Starting with the .NET Framework version 3.5 Service Pack 1 (SP1), strong-name signatures are not validated when an assembly is loaded into a full-trust AppDomain ... Bypassing the validation of strong-name signatures provides significant performance improvements
从.NET Framework 3.5 Service Pack 1(SP1)开始,将程序集加载到完全信任的AppDomain中时,不对强名称签名进行验证...绕过对强名称签名的验证可显着提高性能
So, they changed the rules, provided you're running in full-trust. 因此,只要您以完全信任的身份运行,他们就会更改规则。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.