How to make a responsive side nav like Gmail with Bootstrap 5?
Hi,How can I make my side menu in a Blazor Server application like Gmail's left menu, where only icons are displayed at first, and expanding the menu displays names, without narrowing the main body section? I have included my current menu and CSS…
How to display progress in a long-running process in Blazor WASM
I have a very long-running process in my Blazor WASM app and would like to display progress while it's running. Is there an elegant way to do that? I've looked in various forums but haven't found anything as yet. Thanks for any suggestions.
Blazor WASM Client and Server CORS Error .Net6
when i use in the Blazor WASM Client the Code var client=new HttpClient(); var xyz=client.GetAsync(URL); i got a CORS Error. when i add an image with the URL i got also the same Error <img src="@URL" /> I try it also in the API. On…
How to authenticate On IIS deployed blazor web app using azure entra ID (OIDC)
Hello I have created a Blazor web app in .NET 8. where I have a client and a server project. In this application I want to apply authentication through azure Entra ID. and replicate the flow from https://github.com/dotnet/blazor-samples and it is…
Authentication using azure Entra ID in .NET 8 Blazor web app deployed on IIS Server
Azure Entra ID Authentication is not working in .net 8 blazor web app when deployed to IIS
Troubleshooting 403.14 Forbidden Error with Default Blazor Template deployed as Azure App Service
Background: I'm a relatively novice programmer and I've been experimenting with creating my own Blazor app and hosting it on Azure for the first time. I've had success creating SWAs on Azure before with Blazor, but my current project is a small demo of a…
Authentication using azure Entra ID in .NET 8 Blazor web app deployed on IIS Server
Hello I have created a Blazor Web Application in .NET 8 Where I have get a Server and a Client Project In this I Want to apply Azure Entra ID (OIDC) authentication. I have done app Registration on Azure portal and have Client ID, Tenant ID,…
How can I write a script in the head of some of my Blazor pages?
Hi all; I want to write event structured data in the <head> of some of my Blazor pages, where the content is specific to the page. So it is: <head> <script type="application/ld+json"> /* 15 - 30 lines of JSON */ …
How to fix Unhandled exception rendering component: The JSON value could not be converted to System.Int32.
When I use the PlaceOrder method, it causes this error. The version is 8.0. Thank you. async Task PlaceOrder() { isSubmitting = true; var response = await HttpClient.PostAsJsonAsync(NavigationManager.BaseUri + "orders",…
How to add image to email?
Hi, In my e-commerce application, I am sending an order confirmation email to the customer. I am using a html template for this e-mail. I couldn't figure out how to display the logo and ordered product image in the e-mail. Here is the html…
Why can't I create a Blazor Server App with .NET 8?
I'm trying to create a Blazor Server App using .NET 8. I've done this at home, but here at work Visual Studio 2022 only allows me to create a Blazor Server App using .NET 6. I've gotten into Visual Studio Installer, to check to make sure I have .NET 8 as…
How to Optimize Blazor Server Performance with Large Datasets?
I'm building a Blazor Server application that needs to display and interact with a large dataset (millions of records). Currently, fetching and rendering all data at once is causing significant performance issues. I'm looking for effective strategies to…
Issue in Blazor: File Upload with Zero Byte Size
Hello, I'm facing an issue with my Blazor application when attempting to upload a file. Sometimes the file uploads correctly, but other times the file is uploaded with a size of zero bytes. The issue does not always occur, making it difficult to pinpoint…
Create, Reference and use a Razor class library.
Hello! I'm training on Microsoft Learn. My current stage is the following module: https://zcusa.951200.xyz/en-us/training/modules/blazor-build-reusable-components/3-create-razor-class-library First of all, this exercise starts saying that it uses…
How do I configure appsettings for blazor wasm apps deployed on azure static web apps?
how do I configure appsettings for blazor wasm apps deployed on azure static web apps? I tried lots of different things. I'm trying to change different items based on the env it's deployed to. Is there any really good guidance? The documentation is not…
Connecting Blazor server app to Application Insights
Hi all; Is there any comprehensive documentation on connecting a Blazor server app to Application Insights? I've found the following bits and pieces: Provides some basics, but leaves a ton unanswered. Looks like a good wrapper for Blazor WASM, nothing…
Integration pdf.js and Blazor; Debugger on Visual studio is lost
Hi there, i have a problem with the integration of blazor with pdf.js. Lately pdf.js (Developed by Mozilla) has change from .js to .mjs file. I upgraded to work with .mjs file but now i am encountering another problem. When i start the Visual Studio on…
Can I convert a MVC app into a Razor/Blazor app with Windows Authentication?
In October of last year, I started working on a new ASP.NET MVC Core application, to convert an old WebForms application which no longer builds. I added an API project to the Visual Studio solution and scaffolded the database. But other than that, I've…
Why is OnInitializedAsync() called twice on a page reload
Hi all; Normally when a page is being created & rendered in Blazor version 8, RenderMode.InteractiveServer, OnInitializedAsync() is called once. But when I do a Reload on Chrome, it is called twice. And all child components in the page are called…
Blazor behind NodeJS proxy with different URL
Hello, I have a Blazor server app built with .Net 7 that I am deploying to several different pieces of hardware. Each deployment will be accessed through a proxy built with NodeJS via a URL such as "/remote/device/id." The 'id' portion is…