All Questions
Tagged with asp.net-vnext or asp.net-core
85,417 questions
0
votes
1
answer
25
views
System.Drawing Bitmap not working on Linux Docker container (.NET Core / DevExpress Report)
I am working with DevExpress Reports in my .NET Core project. On my Windows laptop, the reports are displayed fine, but when I ran the project using Docker container, the reports are not being ...
0
votes
0
answers
33
views
.NET 8.0 getting session and authorization working together
I am having problems understanding how to get .NET 8.0 session and authorization working together.
Most of my controllers are decorated with the Authorize attribute, and I am accessing session ...
0
votes
0
answers
26
views
Error implementing EntraID authentication with MCP Server ASP.NET Core
Question
I'm building a MCP (Model Context Protocol) server with OAuth2 / Entra ID (Azure AD) security.
The login flow in VS Code completes successfully, but VS Code never finishes connecting to the ...
0
votes
0
answers
49
views
DbContext being auto added to DI container [duplicate]
I'm in the process of removing .NET Aspire from my application and whilst this has been a mostly painless process, I'm having no end of issues getting my DbContext working the way I think it's meant ...
0
votes
0
answers
19
views
How to setup IIS with Negociate and pass the credentials to my AOTed ASP.NET Core app?
I'm building an ASP.NET Core app with AOT, running on my Windows server 2025. I want to access my app through IIS to manage it. I want to manage authentication with IIS and to inform my app which user ...
1
vote
1
answer
48
views
Why does a simple upload of a binary file fail with a MethodNotAllowed? [closed]
I have a Blazor application that downloads files to the local machine. This works fine.
I try to upload a previously downloaded file back to the API server, and it fails with an htto 405 error - ...
0
votes
2
answers
59
views
Validating Hidden Field
In my ASP.NET Core application, I have a signature pad with JavaScript that copies the signature data to a hidden field. That hidden field, which represents the signature, is required.
The problem is ...
-1
votes
0
answers
35
views
Files in .dockerignore (credential.json) still appear in final .NET 8 Alpine Docker image after 'dotnet publish' [closed]
I am building a multi-stage Docker image for my ASP.NET Core 8.0 application using the Alpine base image. My goal is to exclude sensitive configuration files, specifically credential.json and ...
0
votes
1
answer
44
views
How to open files from the user's local device in serverside Blazor using ElectronNET?
I created a serverside Blazor App and "electronized" it by following the instructions in the read me on the electronNET/electron.NET github page. One of the requirements for this app is to ...
Advice
1
vote
0
replies
28
views
ASP.NET Core OData : implementing custom aggregate method
What is recommended way using Microsoft.AspNetCore.OData to implement custom aggregate method?
Using a CustomAggregateMethodAnnotation class will execute it in memory, how can I achieve execution of ...
0
votes
0
answers
68
views
How to allow only one version of background job to run [closed]
I have a task to implement a safety mechanism that ensures only one version of a background service can run at a time. I cannot change the existing architecture or introduce new infrastructure ...
0
votes
2
answers
128
views
How to get the list of attribute codes for each item?
I am writing a Web API endpoint, data comes from SQL Server, and I'm using EF Core 8.0.
I have a table of products and another table that maps the product codes to product attributes (one-to-many) ...
1
vote
0
answers
53
views
ComponentSpace - SSO - ISamlServiceProvider.SamlState is empty during GetLocalSPConfiguration Intermittently
I have recently added Component Space to my .NET 9.0 based web application, to facilitate SSO.
It worked fine for few days, then I faced an issue, where the 'configurationName' is becoming empty for ...
1
vote
0
answers
26
views
SimpleIdServer: Setup an SPA PKCE client by code on the IdServer
Using simpleidserver 6, I am trying to implement a dedicated Id server for an SPA application using PKCE.
This SPA authenticates with no pb if it is setup for other Id servers like Azure EntraId or ...
5
votes
1
answer
398
views
Authentication not working in Swagger with .NET 10
Previously when using .NET 9, I could authenticate in Swagger using an Authorize button and auth-protected endpoints would have a "lock" icon on them:
But now when using .NET 10 and latest ...