Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Could not load type '..RenderModeInteractiveAttribute' from assembly 'Microsoft.AspNetCore.Components.Web'

$
0
0

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.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>