36 questions
0
votes
0
answers
65
views
Asset conflict for non-existing asset
I have a Blazor WebAssembly project hosted in an ASP.NET Core (Yarp) project - basically, the .NET 7 template recreated under .NET 8.
I had some asset files not in the hosted project but under a ...
0
votes
0
answers
44
views
Blazor WebAssembly + MSAL: Token not refreshing when using localStorage for cacheLocation
I'm working on a Blazor WebAssembly app that uses MSAL package Microsoft.Authentication.WebAssembly.Msal version 8.0.13 for authentication. I configured the MSAL cache to use localStorage by setting ...
0
votes
0
answers
169
views
How to deploy a Blazor WASM custom element and call it from an spa application
I have created a custom element with blazor and I need to call it from another page, but I need to have this blazor custom element on a diferent domain, the problem is when I try to call it from ...
1
vote
0
answers
229
views
Failed to find a valid digest in 'integrity' for the resource blazor.boot.json in .NET 8 hosted Blazor WebAssembly PWA
I'm working on a .NET 8 Blazor WASM PWA project. I've basically recreated the old template that used to be called "hosted" by following this video https://www.youtube.com/watch?v=3Ur79_kHVpo....
0
votes
1
answer
55
views
Page is not updated with HotReload message
I have a Blazor Server Side hosted with WebassemblyClient application on .NET 8, which has been around since .NET 5 and has been repeatedly updated. At some point hot relaod stopped working. I would ...
3
votes
3
answers
3k
views
Blazor Web Assembly CSS isolation doesn't work
I migrated my Blazor WASM app to .NET 8, and I realised that CSS is not working if I use it in {component}.razor.css.
I mean
File Component.razor:
<div class="collapse navbar-collapse" id=...
1
vote
2
answers
1k
views
Hosted Blazor having trouble serving file from wwwroot folder
I am integrating Stripe Website into my hosted .NET Core app. Specifically, I need to verify for Apple Pay that I am the site owner. The instructions on the Stripe website tell me to download a file ...
1
vote
0
answers
216
views
Blazor WebAssembly code throwing exception only after being published
I have following converter:
public class ExpandoObjectConverter : JsonConverter<dynamic>
{
private static readonly ExpandoObjectConverter self = new();
public override dynamic Read(ref ...
0
votes
1
answer
193
views
SignalrR transport from WASM
I have a hosted .net 7 Blazor WASM project, that uses a SignalR connection with the host. The communication is established, and it works. So far so good. What I have noticed, is that although a ...
1
vote
0
answers
77
views
Blazor Webassembly IHostApplicationLifetime equivalent
Is there any source for a CancellationToken in Blazor WebAssembly that signals the termination of the whole application - similar to IHostApplicationLifetime.ApplicationStopping? If there is no such ...
0
votes
0
answers
163
views
How to avoid directly pass the recaptcha v3 site key into script tag of index.html
Implemented recaptcha v3 into blazor webassembly by placing recaptcha script tags in index.html page. but when i view source code from browser the site html page visible to everyone which contains ...
1
vote
0
answers
257
views
how can i hide the api request unauthorized console log in blazor web assembly?
enter image description hereTry to access the authorized server side api method and getting unauthorized error in response. i handled them to refresh token but that unauthorized error with api url ...
1
vote
0
answers
606
views
Publish docker container for Blazor WASM Hosted app (.net 6) with SQL Server
As the title suggests, I want help regarding how to publish a docker container for my Blazor WASM hosted app which is using a SQL Server. I am a complete docker noob.
From what I gathered from the ...
1
vote
2
answers
2k
views
Migrating from Blazor wasm hosted .NET 7 to Blazor web app .NET 8
I followed all instructions on how to migrate a Blazor wasm hosted to Blazor web app.
The problem is client project couldn't communicate with server even everything is configured.
I added AddScoped ...
0
votes
3
answers
681
views
Should I use Client credential flows for enabling Microsoft Graph API for my webapp that has a module to get list of conference rooms?
We're working on a web app that will be used by a specific client. One of their requests is that the app should only work for their organization. We've set up authentication using asp.net identity. ...
0
votes
1
answer
808
views
Blazor WebAssembly Hosted internal server error
I tried to deploy sample project exists in Blazor WebAssembly Hosted application. I published the server app and tried to run it using .exe file. It worked fine. But when I tried to deploy it in IIS, ...
0
votes
2
answers
796
views
How to consume a web service in the server from a hosted blazor webassembly app with Signal-R (.NET Core 6.0)
I have written a hosted blazor web assembly app with SignalR and I need to figure out how to consume a web service in the server side.
An API controller on the server side
The idea is that this ...
1
vote
2
answers
800
views
What could be the cause of this exception error : "Could not load type 'WebAssembly.JSInterop.JSCallInfo'" in Blazor WebAssembly?
I have created an integration test project to mock API with WireMock.Net library. My application is a Blazor WebAssembly with ASP.NET Core Hosted. However, when I try to debug my test case I get this ...
1
vote
0
answers
295
views
HubConnection StartAsync in hosted Blazor Webassembly takes too long
I am working on a microservices project with a hosted blazor webassembly application all in a kubernetes cluster. In the Blazor Webassembly (Hosted) PWA I am using SignalR Hub for the communication ...
0
votes
1
answer
493
views
Doesn't render anything of the Webassembly application when navigating the first time to the url
I don't know a lot of Blazor but I do have a problem that I think a lot of us are trying to solve.
I have a Blazor Webassembly application that I'm trying to prerender for improving the SEO. I ...
-1
votes
2
answers
1k
views
I want to catch the exception if external api failed when internet disconnected
private async Task<IEnumerable<Result>> searchresult(string searchText)
{
try
{
rootdata = await HttpClientJsonExtensions.GetFromJsonAsync<Rootdata>(httpClient,$"...
0
votes
1
answer
67
views
Publish Blazor wsam Host with Individual Accont
I have a problem with Blazor WSAM Host with Individual Account. When create new wsam project in VS2022 and update-database everything works well. register new user and login works.
But when publish in ...
0
votes
1
answer
672
views
Blazor WASM custom elements in razor pages only working on the root (Index.cshtml) page
I modified this Blazor Custom Elements Sample (".NET 7 Blazor Custom Elements Sample hosted in ASP.NET Core Razor Pages": https://github.com/khalidabuhakmeh/BlazorCustomElementsSample) to ...
1
vote
1
answer
706
views
Best approach for hiding Blazor WebAssembly app behind login wall
I need to build an ASP.NET Core hosted Blazor Webassembly app (.NET 6) where all of the app functionality is hidden behind a login wall but I'm not sure how best to achieve this. For authentication/...
1
vote
0
answers
465
views
Blazor WASM Multi-tenant sign-in & call own protected API
I am attempting to make a blazor WASM application with user sign-in using MS authentication configured for multi-tenant which can call an API in the applications host that is also protected by MS ...
2
votes
1
answer
1k
views
Blazor WASM - There was an error trying to log you in: 'this._settings.loginMode is undefined'
I've created a new dotnet 6 blazor wasm app with the core hosted option. The Visual Studio 2022 (v17.3.1) template creates Client, Server and Shared projects for this.
I've updated the Server project'...
1
vote
1
answer
1k
views
Advice on hosted Blazor WASM - blank screen before initial load when app is hidden behind a login page
I've created an app with Blazor WASM (.net 6) which is ASP.NET Core hosted with authentication. When first accessing the app the user is presented with a login page and cannot get to the rest of the ...
1
vote
0
answers
665
views
.Net 6 , Blazor WASM -- paging a list of "records" for CRUD --
My project is VS-2022, .Net 6, C#, Blazor WASM hosted. For CRUD, we designed a razor page showing a list of "records" but needed a way to "page" for a list of 12 records on each ...
0
votes
2
answers
819
views
How to combine custom permission-based authorization with MicrosoftIdentity/MSAL in Hosted Blazor WebASM
As the title, i'm trying but still found no solution.
This is flow: User <-> Blazor.Client <-> Blazor.Server <-> External APIs.
Blazor.Client: MSAL Authentication
Blazor.Server: ...
4
votes
1
answer
4k
views
Create a multiple WebAssembly projects in a single solution
Please, see this question for context and the answer by MrC aka Shaun Curtis
This question is about something I've tried to solve in the past without great success. Are you familiar with this sample ...
1
vote
0
answers
284
views
Dockerize a Blazor WASM Application with dotnet watch run
I'm trying to dockerize a Blazor WASM application, but I want to run the application using dotnet watch run for the local development environment.
the src code is the default Blazor WASM template, I'...
1
vote
0
answers
3k
views
Dynamically adding policy claims for Blazor authorization
I am creating an authentication and authorization handler for internal authorization purposes. My intention is to make it easy for my colleagues to implement the solution into their own projects. We ...
7
votes
1
answer
3k
views
Hot reload in Visual Sstudio 2022 Current not working for existing Blazor application
After using VS 2022 preview for several iterations I removed it and installed VS 2022 Current when it became available.
Existing Blazor hosted application does not Hot reload on file save or on ...
0
votes
1
answer
574
views
How to get Application ID URI formats working
I'm having trouble getting any of the Application ID URIs working. I have a Blazor WebAssembly Hosted application, written in ASP.NET Core 5.0. Using the api://<appId> format is fine, but this ...
1
vote
0
answers
224
views
Blazor WebAssembly - How can I add a new *.razor page that don't need to recompile or rebuild the project
I am developing a survey project which collects data from the client with Blazor WebAssemly for the Client-side. Each survey form will have a different design and edit-checked rule. So I decide when I ...
1
vote
1
answer
887
views
Blazor integrity error for framework DLL, one subdomain works the other not
I have two blazor applications with exactly same code, one running on the url https://subdomain1.domain.com and the other on https://subdomain2.domain.com
These applications are hosted blazor ...