Skip to content

.NET 10 Blazor App crashes while it works fine in .NET 9 #64440

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


My application adds a Scoped Service which causes the Blazor App to crash with the following error:

System.AggregateException: 'Some services are not able to be constructed
(Error while validating the service descriptor 'ServiceType: Microsoft.AspNetCore.Server.Kestrel.Core.Internal.PinnedBlockMemoryPoolFactory
Lifetime: Singleton ImplementationType: Microsoft.AspNetCore.Server.Kestrel.Core.Internal.PinnedBlockMemoryPoolFactory':
Cannot consume scoped service 'System.TimeProvider' from singleton 'Microsoft.AspNetCore.Server.Kestrel.Core.Internal.PinnedBlockMemoryPoolFactory'.)'

I have attached a solution that illustrates the crash.


Original Comments

Feedback Bot on 11/19/2025, 06:27 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issuearea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions