Category "blazor-webassembly"

Blazor WebAssembly InvalidCastException when running Published version on IIS

I have a Blazor WebAssembly application that works fine when debugging, but throws an exception when running on IIS (Published): blazor.webassembly.js:1 crit: M

Dark/light Theme Blazor

i have tied so many ways for switching Between Dark and Light Mode in Blazor.with different packages and Even Manually with css. but they never workedout For Me

Exception: '<' is an invalid start of a value

I have a Blazor Webassembly project with a controller method as follows: [HttpGet] public async Task<List<string>> GetStatesForProfile() {

Embed JavaScript files inside a .NET class library for Blazor project

I'm working on a Blazor project and I'm trying to move one of the JavaScript files to a class library, I've read the following guides: https://docs.microsoft.co

Blazor webassembly (net5.0) publish not worked in IIS

I have created a Blazor webassambly net5 project with Identity Server (asp.net core hosted, PWA checked). Project run fine development in Visual Studio and done

How to use chart.js in blazor?

I am trying to follow this example from mariusmuntean/ChartJs.Blazor : https://github.com/mariusmuntean/ChartJs.Blazor The code runs but I am getting this error

Publish a Blazor Server via Azure DevOps

I have a solution build with .NET6. The solution is quite basic: DashboardUI.Server is the ASP.NET Core hosted project DashbaordUI.Client is the Blazor applicat

How to add fonts to a MudTextField with MudBlazor API?

I have this MudBlazor component: <MudTextField @bind-Value="@_presentationSettingsServiceRequest.PostCode" Class="my-2" Variant="Variant.Outlined" AutoFocus=

Shared UI using Razor Class Library, RCL, between .net Maui Blazor & Blazor webassembly

I'm following this demo by D. Roth https://youtu.be/7UM6s0QPvRQ?t=3530 58:50 Demo: Sharing Blazor UI between web and .NET MAUI I was wondering if "index.html" c

Static Web Apps shows "Refused to apply style from <URL> because its MIME type ('text/html') is not a supported stylesheet MIME type"

I deployed to Azure Static Web Apps the default app that comes whenever you create a new Blazor WebAssembly app via dotnet new blazorwasm. At first it works pro

How to host an ASP.NET Core Blazor WebAssembly Hosted App on AWS?

What to do to safely host a Hosted Blazor WebAssembly App (Which has 3 projects i.e. Server, Client and Shared) (.NET Core 6.0) on AWS for someone who has never

How to host an ASP.NET Core Blazor WebAssembly Hosted App on AWS?

What to do to safely host a Hosted Blazor WebAssembly App (Which has 3 projects i.e. Server, Client and Shared) (.NET Core 6.0) on AWS for someone who has never

How to deploy Blazor WebAssembly as static site in GitLab Pages

I can't find any guide on how to deploy a Blazor web assembly app to GitLab Pages as a static site. Has anyone managed to do so for .NET 6? I have created a sam