I have a Blazor Web solution where in the Program.cs of the startup project the following before "app.Run();" is throwing an error:
app.MapRazorComponents<App>() .AddInteractiveServerRenderMode() .AddInteractiveWebAssemblyRenderMode() .AddAdditionalAssemblies(typeof(Counter).Assembly);The error reads as follows:
Exception has occurred: CLR/System.TypeLoadExceptionAn unhandled exception of type 'System.TypeLoadException' occurred in System.Private.CoreLib.dll: 'Could not load type 'Microsoft.AspNetCore.Components.Web.RenderModeInteractiveAutoAttribute' from assembly 'Microsoft.AspNetCore.Components.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.'Not sure how to go about fixing this, any help would be great, thanks.