C# Bot无法加入Bot emulator中的会话

C# Bot无法加入Bot emulator中的会话,c#,botframework,C#,Botframework,我最近将我的windows更新为windows 10和visual studio 2019,之后每当我尝试在bot Framework Emulator上运行我的bot时,我的bot都无法加入会话。早些时候,我在windows 7 Enterprise和Visual Studio 2017上工作。所有nuget软件包都已安装并更新为最新版本 我调试了我的Bot控制器类,在该类中,在PostAsync()的方法请求、响应上附加断点时,我得到以下错误: Length '((Microsoft.As

我最近将我的windows更新为windows 10和visual studio 2019,之后每当我尝试在bot Framework Emulator上运行我的bot时,我的bot都无法加入会话。早些时候,我在windows 7 Enterprise和Visual Studio 2017上工作。所有nuget软件包都已安装并更新为最新版本

我调试了我的Bot控制器类,在该类中,在
PostAsync()
的方法请求、响应上附加断点时,我得到以下错误:

Length  '((Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseStream)((Microsoft.AspNetCore.Http.Internal.DefaultHttpResponse)Response).Body).Length' threw an exception of type 'System.NotSupportedException' long {System.NotSupportedException}
Position    '((Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseStream)((Microsoft.AspNetCore.Http.Internal.DefaultHttpResponse)Response).Body).Position' threw an exception of type 'System.NotSupportedException'   long {System.NotSupportedException}

ReadTimeout '((Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.WriteOnlyStream)((Microsoft.AspNetCore.Http.Internal.DefaultHttpResponse)Response).Body).ReadTimeout' threw an exception of type 'System.NotSupportedException' int {System.NotSupportedException}

WriteTimeout    '((Microsoft.AspNetCore.Http.Internal.DefaultHttpResponse)Response).Body.WriteTimeout' threw an exception of type 'System.InvalidOperationException'    int {System.InvalidOperationException}

我有一个调度模型机器人在LUIS&QnA maker上工作,我的代码中没有任何更改,它在以前的windows版本中运行良好。我的系统也不在任何受限网络中,我也检查过,代理也被禁用。

这个由ngrok方引起的问题已经解决,总结OP的意见,以便帮助其他有类似问题的人:

Ngrok被我的工作网络屏蔽了


在VS2019中,您的主机上是否收到任何警告或错误?另外,您正在使用哪个版本的仿真器?你能利用在本地调试你的机器人程序吗?我解决了这个问题,ngrok被我的工作网络屏蔽了