Hi,
I've updated one of our solutions to use version 9.3.4, and with it Blazorise 1.7.7.
Upon running the solution I get the following error in the ConfigureBlazorise method of the BlazorModule:
private void ConfigureBlazorise(ServiceConfigurationContext context)
{
context.Services
.AddBootstrap5Providers()
.AddFontAwesomeIcons();
}
System.TypeLoadException HResult=0x80131522 Message=Method 'BarDropdownItemDisabled' in type 'Blazorise.Bootstrap5.Providers.Bootstrap5ClassProvider' from assembly 'Blazorise.Bootstrap5, Version=1.7.7.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. Source=Blazorise.Bootstrap5 StackTrace: at Blazorise.Bootstrap5.Config.AddBootstrap5Providers(IServiceCollection serviceCollection, Action`1 configureClassProvider) at R3.Blazor.R3BlazorModule.ConfigureBlazorise(ServiceConfigurationContext context) in C:\Webs\R3\aspnet-core\src\R3.Blazor\R3BlazorModule.cs:line 406 at R3.Blazor.R3BlazorModule.ConfigureServices(ServiceConfigurationContext context) in C:\Webs\R3\aspnet-core\src\R3.Blazor\R3BlazorModule.cs:line 216 at Volo.Abp.Modularity.AbpModule.ConfigureServicesAsync(ServiceConfigurationContext context) at Volo.Abp.AbpApplicationBase.
I cannot see anyone else that's had the issue. I have updated Blazorise.Bootstrap5, Blazorise.Icons.FontAwesome, Blazorise.LoadingIndicator, Blazorise.Markdown and Blazorise.RichTextEdit all to 1.7.7.
Have I missed somethig? Do I need to any other references to the project?
Thanks
2 Answer(s)
-
0
The error you are encountering,
System.TypeLoadException
related toBlazorise.Bootstrap5ClassProvider
, typically occurs when there is a version mismatch between Blazorise core and its provider packages (e.g., Blazorise.Bootstrap5, Blazorise.Icons.FontAwesome, etc.). All Blazorise packages must be on the exact same version to avoid such issues.To resolve this:
- Ensure that all Blazorise-related NuGet packages in your solution are updated to the same version (1.7.7 in your case). This includes:
- Blazorise
- Blazorise.Bootstrap5
- Blazorise.Icons.FontAwesome
- Blazorise.LoadingIndicator
- Blazorise.Markdown
- Blazorise.RichTextEdit
- Clean and rebuild your solution after updating the packages.
- If you have any transitive dependencies or old references in other projects within your solution, update or remove them to prevent conflicts.
- Ensure that all Blazorise-related NuGet packages in your solution are updated to the same version (1.7.7 in your case). This includes:
If you are using ABP Framework, also ensure your ABP Blazor packages are compatible with the Blazorise version you are using. ABP may not support the latest Blazorise versions immediately after their release, so check the ABP documentation or migration guides for supported versions.
If you have customized or copied any theme or provider code, ensure it is also updated to match the new Blazorise API.
Sources:
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0