原文:Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.

问题说明: 在.Net Core . 中进行了很多方面升级,常见错误之一: Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead. 出现错误的原因: 在.Net Core . 版本中,默认同步读取请求流 为 异步方式,默认不支持同步读取。 代码说明: 解决方案: ...

2020-04-02 19:32 0 4931 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM