ASP.NET-对“ MyAssembly”的签名检查失败

When you're using a delay-signed strongly-named assembly in ASP.NET you might get this error:

在ASP.NET中使用延迟签名的强命名程序集时,可能会出现以下错误:

Configuration Error 

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: The check of the signature failed for assembly 'MyAssembly'.Source Error:
Line 229:        <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 230:        <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 231:        <add assembly="*" />
Line 232:      </assemblies>
Line 233:    </compilation>

Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config    Line: 231

配置错误 

说明:在处理服务于此请求所需的配置文件期间发生错误。 请查看下面的特定错误详细信息,并适当修改您的配置文件。 解析器错误消息:程序集'MyAssembly'的签名检查失败。 源错误:
第229行:        <add assembly =“ System.EnterpriseServices,Version = 1.0.5000.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a” />
230行:        <add assembly =“ System.Web.Mobile,Version = 1.0.5000.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a” />
第231行:        <add assembly =“ *” />
232行:      </组装>
第233行:    </ compilation>

源文件: c:\ windows \ microsoft.net \ framework \ v1.1.4322 \ Config \ machine.config行: 231

Even if you've set up verification skipping with sn.exe -Vr, you'll need to restart the ASP.NET worker process before it takes effect as the information is only read when the process is first started.

即使已使用sn.exe -Vr设置了跳过验证,您也需要重新启动ASP.NET工作进程才能生效,因为该信息仅在首次启动时才读取。

翻译自: https://www.hanselman.com/blog/aspnet-the-check-of-the-signature-failed-for-myassembly

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值