Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

Visual Studio template for Azure Functions does not run correctly

Open vijayrkn opened this issue 1 year ago • 0 comments

Using Microsoft Visual Studio Enterprise 2022, Version 17.11.0 (VisualStudio.17.Release/17.11.0+35208.52) with the latest Azure Function Core Tools (4.0.5907) and Microsoft.NET.Sdk.Functions (4.4.1) when I create a new Function App based on the Visual Studio Azure Function template, the application generated compiles and runs, but gives a synchronisation error. (I check Azurite and .NET8.0 as options in the wizard). When I trigger the function by visiting the url, the logging shows the function is executed , but then gives an error: [2024-08-14T10:59:43.694Z] Executing ‘DurableFunctionsEntityCSharp_CounterHttpStart’ (Reason=‘This function was programmatically called via the host APIs.’, Id=57f99977-047f-446c-84bf-3e49c9b23008) [2024-08-14T10:59:43.727Z] Executed ‘DurableFunctionsEntityCSharp_CounterHttpStart’ (Succeeded, Id=57f99977-047f-446c-84bf-3e49c9b23008, Duration=33ms) [2024-08-14T10:59:43.730Z] An unhandled host error has occurred. [2024-08-14T10:59:43.730Z] Microsoft.AspNetCore.Server.Kestrel.Core: Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead.

Image

More details of the issue available here: https://developercommunity.visualstudio.com/t/Visual-Studio-template-for-Azure-Functio/10722427

vijayrkn avatar Oct 09 '24 21:10 vijayrkn