Closed DragoQCC closed 1 year ago
Have you added the mud extension services?
builder.Services.AddMudExtensions();
yes, i have that and also the app.UseMudExtensions();
as well. I haven't changed my code at all except for doing an upgrade to the package in Nuget.
seems the errors start at 1.7.64
Starting at that version I get an error about failed JS interop calls and versions newer then 1.7.65 give me the error i posted. Going back to anything older like 1.7.63 seems to work as expected.
Can you please check if your problem is solved with this package?
seems the errors start at
1.7.64
Starting at that version I get an error about failed JS interop calls and versions newer then 1.7.65 give me the error i posted. Going back to anything older like 1.7.63 seems to work as expected.
Then you have problems with your service registrations. Make sure MudServices are registered first and MudExtensionsServices afterwards
or call builder.Services.AddMudServicesWithExtensions()
to register both correctly
That version did not seem to make a difference. I also get this error when using the MudExFileDisplay
Unhandled exception rendering component: Cannot provide a value for property 'FileService' on type 'MudBlazor.Extensions.Components.MudExFileDisplayDialog'. There is no registered service of type 'MudBlazor.Extensions.Services.MudExFileService'.
My program.cs does load them in the correct order
builder.Services.AddMudServices();
builder.Services.AddMudExtensions();
Again, everything seems fine up until the 1.7.64
update, which throws errors on these two components.
That version did not seem to make a difference. I also get this error when using the
MudExFileDisplay
Unhandled exception rendering component: Cannot provide a value for property 'FileService' on type 'MudBlazor.Extensions.Components.MudExFileDisplayDialog'. There is no registered service of type 'MudBlazor.Extensions.Services.MudExFileService'.
My program.cs does load them in the correct order
builder.Services.AddMudServices(); builder.Services.AddMudExtensions();
Again, everything seems fine up until the
1.7.64
update, which throws errors on these two components.
Sure its a difference its another service that will not injected. So that means all registered services doesnt work in your app.
I have figured out the issue it was a conflict with the code beam mud extension package. They also tell you to use builder.Services.AddMudExtensions();
fix for this was just to refer to both by the full namespace
MudExtensions.Services.ExtensionServiceCollectionExtensions.AddMudExtensions(builder.Services);
MudBlazor.Extensions.ServiceCollectionExtensions.AddMudExtensions(builder.Services);
Contact Details
No response
What happened?
After updating to 1.7.67 when using the MudExFileDisplayZip I get the following error
This was working fine on an older version of the project so I'm not sure what may have changed between then and now. I dont see anything in the release notes or readme about it.
Expected Behavior
Zip content would render in the dialog.
Screenshots
No response
What application type are you referring to?
ServerRendered
Custom Application Type
No response
MudBlazor.Extension Version
1.7.67
MudBlazor Version
6.10.0
What browser are you using?
Chrome, Firefox
Sample Solution
No response
Pull Request
No response
Code of Conduct