arichika / RotativaCore

for ASP.NET Core on Azure Web Apps (by Windows). Support .NETStandard 2.0
https://www.nuget.org/packages/RotativaCore/
MIT License
14 stars 6 forks source link

Synchronous operations are disallowed in ASP.NET Core 3.0.0 #5

Closed vertonghenb closed 5 years ago

vertonghenb commented 5 years ago

Is it possible to create the .Pdf files async instead of sync? In ASP.NET Core 3.0.0 it's no longer allowed by default and the action will throw:

Issues start when calling new ViewAsPdf()

InvalidOperationException: Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead.

Announcement can be found here: https://github.com/aspnet/AspNetCore/issues/7644

arichika commented 5 years ago

@vertonghenb Thank you very much. I want to fix it.

vertonghenb commented 5 years ago

@arichika PR is ready to fix this issue. However there are still some blocking .Wait() calls that could be fixed in the later run.

arichika commented 5 years ago

Closed #6

arichika commented 5 years ago

Rreleased and Updated the README. Thank you. @vertonghenb https://www.nuget.org/packages/RotativaCore/3.0.0