提问人:Madushan 提问时间:10/25/2023 最后编辑:Madushan 更新时间:10/25/2023 访问量:79
无法加载文件或程序集 Microsoft.AspNetCore。
Could not load file or assembly Microsoft.AspNetCore.*
问:
在运行 Dotnet 7 且没有问题的服务上,开始持续记录以下事件。服务进程继续运行,但没有任何工作。不接受任何请求。进程似乎处于僵尸状态。
Category: Microsoft.AspNetCore.Server.Kestrel
EventId: 0
ConnectionId: 0HMUL71ECIOGR
Unhandled exception while processing 0HMUL71ECIOGR.
Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Http.Features, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
File name: 'Microsoft.AspNetCore.Http.Features, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync()
重新启动进程将恢复,就好像什么都没发生一样。
造成这种情况的根本原因是什么?
答:
-1赞
Madushan
10/25/2023
#1
这可能是由于 Windows 更新安装了 Dotnet 更新,通常是安全修补程序。
检查事件日志 (SYSTEM) 中的事件 ID。(这些将在问题开始时出现。
Source: WindowsUpdateClient
Task Category: Windows Update Agent
44 Windows Update Agent Windows Update started downloading an update.
43 Windows Update Agent Installation Started: Windows has started installing the following update: ...
19 Windows Update Agent Installation Successful: Windows successfully installed the following update: ...
如果是这样,则安装更新是可能的原因。重新启动受影响的 dotnet 应用程序应该可以解决问题。
如果它不在星期二补丁日前后,你还可能在上述事件之前看到 Windows Defender 安全智能的更新,这可能触发了其他组件的带外安全修补程序的安装。Security Intelligence Update for Microsoft Defender Antivirus - KB2267602
评论