Posted 12 May 2020, 6:58 am EST
Hello,
Issue is related to Asp.net Core 3 changes, see:
https://stackoverflow.com/questions/47735133/asp-net-core-synchronous-operations-are-disallowed-call-writeasync-or-set-all
Workaround is simle, if you are targeting netcore3.0 just add the following lines at startup.cs:
services.Configure(options =>
{
options.AllowSynchronousIO = true;
});
Please refer the following lines of code:
public void ConfigureServices(IServiceCollection services)
{
services
.AddReporting()
.AddDesigner()
.AddSingleton<ITemplatesService>(new FileSystemTemplates(TemplatesRootDirectory))
.AddSingleton<IDataSetsService>(new FileSystemDataSets(DataSetsRootDirectory))
.AddMvc(options => options.EnableEndpointRouting = false)
.AddNewtonsoftJson(options => options.SerializerSettings.ContractResolver = new DefaultContractResolver());
services.Configure<IISServerOptions>(options =>
{
options.AllowSynchronousIO = true;
});
// In production, the Angular files will be served from this directory
services.AddSpaStaticFiles(configuration =>
{
configuration.RootPath = "ClientApp/dist";
});
}
Thanks,