blazorbootstrap icon indicating copy to clipboard operation
blazorbootstrap copied to clipboard

Crash .net 9 regression 3.2.0 -> 3.3.0

Open FrederikFBrandt opened this issue 11 months ago • 5 comments

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 avatar Feb 27 '25 13:02 FrederikFBrandt

@FrederikFBrandt Thank you for reporting this. I'll take a look at this.

gvreddy04 avatar Feb 28 '25 15:02 gvreddy04

Try this:

https://www.aspitalia.com/script/1504/Gestione-File-Javascript-Blazor-.NET.aspx

MaMon1963 avatar Mar 08 '25 16:03 MaMon1963

@gvreddy04 Thanks for looking into this. Any update on this issue? The nuget can't be updated until it has been resolved

FrederikFBrandt avatar Mar 26 '25 09:03 FrederikFBrandt

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.

MaMon1963 avatar Apr 08 '25 08:04 MaMon1963

Did this ever get looked at?

gianox avatar May 12 '25 21:05 gianox