It likes like after your blazor WASM loaded, the bootstrap js file called load (program.cs) and the init code threw an error creating an object with a constructor that takes a KeyValuePair2 parameter, which is null.
KeyValuePair Issue in Blazor Web App .Net 8 after publish

Prathamesh Shende
511
Reputation points
I am getting issue after publish to the hosting
KeyValuePair2
How do i find where is this issue in project?
Error: AggregateException_ctor_DefaultMessage (ConstructorContainsNullParameterNames, System.Collections.Generic.KeyValuePair2[System.String,System.String])
blazor.web.js:1:156332
callEntryPoint https://clinix.innovustech.in/_framework/blazor.web.js:1
ti https://clinix.innovustech.in/_framework/blazor.web.js:1
ei https://clinix.innovustech.in/_framework/blazor.web.js:1
startWebAssemblyIfNotStarted https://clinix.innovustech.in/_framework/blazor.web.js:1
resolveRendererIdForDescriptor https://clinix.innovustech.in/_framework/blazor.web.js:1
determinePendingOperation https://clinix.innovustech.in/_framework/blazor.web.js:1
refreshRootComponents https://clinix.innovustech.in/_framework/blazor.web.js:1
rootComponentsMayRequireRefresh https://clinix.innovustech.in/_framework/blazor.web.js:1
(Async: setTimeout handler)
rootComponentsMayRequireRefresh https://clinix.innovustech.in/_framework/blazor.web.js:1
startLoadingWebAssemblyIfNotStarted https://clinix.innovustech.in/_framework/blazor.web.js:1
registerComponent https://clinix.innovustech.in/_framework/blazor.web.js:1
Ki https://clinix.innovustech.in/_framework/blazor.web.js:1
Ki https://clinix.innovustech.in/_framework/blazor.web.js:1
(Async: EventListener.handleEvent)
Ji https://clinix.innovustech.in/_framework/blazor.web.js:1
<anonymous> https://clinix.innovustech.in/_framework/blazor.web.js:1
<anonymous> https://clinix.innovustech.in/_framework/blazor.web.js:1
Developer technologies | .NET | Blazor
Accepted answer
-
Bruce (SqlWork.com) 79,101 Reputation points Volunteer Moderator
2025-07-29T19:02:35.65+00:00