热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

关于强名称验证跳过的奇怪问题-Strangeproblemsaboutstrongnameverificationskipping

MyASP.NETapplicationisusinganassemblywithoutstrongname.WhenIrunitinIE,itshowsaner

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

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

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)"

无法加载或组装文件。或者是它的一个附属品。强名称签署者无法验证。程序集可能被篡改过,或者被延迟签名,但是没有使用正确的私钥完全签名。(从HRESULT例外:0 x80131045)”

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?

我使用sn。exe -Vr xxxx注册该程序集以跳过强名称验证,但仍然显示该错误。造成这个问题的原因是什么?我下一步该怎么做?

2 个解决方案

#1


2  

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

这是因为你使用的是32位的sn。在64位机中取消一个程序集的签名,反之亦然。使用适当的sn。让你解决这个问题。请查看解决方案的超链接

#2


0  

That's delay signing, intended for testing: you need to run sn -Vr on every machine that you want to skip verification on.

这是延迟签名,用于测试:您需要在您想跳过验证的每台机器上运行sn -Vr。

I guess you'll have to complete the signing, sn -r, before you publish your assembly to the web.

我想在将程序集发布到web之前,您必须完成签名,sn -r。


推荐阅读
author-avatar
张春雷11111
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有