85,416 questions
-6
votes
0
answers
44
views
I want to improve myself in ASP.NET Core [closed]
I'm a junior ASP.NET Core developer and I want to improve my code quality.
I'm not asking for career advice; I'm looking for the technical concepts that are fundamental for building clean and ...
-4
votes
0
answers
43
views
Why is alert not working in ABP framework JS file? [closed]
I have this JS file:
(function ($) {
alert('A');
app.modals.ClassificationTreeModal = function () {
var selectedId = [];
var _stocktakingSessionsService = abp....
0
votes
1
answer
41
views
Can't connect a local ASP.NET Core API to my Angular v20 Frontend
I've been fighting this problem for the last 3 weeks. I don't know if I'm also doing something wrong at the moment of connecting the API to the Front end not being able to at least print the JSON ...
-1
votes
0
answers
120
views
Why does clicking on my save button update my view model, but does not save the data to my list? [closed]
I've had to change from a single entry form to a multiple entry table. I've got the table working in terms of the fields/date formats/remove row and add a row buttons (with the help of GitHub Copilot)....
0
votes
0
answers
33
views
I have an ASP.NET Core application that uses Redis as cache but it is recently facing a lot of timeout exceptions
Redis has been recently facing a lot of timeout errors. We are currently using stackExchange.redis or managing Redis in the ASP.NET Core application.
We have used async whenever possible with proper ...
0
votes
1
answer
95
views
Implementing platform specific override method of custom client
I'm creating a custom API client to be used by my web (Blazor WebAssembly Standalone) and mobile (.NET MAUI) apps for connecting to my API. I have two questions below but first, here's an abbreviated ...
0
votes
0
answers
43
views
Class resets to null after login in MudBlazor because page reloads – how can I persist the user until he logs out?
I have a MudBlazor application where I use a custom CurrentUserService to store the currently logged-in user so I can display the user's profile image in the layout.
This state is not part of the ...
0
votes
0
answers
34
views
DinkToPdf / wkhtmltopdf prints only 19 pages even with 64-bit DLL
I am generating a PDF in ASP.NET Core using DinkToPdf (wkhtmltopdf wrapper).
My HTML report is around 20+ pages, but the generated PDF always stops at 19 pages. It never prints the full content.
PDF ...
0
votes
1
answer
96
views
Entity Framework Core queries in an ASP.NET Core application targeting an Azure SQL database are running with wildly different runtimes
I have a web app using code-first EF Core.
One of the controllers needs to run what should be a simple query (basically SELECT TOP 1 * FROM companies WHERE id = @id; in EF terms,
var data = await ...
1
vote
1
answer
92
views
ASP.NET Core blazor app, 404 blazor.server.js after .NET 10 installed
I have a big project that uses Blazor, suddenly when I run it, the Blazor pages do not work anymore, because the blazor.server.js returns 404. This happened after I installed latest version of VS 2026 ...
1
vote
2
answers
93
views
When using Url.Page method how can I avoid that current parameters are automatically added to the generated URL?
I have an ASP.NET Core 9.0 Razor pages application.
In my application I generate navigation URLs using Url.Page method.
However if I'm currently on a page which has additional parameters (for example /...
2
votes
1
answer
271
views
Microsoft.AspNetCore.OpenApi 10.0.0 - The 'interceptors' feature is not enabled in this namespace
I am trying to upgrade to .NET 10 (from .NET 9), but after updating the Microsoft.AspNetCore.OpenApi package to 10.0.0, I can no longer build my application.
This is the error I get:
The '...
Best practices
1
vote
1
replies
79
views
Callback in ASP.NET Core with auth cookies
We have a strong use case, and I’d like your suggestion on how to solve an issue we're facing.
We built a banking system using ASP.NET Core that allows users to view their accounts.
Here's how it ...
0
votes
1
answer
92
views
How to structure a multi-repository .NET web application [closed]
I am working on a web project for my company that is a very large C# / .NET 8 web application. We are still in the design/structure phase because the web application will be merging 100+ .NET ...
Advice
0
votes
3
replies
61
views
How to get values from multiple dynamically generated components in an editform
Hopefully someone can advise me how to get out of this corner I've coded myself into! I'm pretty new to Blazor and have never created a dynamically generated form before. I THOUGHT I was on the right ...
4
votes
1
answer
159
views
Data redaction: How to avoid logging of a record property?
We try to implement data redaction.
There's also an interesting blog post from Andrew Lock: Behind [LogProperties] and the new telemetry logging source generator
It works fine for classes (and records ...
2
votes
1
answer
94
views
Blazor - StateHasChanged not updating after Radzen Button OnClick
In my Blazor server-side application, I have a component with a button that, when clicked, displays a "Loading" bar while I check to make sure a all of my required text fields are not blank.
...
3
votes
1
answer
94
views
"Cannot access a closed Stream" when trying to return PDF from controller using iText
I'm trying to copy pages from an existing PDF to a new one and return it. I'm writing to the new PDF with memory, but it returns an error stating
Cannot access a closed Stream.
Here is my code:
var ...
Best practices
4
votes
2
replies
136
views
Is using #region acceptable to organize 30+ endpoints in a .NET Core Minimal API?
I have a .NET Core minimal API that has grown to 45+ MapGet/MapPost endpoints in Program.cs, and it's becoming difficult to navigate. All endpoints share several variables declared in Program.cs (...
0
votes
1
answer
61
views
Blazor Server LDAP Authentication Fails with “In order to perform this operation a successful bind must be completed”
I’m implementing LDAP user authentication in a Blazor Server application using Novell.Directory.Ldap (LDAPS, port 636).
The goal is to allow users to log in with their Active Directory credentials.
...
1
vote
0
answers
47
views
Checking authentication scheme from inside policy.RequireAssertion
I have an ASP.NET Core Web API that accepts tokens from two JWT sources. I want to define an authorization policy that will accept a token from the first source if and only if it has a particular ...
0
votes
0
answers
40
views
.NET - How can I update downloading a .tiff file from .NET 4.5 to 8? [duplicate]
I'm currently working on migrating a project from .NET 4.5 to 8. One of the key functionalities of the old project is the ability to download a barcode of a given string:
Old functionality
public ...
0
votes
0
answers
84
views
Is it possible to implement Basic Authentication in YARP (ASP.NET Reverse Proxy)?
I’m trying to find out whether it’s possible to implement Basic Authentication directly in YARP (Yet Another Reverse Proxy).
If YARP doesn’t natively support Basic Auth, that’s fine — I’m mainly ...
0
votes
0
answers
43
views
HeaderSettings / FooterSettings not working
Goal: Add Header and Footer to generated pages.
IAction in controller responsible for the generation:
[HttpPost]
public async Task<IActionResult> BuildAndDownloadChecklistExport([FromBody] ...
0
votes
1
answer
126
views
Using MassTransit IScopedClientFactory or IClientFactory inside singleton service
All my request clients are added, as this works (not only the generation of the client, but the client itself - the request is sent using rabbitmq and I get the response as expected):
using var scope =...