aliostad / CacheCow

An implementation of HTTP Caching in .NET Core and 4.5.2+ for both the client and the server
MIT License
848 stars 171 forks source link

Controller Add HttpCacheFactoryAttribute Error In .Net Core 3.0 #234

Closed snowchenlei closed 5 years ago

snowchenlei commented 5 years ago

Controller Add HttpCacheFactoryAttribute Get Error IN .Net Core 3.0. "Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead."

aliostad commented 5 years ago

Thanks a lot. Will be on it.

aliostad commented 5 years ago

Hi, on further review it might not be related to .NET Core 3.0 - although there was this announcement in its favour. Would you be able to send a repro which works against 2.2 but fails on 3.0?

Also please provide the full stack trace.

snowchenlei commented 5 years ago

Happen In Update .Net Core 2.2 To .Net Core 3.0。 Use Version image 1、Startup: image 2、Use: image 3、Exception: A、Message:Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead. B、Source:Microsoft.AspNetCore.Server.IIS C、StackTrace: image

aliostad commented 5 years ago

Hi, issue is fixed now in version 2.5.0. Can you please check and if you still have a problem I will open the issue again.