Async methods transient factory - still getting A second operation was...
OrderItems and OrderTaxLines are ienumerables, to be displayed in grids. there is no, to my knowledge, awaitable functions to get them. I don't see what else could be the problemprotected override...
View ArticleFluentEditForm says that there is no data, despite data entered being there
My code, below, is a fluenteditform form. After I submit, it says that the fields still need to be filled out even though I filled them out. What is wrong with my code?@page "/movieform" @using...
View ArticleBlazor does not show content after connection resumes after interruption
I have written a web app using Windows Authentication. It uses the new(ish) Blazor Web App template, which means that there is a constant SignalR connection between server and client.I found a scenario...
View ArticleBlazor (Server Side) TextArea Fails With Long-ish Strings
I'm writing a Blazor server side application for ETL. I have a form with 8 fields, one of which is a textarea created with <InputTextArea>. This field is used to cut-and-paste the contents of...
View ArticleHow to import a blazor custom element in another JS application?
I have a blazor server app, with a registered custom element as below code:builder.Services.AddServerSideBlazor(options =>{...
View ArticleDisplaying the local machine camera feed in a Blazor Web Assembly app
I've distilled my issue down to a boilerplate Blazor Web Assembly app.The project is straight out of the wizard, with the below code added.I've changed the Index.razor page to this:@page "/"@inject...
View ArticleUploads folder in wwwroot doesn't have access to delete a file by the app
I have an Uploads folder in an App Service and uploading is successful.However, when the app tries to delete the uploaded files, it encounters the error:System.IO.IOException: Invalid access to memory...
View ArticleUsing mediainfo.js in Blazor Webassambly
I am trying to use mediainfo.js in my Blazor Webassambly App.Using JS in this context is new to me, so I am not shure how to deal with this.Calling javascript functions out of my c# code is not the...
View ArticleGoogle ReCaptcha V3 only works on one page of Blazor App
I'm always getting Success: False on my Json response when using Google ReCaptcha v3 on a second page of my blazor app. Do I need 2 seperate sets of keys or something? I tried using different action...
View ArticleASP.NET Core - use UseStatusCodePagesWithReExecute with custom exception...
I'm trying to write some middleware that will intercept a custom exception and update the response status as appropriate. For example, if the exception is a custom NotFoundException, it should update...
View ArticleHow to force the browser to read a certificate from smartcard
I need to upgrade an ActiveX smartcard authentication in IE to a Blazor web authentication in .NET 5. It is mandatory an Authentication via SmartCard with PIN. I setup identityServer4 as for Configure...
View ArticleBlazor: Reference to child page displayed by RenderFragment Body
If I create a Blazor project from the Visual Studio templates, in the MainLayout.razor there is a<article class="content px-4"> @Body</article>part. The @Body is a RenderFragment where all...
View ArticleHow to check programmatically is application been exeuted via Browser or...
From the .NET 9, the .NET MAUI Blazor Hybrid and Web App"-type project is available.It has the shared code for both Web and native platform.But how to check programmatically is application been run via...
View Articlehow to change page direction to RTL in radzen blazor studio app
I have a web application with radzen blazor studio. I added localization to the application. So it added CulturePicker.Razor page and CulturePicker.cs class.This was the CulturePicker.cs...
View ArticleInclude doesn't get the related entity
It's the first time my "include" doesn't bring back the entity. I don't know what is missingBillings class public Order Order { get; set; } public List<BillingItem>? BillingItems { get; set;...
View Articleblazor conditional formating based on screen size
I made 3 buttons that go on a picture ( right side). When the screen is small, the buttons don't follow the layout, so they go over all the picture.How would i make them either smaller, or preferably,...
View ArticleBlazor scoped CSS scopes are not the same as the ones from the HTML elements
I have a blazor page Page.razor and a css file for that page Page.razor.css. These files used to be in Components/Pages but I recently moved them into a subfolder of Pages. Now blazor generates...
View ArticleCORS blocks direct access to API from Blazor
I've setup an Aspire solution with a Blazor WebAssembly and an API projects. API runs on https://localhost:7476 and Blazor is served from https://localhost:7077. Generally any API registered with...
View ArticleGet Current User in a component
I'm starting a new site with Blazor and Windows Authentication and need to identify the current user viewing the page/component.For a Razor Page, the current user name can be accessed with...
View ArticleBlazor: How to Trigger EventCallback on Value Change
So I have an Textinput and I want to bind it to the parent. But I can not invoke the EventCallback from the setter as it is async.My input is this,<MudTextField @bind-Value="@(Code)" Label="Hex"...
View Article