Questions tagged [blazor-hosted]

5 questions
8
votes
2 answers

Blazor Web Assembly App .Net Core Hosted: publish runtime error

I've created a simple Blazor Web Assembly project hosted inside a .NET Core App using .NET 5.0 RC1 Framework and I added the authorization during the wizard in Visual Studio 2019 Preview. It works perfectly in debug but if I publish it and try to…
2
votes
1 answer

Blazor's WebApi returns text/html instead of application/json

My controller's methods in Blazor's server side WebApi returns an html/text response instead of application/json which leds to The provided ContentType is not supported; the supported types are 'application/json' and the structured syntax suffix…
qki
  • 323
  • 3
  • 14
1
vote
0 answers

hosted Blazor WebAssembly use an existing, external Identity Server

Hi I have a hosted WebAssembly project. I have managed to implement IS4 on the client side using the the standalone method…
0
votes
2 answers

Blazor Wasm Hosted Prerender with Authentication AuthenticationStateProvider not registered

I have an out of the box VS Template using Blazor WebAssembly Hosted with Authentication and have converted it over to use PreRendering. However, in doing so it looks like there are a lot of services that are included in the client side that are not…
JoeyD
  • 298
  • 2
  • 12
0
votes
1 answer

Blazor WASM Hosted Authentication Null Reference Exception in IdentityServerBuilderConfigurationExtension

I have a blazor WASM Hosted project using IdentityServer4 ( default from VS templates ). When I launch my application, however, I get the following error. Debugging shows that the options.Value.SigningCredential is null so the .Key is causing the…
JoeyD
  • 298
  • 2
  • 12