首页 > 解决方案 > 无法加载文件或程序集“Microsoft.Bot.Builder.Autofac,

问题描述

我的 Bot 昨天运行良好,并且没有更改任何内容,由于某种原因,它给出了以下错误:

Exception while executing function: Functions.messages -> One or more errors 
occurred. -> Could not load file or assembly 'Microsoft.Bot.Builder.Autofac, 
Version=3.12.2.4, Culture=neutral, PublicKeyToken=31bf3856ad364f39' or one 
of its dependencies. The system cannot find the file specified.

我不知道为什么它突然发生,没有任何变化。请帮忙..

标签: c#botframeworkazure-functions

解决方案


假设您使用的是 Functions v2,这可能是“昨天工作,今天不再工作”的原因:

https://github.com/Azure/app-service-announcements/issues/106 这还描述了如何恢复到应该修复它的先前版本。

进一步讨论:https ://github.com/Azure/app-service-announcements-discussions/issues/46


推荐阅读