Unplanned
Last Updated: 17 Sep 2024 07:00 by ADMIN
Janick
Created on: 13 Jun 2023 07:19
Category: UI for ASP.NET Core
Type: Feature Request
4
Use TextWriter Async methods for HTML Helpers

Consider the use of TextWriter async methods for the HTML Helpers, for example the WriteInitializationScript methods.  In certain scenarios the use of the synchronous methods causes an exception: System.InvalidOperationException: Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead.

This can be resolved by explicitly enabling synchronous operations

services.Configure<IISServerOptions>(options =>
    {
        options.AllowSynchronousIO = true;
    });

though synchronous operations have been disabled by default at framework level as of .NET 3.0.

2 comments
ADMIN
Anton Mironov
Posted on: 17 Sep 2024 07:00

Hello Jack,

Thank you for sharing the .NET8 information. We will consider this part as well.

 

Kind Regards,
Anton Mironov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

JG
Posted on: 10 Sep 2024 10:59
Can confirm we're seeing the same issue using the datasource widget in NET8