Crash .net 9 regression 3.2.0 -> 3.3.0
NOTE: We do not look at .zip attachments for issue investigation.
Describe the bug I run Blazor WASM with Blazor Server. The "builder.Services.AddBlazorBootstrap();" is only located in the client project. When upgrading from 3.2.0 to either 3.3.0 or 3.3.1 the app crashes:
Method not found: Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.Config.AddBlazorBootstrap(Microsoft.Extensions.DependencyInjection.IServiceCollection) at sn (c:\project\Server_framework\https:\raw.githubusercontent.com\dotnet\runtime\80aa709f5d919c6814726788dc6dabe23e79e672\src\mono\browser\runtime\marshal-to-js.ts:420:18) at rn (c:\project\Server_framework\https:\raw.githubusercontent.com\dotnet\runtime\80aa709f5d919c6814726788dc6dabe23e79e672\src\mono\browser\runtime\marshal-to-js.ts:290:31) at nn (c:\project\Server_framework\https:\raw.githubusercontent.com\dotnet\runtime\80aa709f5d919c6814726788dc6dabe23e79e672\src\mono\browser\runtime\marshal-to-js.ts:277:21)
It seems like the crash happens on the server after upgrading although the server isn't using Blazor Bootstrap directly. I have tried adding "builder.Services.AddBlazorBootstrap();" to the server program.cs as a test, but that did nothing.
To Reproduce Steps to reproduce the behavior:
Add blazor bootstrap to client project
Upgrade from version 3.2.0 to any newer version
Crash on startup
Expected behavior Startup without crash
Versions (please complete the following information):
- .NET Version: [.NET 9]
- BlazorBootstrap: [3.3.0, 3.3.1]
- Blazor WebAssembly / Server: [WebAssembly with blazor Server]
@FrederikFBrandt Thank you for reporting this. I'll take a look at this.
Try this:
https://www.aspitalia.com/script/1504/Gestione-File-Javascript-Blazor-.NET.aspx
@gvreddy04 Thanks for looking into this. Any update on this issue? The nuget can't be updated until it has been resolved
Hi, apart from the suggestion to try a possible resolution to @FrederikFBrandt 's problem, I have a similar site and it doesn't give me any problems with .Net 9 and 3.3.x. In addition, the server responds and two clients in multiple app configuration in the same solution. However, since I was migrating from the previous version, it was necessary to align the modified enumerations for some controls, otherwise no problem.
Did this ever get looked at?