Live Chat Icon For mobile
Live Chat Icon

Error: System.ArgumentException: Cannot instantiate implementation type ‘Microsoft.AspNetCore.Blazor.Services.UriHelperBase’ for service type ‘Microsoft.AspNetCore.Blazor.Services.IUriHelper’. Now what?

Here is the solution.

This works after adding a dependency injection for NavigationManager, and IUriHelper has been replaced with NavigationManager.

@inject NavigationManager Navigation;

Reference link:

https://devblogs.microsoft.com/aspnet/asp-net-core-and-blazor-updates-in-net-core-3-0-preview-9/

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.