Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio template for Azure Functions does not run correctly #2550

Open
vijayrkn opened this issue Oct 9, 2024 · 0 comments
Open

Visual Studio template for Azure Functions does not run correctly #2550

vijayrkn opened this issue Oct 9, 2024 · 0 comments
Labels

Comments

@vijayrkn
Copy link

vijayrkn commented Oct 9, 2024

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 vijayrkn added the bug label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant