373,370 questions
0
votes
0
answers
11
views
OpenIddict 4.x ID2043 — Is it possible to support dynamic tenant subdomain redirect_uri?
I’m using OpenIddict 4.x with ASP.NET Core and the authorization code + PKCE flow for a SPA.
I want to support multi-tenant subdomains, where each tenant has its own frontend host, e.g.:
https://...
0
votes
1
answer
43
views
ASP.NET WebForms still loads old jQuery from ScriptResource.axd after upgrading to jQuery 3.7.1
Our security team flagged an issue indicating that an older jQuery version appeared to be loaded in our application.(ScriptResource.axd)
I am working on an ASP.NET WebForms (.NET Framework) ...
-4
votes
0
answers
117
views
Best practice to solve webservice blocking connectivity of SQL Server [closed]
I've run into a problem with my ASP.NET webservice and its connectivity to the SQL Server database (separate server).
The webservice works relatively nicely with a few 100k calls to it every day. But ...
0
votes
0
answers
65
views
HttpContext.Current.User.Identity.Name is null sporadically
I'm using .NET 4.7.2, ASP.NET webforms and forms authentication. Everything works fine for the normal forms authentication where the user enters their credentials on the login screen.
However, after ...
1
vote
1
answer
115
views
Devexpress report XRPictureBox only accepts System.Drawing.Image which is not compatible with Linux
I am using Devexpress Report to make sales invoice using my macOS laptop. The invoice must have a QR Code, which I was able to create successfully, but I can not display it in the invoice because the ...
Best practices
0
votes
2
replies
147
views
How to Clean Ugly Extension Methods
I want to clean this extension method (I am sorry for what you about to see, I am pretty shamed about this code 😅) but I have no I idea how to do it, so I am asking your help if you have any ideas of ...
0
votes
0
answers
86
views
Azure Container Apps are Red
I have Azure Container Apps that I created, but afterwards they show up as red indicating a problem.
Do you guys know what this problem is or how to fix it?
First, you must create a Container Registry ...
2
votes
1
answer
108
views
Externally cause ASP.NET web application to throw customError?
We currently have a customErrors section in our web.config that looks like this:
<customErrors mode="RemoteOnly" defaultRedirect="/Error/Error.aspx" redirectMode="...
0
votes
1
answer
55
views
Multi Authentication in .NET 4.6.1
I have a case where I have to implement multi authentication in my API.
controller.cs:
public class TestController
{
[Authorize]
[CustomAuthFilter]
public async Task<IHttpActionResult&...
0
votes
1
answer
112
views
StackExchange.Redis timeout when moving from Azure Premium Redis to Azure Managed (non Enterprise to Enterprise)
We have a current Azure Premium instance running with no problems at around 1k operations per second.
We've created a new Azure Managed Redis instance. We naively thought just updating the connection ...
0
votes
1
answer
84
views
Unable to resolve TNS Names using Instant Client 23 under asp.net (only)
Our web servers are currently using the Oracle 12 client, and IS wants us to upgrade to something more modern. I've downloaded the 23 instant client and put it on the server, along with our ldap.ora ...
0
votes
0
answers
61
views
SSO Login Error - BrowserAuthError: monitor_window_timeout: Token acquisition in iframe failed due to timeout
I am using .NET and getting the above error. Till yesterday everything was working and all of sudden getting this error today ?
Not sure what is changed?
Also, issue is only with edge browser and FF ...
2
votes
1
answer
60
views
ASP.NET Swagger operationfilter security clearing does not remove padlock
I am trying to remove the padlock from some of the APIs from my collection
My Swaggergen is built:
builder.Services.AddSwaggerGen(options =>
{
options.SwaggerDoc("v1", ...
0
votes
1
answer
61
views
Nuget Restore Failed in Azure with GitHub
I created a basic ASP.NET Razor pages project called learningapptest.
Then I created a github repository called learningapptest.
I then pushed up my basic ASP.NET project to github. In the Azure ...
Best practices
2
votes
1
replies
89
views
Should we use ConfigureAwait(false) in ASP.NET Framework 4.8.1?
We have a very large, and very old application written in ASP.NET Framework. We recently upgraded it to 4.8.1, rewrote it to use async/await, and removed all context dependencies such as HttpContext....
0
votes
1
answer
73
views
ASP.NET C# CheckBoxList items vanishing on postback
I'm populating multiple CheckBoxList from the database in the code behind. But when I click the update button, all the items vanish.
Page Load
When Update button click
The page_load !IsPostBack
C# ...
-1
votes
0
answers
51
views
Getting error CSP Inline Scripts - Executing inline script violates the following Content Security Policy directive 'default-src 'self''
I have removed all inline scripts and style in order to adhere to Content Security policy. There are dynamically generated scripts for validations for asp.net webforms , how should I make sure this ...
1
vote
1
answer
75
views
MacOS VSCode dotnet 10 Build a blazor movie database tutorial unable to 'dotnet ef migrations add InitialCreate'
λ ~/ dotnet --version
10.0.100
λ ~/ system_profiler SPSoftwareDataType SPHardwareDataType
Software:
System Software Overview:
System Version: macOS 26.1 (25B78)
Kernel Version: ...
0
votes
1
answer
57
views
DevExpress ASPxGridView reloads data on every group row expand - how to cache/prevent?
My DevExpress ASPxGridView reloads the entire dataset every time I expand a grouped row, causing performance issues. The LoadGeneralSearch() method fires on each expand, re-executing the SQL query.
...
0
votes
1
answer
96
views
401 Unauthorized despite sending login token in Headers
I am trying to do a POST request to an API endpoint api/auth/assign-role with this data:
{
"userId": "3d2243fc-8d32-4889-a7e2-624af56a3f91",
"role": "Doctor&...
0
votes
1
answer
58
views
How to use one hidden input for multiple field?
In ASP.NET I have a model with a property like this:
public List<string>? Images { get; set; }
which is used for the name of images that were uploaded to a Razor page.
Now, after uploading ...
0
votes
0
answers
71
views
ASP.NET WebForms: Adding StaticFileModule Rule for XML causes “Duplicate Entry” error and breaks Index.aspx
I'm running into a specific issue with my web.config when trying to serve XML files.
As soon as I add this rule:
<add name="XmlFile" path="*.xml" verb="GET,HEAD"
...
0
votes
1
answer
45
views
"No operations defined in spec!" when using MMLib.SwaggerForOcelot to build combined swagger for Ocelot
This is my ocelot configuration...
{
"Routes": [
{
"UpstreamPathTemplate": "/api/test/{url}",
"DownstreamPathTemplate": "/api/{url}",...
Best practices
0
votes
3
replies
72
views
Apply [ApiController] to all controllers implicitly
Adding [ApiController] on a controller class has various benefits. Especially the automatic model validation and problem details parts.
The problem with this attribute is that it's easy to forget to ...
Best practices
0
votes
3
replies
64
views
Most efficient way to manage the lifecycle of HttpClient in many wrapper classes?
Our application is somewhat of a middleman that transforms data from numerous APIs. Initially to simplify things, we wrote a bunch of specific clients which wrap an instance of HttpClient created in ...
Best practices
2
votes
4
replies
85
views
How do I parse multipart content from an HttpResponseMessage?
I am using HttpClient in .NET 9 to get content that has a JSON part along with a base-64 encoded file. Reading the content as a string, I don't see a clear format that would ensure consistent parsing ...
Tooling
0
votes
0
replies
37
views
Any way to codegen a C# client from an API specification that basically uses dynamic typing?
I was trying to generate a client from the OpenRouter API reference, that can be found in their typescript-sdk github, .speakeasy/in.openapi.yaml :
https://github.com/OpenRouterTeam/typescript-sdk/...
Best practices
0
votes
0
replies
25
views
How to get Autofac Instance Per Request semantics in Asp.Net Core while keeping it idiomatic, i.e. not using tagged matching scopes?
In Asp.Net (not Core) we have InstancePerRequest which uses tagged matching child scopes.
In Asp.Net Core they deprecated InstancePerRequest in favour of InstancePerLifetimeScope which as I understand ...
0
votes
1
answer
95
views
Error in flush at downloading file with VB.Net
I'm trying to download files through a popup window. Most of files download correctly, but some one through this error:
Error in /Controladores/Descarga.ashx?guid=4b5050f6-2f69-41e1-8bd6-1113686e9575
...
1
vote
0
answers
48
views
appsettings.json not read after deploying to Minikube (values become empty, DB connection fails)
I'm running an ASP.NET Core application.
Everything works correctly when using Docker Compose — all values from appsettings.json load normally, and my services connect to Postgres and RabbitMQ.
But ...
1
vote
0
answers
58
views
I start integration tests with `dotnet test`. They spawn IIS Express which fails ONLY on CI pipeline if I require code coverage
The test with coverage runs perfectly well locally:
C:\xyz\DevOps\xyz.DependencyInjection [master ≡]> dotnet test -c:Release --no-build -f net9.0 --filter "FullyQualifiedName~Tests....
0
votes
1
answer
65
views
ASP.NET/Angular/Azure: Why does refreshing the page still retrieves old data? The api returns correct data & I've set "no-cache"
To give context, I am using Azure Static Web App linked to GitHub, Azure Container App linked to Docker Hub & have Azure SQL database along with SQL Server setup. This is my first attempt in ...
1
vote
2
answers
163
views
`Conflicting assets with the same target path` with `bootstrap-table`
I've updated my developer tools in Windows 11 to use the updated .NET 9/10 of November 2025 update. I have not updated my projects to .NET 10, so the projects are running in .NET 9. I have one ...
0
votes
1
answer
77
views
My Ajax web method call in C# keeps showing an error: "401 Unauthorized"
I'm trying to call a simple static WebMethod in my ASP.NET Webforms page using jQuery Ajax, but it doesn't seem to be working. I've tried enabling anonymous authentication and other fixes suggested ...
Advice
0
votes
2
replies
59
views
Continuous scrolling grid (Like Excel)
I am looking for a freeware grid control for ASP.NET C# Webforms. It would behave similar to Excel.
The rows will be sequential dates, and the columns are my equipment numbers.
I want to be able to to ...
0
votes
0
answers
24
views
Getting bad request error while trying to integrate Superset in asp.net website
We have an asp.net website based on 4.5.2 framework. I am trying to integrate the Superset dashboard into one of the .aspx page, but getting following error:
Error: {"errors": [{"...
1
vote
0
answers
193
views
C# .net cannot run in VS code
I use VS code (not VS cause i have linux) and have been trying to run my c# template from run and debug in VS code but it does not works and returns this error in output.
-----------------------------...
0
votes
1
answer
63
views
ASP.NET Controls Don't Span Bootstrap Columns
I am using Bootstrap 3.5 with ASP.NET controls (Visual Studio 2022). I have an ASP.NET:TextBox in a Bootstrap column. While an HTML input tag spreads across the entire Bootstrap column, left to right, ...
0
votes
0
answers
88
views
DevOps build errors referencing old package version no longer used
My site has two website projects. One of them references Microsoft.CodeDom.Providers.DotNetCompilerPlatform.
We have recently upgraded this from 3.6.0 to 4.1.0 as part of a wider upgrade project.
The ...
1
vote
1
answer
79
views
Blazor using InteractiveServer (for admin area /admin/*), and purely static SSR for user facing site?
Does anyone know if there's an easy way in Blazor to have:
A frontend/'user facing' site using Blazor Static SSR I don't want to include blazor.web.js, no enhanced navigation or streaming rendering ...
Best practices
3
votes
3
replies
101
views
C# CancellationToken across chain of api calls
I have the following application architecture:
FrontEnd → ApiServer 1 → ApiServer 2 → Database
So, the frontend calls a web server, which calls multiple API which make query on database.
What is the ...
0
votes
1
answer
126
views
CORS error when calling RefreshToken from frontend (No 'Access-Control-Allow-Origin' header)
Here’s the error message from the browser console:
Access to fetch at 'https://orbis-api-web.azurewebsites.net/api/v1/UserAuth/RefreshToken'
from origin 'https://orbis-solidarity.com' has been ...
0
votes
0
answers
58
views
I need to work with legacy web forms apps, but VS22 doesn't like the percent syntax in .aspx pages. I've been ordered to not change the markup
Error message:
Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Other solutions tell one to modify the markup syntax in various ways, but I've ...
0
votes
1
answer
239
views
What’s the most efficient way to map large entity models to DTOs in ASP.NET Core without using AutoMapper? [closed]
I'm working on a high-performance ASP.NET Core Web API where each request can return hundreds of entity records. Each entity includes multiple navigation properties and nested objects.
Currently, I’m ...
1
vote
1
answer
80
views
asp.net tilde ~ paths not resolving on pages with a master page
I have a page Product.aspx that has a master page Main.master, both pages are in the root of the project (they don't belong to any folder). The problem is that the tilde path only works for the Main....
0
votes
0
answers
53
views
Oracle.Web.Security.OracleRoleProvider fails with wallet-based TLS 1.2 connection on Windows Server 2012 R2 and 2022 (works locally)
Problem Summary
We’re currently blocked in production on OCI VMs (Windows Server 2012 R2 and 2022) when using Oracle.Web.Security.OracleRoleProvider to authenticate against an Oracle Autonomous ...
1
vote
0
answers
80
views
System.Net.WebSockets is missing messages/notifications
I am creating a lib to listen to server notifications (more than 100,000 requests per hour), when using WebSocketSharp it is receiving all 100,000 notifications but there is memory leak (server goes ...
0
votes
0
answers
50
views
Partial view with pagedlist inside a Tab control
After several days and multiple attempts using examples, I am still struggling to get a partial view to page inside a tab control. In the code below, when selecting the 'tab4' Tab 1st time, it ...
-1
votes
1
answer
87
views
How to change the default HTTP scaler concurrency (10 requests) to 1000 in .NET Aspire?
I’m using .NET Aspire to orchestrate my services, and everything is deployed to Azure Container Apps.
By default for replication, Container Apps seem to use HTTP scaler with a concurrency target of 10 ...
0
votes
1
answer
95
views
Setting the focus in .ascx user controls
I am having some difficulty setting the focus inside an .ascx custom control. Microsoft Copilot advises me to place a txtName.Focus() or Page.SetFocus(txtName) inside the Page_Load event of the .ascx.
...