373,403 questions
0
votes
0
answers
15
views
problem in updating products while preloading them and cant
this is gonna be a long one so if you help me i would really appreciate it.
i have a page where both create and update product is.
my create page works find but i want this page to do update too so ...
-4
votes
0
answers
90
views
Token in HttpOnly Cookie not being send when using include [closed]
I'm trying to make an simple chat website for a school project. The frontend is vanilla JS and backend is ASP DOTNET 8. It is now that I have a lot of trouble with authorization. Login and register ...
0
votes
1
answer
43
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
68
views
401 Unauthorized despite sending login token in Headers
I am trying to do a POST to an API endpoint api/auth/assign-role with this data :
{
"userId": "3d2243fc-8d32-4889-a7e2-624af56a3f91",
"role": "Doctor"
}
...
0
votes
0
answers
40
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
63
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
35
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}",...
-2
votes
0
answers
63
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
68
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
59
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
74
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
29
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
23
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
83
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
40
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
53
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
64
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
3
answers
123
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
2
answers
64
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
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
19
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": [{"...
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 ...
2
votes
0
answers
158
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
55
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
77
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
64
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
96
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
119
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
49
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
218
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
76
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
52
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
72
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
41
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
45
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
84
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
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
1
answer
109
views
Browser keeps showing Windows Authentication popup after obtaining JWT token in ASP.NET app
I have an ASP.NET application (on .NET 4.5.2) where I want to use combined Windows authentication and JWT token auth.
When the app starts, it calls an endpoint like this:
/api/auth/token
This ...
0
votes
0
answers
92
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
1
answer
85
views
Using [FromQuery] with a .NET controller for an optional boolean query string parameter where presence alone should set it
.NET has [FromQuery] to get query parameters on the path.
For instance my/foo?bar=1 maps to:
public class MyController : Controller
{
[HttpGet]
public async Task<Whatever> Foo([FromQuery]...
0
votes
2
answers
71
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
48
views
Problem with populating Fast Report via .NET code
I am trying to populate my fast report with dummy data using .NET code
DataTable dt = new DataTable();
dt.Columns.Add("name", typeof(string));
dt.Columns.Add("days", typeof(string))...
0
votes
0
answers
74
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
59
views
WebDAV using SQL storage opens office document in read-only mode
I am building a proof-of-concept WebDAV server with SQL storage, not physical on disk storage in ASP.NET Framework. This server needs to integrate with an existing ASP.NET Framework application.
I’m ...
1
vote
0
answers
44
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
39
views
MSBuild - Publishing a WebForms project with references to other WebForms project
I have an ASP.NET webforms project (A) which references two other webforms projects (B and C) that I'm trying to publish with precompilation enabled from the command line with MSBuild using a publish ...
0
votes
0
answers
54
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 ...
1
vote
0
answers
62
views
Dockerizing ASP.NET MVC application on .NET 4.5.2 - 404 from ManagedPipelineHandler on hitting an action method
I am trying to dockerize an existing ASP.NET MVC application running on .NET 4.5.2. I am using mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019 as the base image (the base ...
0
votes
1
answer
64
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. ...
0
votes
0
answers
72
views
.AspNet.Cookies not set in IIS virtual application when using OWIN cookie middleware with .NET Framework
I'm running a .NET framework 4.7.2 application using OWIN cookie authentication under IIS as a virtual application locally (e.g., https://example.test/cms/) but I end up in and endless redirect loop ...