windows 无法加载文件或程序集Microsoft.AspNetCore,*

mrfwxfqh  于 2023-11-21  发布在  Windows
关注(0)|答案(1)|浏览(216)

在运行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()

字符串
重新启动该进程将恢复,就像什么都没有发生一样。
问题的根本原因是什么??

hfsqlsce

hfsqlsce1#

这可能是由于Windows Update安装了Dotnet的更新,通常是安全补丁。
检查事件日志(系统)中的事件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应用程序应该可以解决问题。
如果不在Patch Tuesday附近,您还可能会在上述事件之前看到Windows Defender Security Intelligence Security Intelligence Update for Microsoft Defender Antivirus - KB2267602的更新,这可能会触发其他组件的带外安全补丁的安装。

相关问题