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