原文: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