带有表存储的Bot Framework开始抛出异常

时间:2018-02-09 20:16:12

标签: c# bots botframework azure-bot-service

直到两天前,我一直在使用Table Storage为我的机器人数据运行机器人框架,基于这篇博文[使用Bot Builder for Azure保存状态数据] [1]

截至昨天,我在运行bot时发现了以下错误

**

Exception: Buffer cannot be null. Parameter name: buffer
[File of type 'text/plain']

**

我已将其跟踪到Global.asax.cs文件中的以下代码行

builder.Register(c => new CachingBotDataStore(store, CachingBotDataStoreConsistencyPolicy.ETagBasedConsistency)).As<IBotDataStore<BotData>>().AsSelf().InstancePerLifetimeScope();

如果我注释掉那条线,那么机器人就会运行,但是机器人存储不会再存储在表中了。

我还将DocumentDB作为测试实现,并且机器人正常运行,但这意味着失去我所有用户的状态。

有什么想法吗?

0 个答案:

没有答案