373,419 questions
0
votes
0
answers
34
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"
...
-2
votes
0
answers
49
views
Why doesn't my .NET website support HTTP/3 in Chrome/Firefox? [closed]
I have a .NET website running on an internal IIS10/Windows Server 2022 machine. It has an internal SSL cert authorised by our domain. It works with HTTP/1.1 and HTTP/2.
It's configured to pass an alt-...
Best practices
0
votes
3
replies
51
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 ...
Tooling
0
votes
0
replies
26
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/...
0
votes
1
answer
76
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
50
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....
1
vote
3
answers
110
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 ...
Advice
0
votes
2
replies
55
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
33
views
Access to XMLHttpRequest at 'http://localhost:5167/api/Auth/register' from origin 'http://localhost:5173' has been blocked by CORS policy [duplicate]
Can you help me with this error, I cant seem to find right solution:
Access to XMLHttpRequest at 'http://localhost:5167/api/Auth/register' from origin 'http://localhost:5173' has been blocked by CORS ...
0
votes
1
answer
53
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, ...
1
vote
1
answer
57
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 ...
0
votes
1
answer
116
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
1
answer
210
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 ...
0
votes
0
answers
50
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 ...
0
votes
0
answers
36
views
IAuthenticateResultFeature disappears when specifying schemes with AuthorizeFilter
I have been successfully reading the logged in OIDC authentication scheme from IAuthenticateResultFeature when using OIDC. I need to know this scheme to perform sign out. This is for a .NET 8 ASP....
0
votes
0
answers
40
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 ...
0
votes
1
answer
93
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.
...
0
votes
0
answers
87
views
HTTP post request keeps returning Error 400
So long story short, in my ASP.NET application I am making a post call where I supply JSON content like this below.
using (HttpClient Client = new HttpClient())
{
var Request = new ...
0
votes
2
answers
64
views
.NET 4.6 to 4.8 update - package and updated file location under references
I am trying to update a legacy ASP.NET 4.6 app to .NET 4.8. The app contains 2 class library projects as well.
I'm now using VS2022 for the updating instead of VS2017/2019 that I was using before.
For ...
0
votes
0
answers
71
views
How to return data annotations error message in one string?
I'm using data annotations from System.ComponentModel.DataAnnotations in my ASP.NET project. I get an error message where you can describe the requirements such as "Name is required" and etc....
1
vote
0
answers
40
views
Generating End of Day Forms using the Amazon SP-API
We are trying to automate the generation of a USPS Scan Sheet which is found in the End of Day forms in Seller Central. Does anyone know if this is possible? I have not been successful in locating ...
0
votes
0
answers
45
views
Connect APM server to elasticsearch
I am trying to send telemetry data from ASP.NET app to elastic search. (logs, metrics, traces).
I tried to log data without APM. Logs are sent to elastic without APM, but trace does not work. To ...
0
votes
1
answer
63
views
Outlook/MSGKIT: Create Outlook Email Template for Download
I have a need to dynamically populate an email as an .MSG file with all of its attributes (to/from/cc, body, etc.) and allow the end user to download the email as a template for further modification. ...
1
vote
1
answer
95
views
Moq: how to create a HttpRequest object containing a HttpPostedFile?
I am working with ASP.NET/.NET 4.8 application.
My action method is as follows:
public class TestController: System.Web.Http.ApiController
{
// pseudo code
public async Task<...
1
vote
0
answers
92
views
How to remove Hot Reload Service in .NET
I need to unload the Hot Reload Service from a Blazor app. Simply disabling Hot Reload from the settings does not do that. I am using Visual Studio 2022.
I have tried the recommendations from other ...