You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Bot Framework Composer部署CLU Recognizer至Azure VM遇未注册异常

解决Bot Framework Composer部署Azure VM时Microsoft.CluRecognizer未注册异常

可能原因

  • CLU Recognizer组件包未正确部署到Azure VM环境
  • 项目依赖项未同步,缺少Microsoft.Bot.Components.Recognizers.ConversationLanguageUnderstanding NuGet包
  • VM环境中的Bot Runtime版本与本地不一致,导致组件注册逻辑不兼容

解决办法

1. 确认NuGet包部署

检查项目文件(.csproj)中是否包含CLU Recognizer的包引用,确保版本与本地开发环境一致:

<PackageReference Include="Microsoft.Bot.Components.Recognizers.ConversationLanguageUnderstanding" Version="x.x.x" />

重新发布项目到Azure VM,保证依赖包被完整部署。

2. 手动注册CLU Recognizer组件

若自动注册失效,可在Bot启动代码(如Program.cs或Startup.cs)中手动添加组件注册逻辑:

using Microsoft.Bot.Components.Recognizers.ConversationLanguageUnderstanding;

// 在ConfigureServices方法内添加
services.AddBotComponents().AddConversationLanguageUnderstandingRecognizer();

3. 验证Runtime环境版本

  • 确认Azure VM上的Bot Runtime版本与本地Composer使用的版本完全匹配,不同版本的Runtime对组件注册逻辑可能存在差异。
  • 按需在Azure VM上部署对应版本的Runtime。

4. 检查部署包完整性

  • 查看Azure VM上的部署文件目录,确认Microsoft.Bot.Components.Recognizers.ConversationLanguageUnderstanding.dll文件存在于输出目录中。
  • 若文件缺失,重新构建并发布项目,确保所有依赖项都被正确包含。

内容的提问来源于stack exchange,提问作者archil.z

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.14 00:03:21