Question Set up MudBlazor for Blazor Wep App in .Net 8

Pablo

Well-known member
Joined
Aug 12, 2021
Messages
73
Programming Experience
10+
Hello
I'm again trying to learn Blazor with MudBlazor. The issue now is I can't set up MudBlazor in .Net 8 Blazor Web App.
I followed this guide but it doesn't work.
I searched more but didn't find anything.
This line
C#:
builder.Services.AddMudServices();
in the Server project doesn't work (Maybe because in Server project MudBlazor package is not installed?)
The error message (in run time) is this:
InvalidOperationException: Cannot provide a value for property 'DialogService' on type 'MudBlazor.MudDialogProvider'. There is no registered service of type 'MudBlazor.IDialogService'.
Would you give me any pointing on how to solve this issue?
Thank you in advance.
Pablo
 
That SO answer/guide was written in Jan 2024. Did you try installing the versions of the various Nuget packages that were available at that time of writing, rather the latest and greatest versions currently offered?

Did you try the GitHub project offered?
 
I just compiled and ran the code from GitHub and it seems to be happy:
1720300042498.png


So the question is if there is some secret ingredient in the GitHub project that the responder forgot to put into his documented steps in StackOverflow.
 
Back
Top Bottom