KeyValuePair Issue in Blazor Web App .Net 8 after publish

Prathamesh Shende 511 Reputation points
2025-07-29T18:10:21.7866667+00:00

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
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 79,101 Reputation points Volunteer Moderator
    2025-07-29T19:02:35.65+00:00

    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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.