Skip to content

Blazor .net 8 Identity - Add profile Pic #52932

Answered by woodconn
Kroplewski-M asked this question in General
Discussion options

You must be logged in to vote

Answer Source: https://stackoverflow.com/a/78889706/7354452

Ok so get ready for a crash course. Long story short, Blazor on Server-Mode with .NET 8 wants to render things in a static SSR (Server-Side Rendering) mode, not the fabled Interactive SSR mode. This causes the SignalR stuff to be non-existent, which explains why you can't simply preview an image as shown on Radzen live examples:

https://blazor.radzen.com/fileinput?theme=material3

Can't we just switch over?

Yes actually, BUT there are a few gotchas to take care of.

The static SSR allows that Cascading Parameter of HttpContext, but the Interactive version can't use that, it'll be null, your webpage will error out, and you'll have n…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Kroplewski-M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
3 participants