Skip to content

WebApplication.CreateBuilder() is getting stuck randomly. #61450

Open
@Munna0912t

Description

@Munna0912t

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I'm building an ASP.NET application with WebApplication.CreateBuilder(), but the build gets stuck sometimes randomly, for a long duration. Sometimes it executes the line var builder = WebApplication.CreateBuilder(args); within seconds, sometimes it gets stuck on this line for more than 10 minutes.

  • I'm using a mcr.microsoft.com/dotnet/aspnet:8.0 AS base image for deployment.
  • Resource usage is normal.

Expected Behavior

Expected Behaviour

  • It should execute within seconds every time.

Steps To Reproduce

The issue is not consistent, it works sometimes, sometimes it occurs randomly when we try to publish the project.

Exceptions (if any)

No response

.NET Version

8.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions