# Using Kestrel in an ASP.NET Core Application with a Dynamic Grid

## Environment

<table>
 <tr>
  <td>Product</td>
  <td>Grid for Progress® Telerik® UI for ASP.NET Core</td>
 </tr>
</table>

## Description

After I upgraded `kendo.all.min.js` from version 2019.3.1023 to version 2020.1.114 and ASP.NET Core from 2.2 to 3.1, I have troubles with the dynamic creation of columns and data types.
The functionality works on core 2.2 and doesn't work on core 3.1. No error are reported on the server or client side but the response is not rendering the Grid.

## Solution

After I deleted almost everything an error occurs:

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

It appears that .NET Core changed the defaults so you need to add the following code in `Startup.cs`:

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

## More ASP.NET MVC Grid Resources

* [ASP.NET MVC Grid Documentation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/overview)

* [ASP.NET MVC Grid Demos](https://demos.telerik.com/aspnet-mvc/grid/index)

* [ASP.NET MVC Grid Product Page](https://www.telerik.com/aspnet-mvc/grid)

* [Telerik UI for ASP.NET MVC Video Onboarding Course (Free for trial users and license holders)](https://www.telerik.com/aspnet-mvc/documentation/getting-started/video-onboarding)

* [Telerik UI for ASP.NET MVC Forums](https://www.telerik.com/forums/aspnet-mvc)

## See Also

* [Client-Side API Reference of the Grid for ASP.NET MVC](https://docs.telerik.com/kendo-ui/api/ui/grid)
* [Server-Side API Reference of the Grid for ASP.NET MVC](https://docs.telerik.com/aspnet-mvc/api/grid)
* [Telerik UI for ASP.NET MVC Breaking Changes](https://www.telerik.com/aspnet-mvc/documentation/backwards-compatibility/2023-backwards-compatibility)
* [Telerik UI for ASP.NET MVC Knowledge Base](https://docs.telerik.com/aspnet-mvc/knowledge-base)
