我最近将一个托管在IIS10服务器上的.net web应用程序(v3.5)移动到了IIS10服务器上,之后该应用程序重新启动了几次,所有东西都宕机了。我手动回收了IIS一次,应用程序开始工作,但现在我的事件查看器日志中不断弹出这些警告,我不知道如何解决这个问题。该应用程序似乎运行正常,但这些警告有点令人担忧,因为它已经填满了整个eventviewer应用程序日志。有人能解释一下发生了什么吗?我找到了一个相关的帖子,但没有真正得到解决方案,如果有人能加入进来就太好了。错误如下:
3012
An error occurred processing a web or script resource request. The resource identifier failed to decrypt.
5/25/2020 1:27:56 PM
5/25/2020 7:57:56 AM
709f3592d2ad4343bf5965471b800362
1621
516
0
/LM/W3SVC/1/ROOT-1-132348489440653768
Full
/
C:\inetpub\wwwroot\
ERP-APP
20172
w3wp.exe
IIS APPPOOL\DefaultAppPool
HttpException
Unable to validate data. at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData) at System.Web.UI.Page.DecryptString(String s, Purpose purpose) at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
http://192.0.1.26/AppWeb/WebResource.axd?d=CO7ammFOcmKBQVIxHLAoEA2&t=633735960628463707
/AppWeb/WebResource.axd
192.0.1.1
False
IIS APPPOOL\DefaultAppPool
1016
IIS APPPOOL\DefaultAppPool
False
at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData) at System.Web.UI.Page.DecryptString(String s, Purpose purpose) at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context
发布于 2020-05-26 15:00:58
该警告背后的原因是IIS主机上的machineKey不足以解密服务器上的某些信息。
要解决此问题,您可以尝试执行以下操作:
1)手动将解密密钥放入您的web.config中:
<machineKey decryptionKey="..." />
2)使用iis管理器GUI机器密钥功能,并在两个IIS服务器上配置相同的机器密钥。
https://stackoverflow.com/questions/62000525
复制相似问题