Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions

Category: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware
EventId: 1
RequestId: 800000f3-0003-eb00-b63f-84710c7967bb
RequestPath: /Sample
SpanId: |e04026eb-470f4c64c48ec282.
TraceId: e04026eb-470f4c64c48ec282
ParentId:

An unhandled exception has occurred while executing the request.

Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. 系统找不到指定的文件。
File name: 'Microsoft.Extensions.Configuration.Abstractions, Version=3.1.32.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
at Microsoft.EntityFrameworkCore.Storage.Internal.NamedConnectionStringResolverBase.ResolveConnectionString(String connectionString)

错误日志如上,这类错误就是代表具体某个版本的dll不存在,要检查一下你项目引用时,是不是这个版本的dll,发布的文件中如果缺少这类dll可以去debug中找到。

posted @ 2024-04-30 10:22  0Behavior  阅读(80)  评论(0编辑  收藏  举报