Questions tagged [hosted-blazor-webassembly]

29 questions
7
votes
1 answer

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 pressing Hot reload button. It was reloading "fine" in…
3
votes
1 answer

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 I've once downloaded and run it. It did not…
enet
  • 41,195
  • 5
  • 76
  • 113
1
vote
1 answer

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 exception error: "Could not load type…
1
vote
0 answers

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 between the Blazor.Client and Blazor.Server. When I…
ibram
  • 4,414
  • 2
  • 22
  • 34
1
vote
1 answer

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/authorisation I'm using ASP.NET Identity and…
1
vote
0 answers

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 authentication setup for multi-tenant. This scenario…
1
vote
1 answer

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's program.cs to make use of Azure ADB2C as…
1
vote
0 answers

.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 page. This post is NOT a question, but may be used by others seeking…
John D
  • 517
  • 7
  • 22
1
vote
0 answers

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've just moved the project folder into the src…
ddfra
  • 2,413
  • 14
  • 24
1
vote
1 answer

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 are using Azure AD for authentication, and for…
1
vote
0 answers

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 create a new survey form, the application will…
1
vote
1 answer

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 webassembly. They are sitting behind nginx. subdomain1 is…
Rui Lima
  • 7,185
  • 4
  • 31
  • 42
0
votes
3 answers

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. Now, for a particular feature, we need to fetch a…
0
votes
2 answers

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 service has to be consumed by a third party application…
0
votes
0 answers

Deploying Blazor WebAssembly & Blazor Server (Blazor Hosted) to AWS Amplify

I'm trying to deploy my app to AWS Amplify that's using Microsoft's template for .net7. Since I'm using Authenication/Authorization and local UserAccounts has a Blazor WebAssembly (Client), Blazor Server (.Net Core) and a shared project (contains…
1
2