有关强名称验证跳过的奇怪问题 [英] Strange problems about strong name verification skipping

查看:120
本文介绍了有关强名称验证跳过的奇怪问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的ASP.NET应用程序使用的程序集没有强名称.当我在IE中运行它时,它显示一条错误消息:

My ASP.NET application is using an assembly without strong name. When I run it in IE, it shows an error saying:

无法加载"xxxxx"文件或asseml.或其依赖项之一.无法验证强名签名者.程序集可能已被篡改,或者已被延迟签名,但未使用正确的私钥完全签名.(来自HRESULT的异常:0x80131045)"

Could not load file or assemlby 'xxxxx.' or one of its dependencies. Strong name signatuer 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)"

我使用 sn.exe -Vr xxxx 注册该程序集以跳过强名称验证,但仍然显示该错误.可能是什么原因导致此问题,下一步该怎么解决?

I use sn.exe -Vr xxxx to register that assembly to skip the strong name verification, but still it shows that error. What could be causing this problem, and what can I do next to fix it?

推荐答案

这是因为您使用32位sn.exe来对64位计算机中的程序集进行取消签名,反之亦然.使用适当的sn.exe您可以解决此问题.请参阅超链接解决方案

This is because you are using 32 bit sn.exe to unsign an assembly in your 64 bit machine or vice versa. Use proper sn.exe you to solve this issue. Please see the hyperlink for the solution

这篇关于有关强名称验证跳过的奇怪问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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