You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently upgraded my Blazor server project (.net 6) to version 3.2.0) only to find that my Bunit tests were failing with the following error message.
System.InvalidOperationException : Cannot provide a value for property 'Configuration' on type 'BlazorBootstrap.Spinner'. There is no registered service of type 'Microsoft.Extensions.Configuration.IConfiguration'.
I had to add the following service: Services.AddSingleton<Microsoft.Extensions.Configuration.IConfiguration>(new Microsoft.Extensions.Configuration.ConfigurationManager());
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
FYI:
I recently upgraded my Blazor server project (.net 6) to version 3.2.0) only to find that my Bunit tests were failing with the following error message.
I had to add the following service:
Services.AddSingleton<Microsoft.Extensions.Configuration.IConfiguration>(new Microsoft.Extensions.Configuration.ConfigurationManager());
Back on track now...
Beta Was this translation helpful? Give feedback.
All reactions