340,756 questions
1
vote
3
answers
2k
views
Visual Studio 2026 fresh install keeps giving "Internal Server Error"
I just installed Visual Studio 2026. However, whenever I try to run my project, I constantly get an Internal Server Error.
The error shows up both inside the IDE and in the browser. If I close and ...
1
vote
1
answer
45
views
Migrating NEST to Elastic.Clients.Elasticsearch no mapping found
I have some code connecting to elastic that I'm moving and I thought it would be a good time to migrate from NEST 7.17.4 to Elastic.Client.Elasticsearch 8.19.5 since NEST isn't supported anymore and ...
1
vote
2
answers
139
views
Reverse a LINQ to Entities query?
How do I use Reverse to reverse the order of the results of a LINQ to Entities query?
Something like:
var result = dbContext.Users.Where(a => a.Name != null).Reverse();
0
votes
0
answers
45
views
Redirect issue with Identity Provider hosted in Docker
TLDR:Dockerised app redirects me to docker network URL instead of localhost.
Objective: Redirect user to identity provider (localhost:6067) while communicating with it at (mcro.identity) from Razor ...
0
votes
0
answers
70
views
How to setup HashiCorp Vault on production environment?
I have downloaded HashiCorp Vault, integrated it with my C#/.NET/MVC application and I can start it in development mode with command:
vault server -dev
It stores secrets in memory in this mode and ...
0
votes
0
answers
19
views
Response of msmdpump.dll has not xml formttedd inside
I have .net 8 program docker base and in that I cant call SSAS , based on microsoft document I run IIs and host msmdpump.dll and from my app call it but problem is in that response , that is not ...
0
votes
1
answer
101
views
.NET Equals override not being called inside FirstOrDefaultAsync
I'm in a .NET 6 web application with EFCore, and I have these boilerplate abstract classes and interfaces for defining entities. I know it's quite a number of complexity layers, but it really helps me ...
2
votes
1
answer
85
views
VS solution configurations
I'm in C# and Visual Studio as an IDE. I have several executables which use different features, say
ProductA referencing LibFeatureA and LibFeatureC and
ProductB referencing LibFeatureA and ...
1
vote
0
answers
110
views
How can I prevent a HybridCache from caching null values?
I have some code that does something like this:
public async Task<Foo?> FactoryMethodToGetFoo(string someParam)
{
// Do something to get foo, or return null
}
public async ...
0
votes
1
answer
62
views
Dotnet LINQ expressions time complexity
Considering elements as a list of objects (already loaded in memory, not a DB query) and given the following portion of code:
var filteresElements = elements.Where(el => el.Flag == true).Select(el....
0
votes
1
answer
79
views
Attempting to run a dotnet10 MAUI-App on windows (10.0.19041.0) results in a cryptic error 'Class not registered (0x80040154 (REGDB_E_CLASSNOTREG))'
I recently upgraded a net8 MAUI app over to net10-preview7. All targets (Android, iOS, MacCatalyst, ...) launch successfully except Windows which crashes on startup with the following cryptic error:
...
0
votes
0
answers
35
views
Android WebView LoadUrl is not waiting for another call to finish
I have a .net Android application (migrated from xamarin) and inside it there is a webView that displays a web app and also I have an Android Foreground Service that periodically is making a call to ...
5
votes
1
answer
100
views
Code signing external logging libraries (Nlog, Serilog) [closed]
The logging library .dlls, like Serilog.dll or Nlog.dll are not digitally signed by any code signing certificate from CA. I have been trying to find an info if in a case of commercial application, ...
0
votes
0
answers
78
views
Dapr / Aspire PubSub not loading component yaml
I am attempting to setup a project with Aspire and DAPR.
I want to register a sidecar in my API and Frontend application that will use pubsub. The pubsub should come from a DAPR yaml component file.
I ...
0
votes
1
answer
129
views
Black screen and error sound in Windows 11 Pro kiosk mode
I have an C# .NET app that I tried packaging both as appxbundle and msix to use as a Kiosk application. Both works when launched normally but fails to load when run after setting up assigned access. I ...
0
votes
0
answers
38
views
Dealing with utility projects in self-contained .NET
x-y problem
I need to deploy a ASP.NET application, and due to Microsoft not having a method to have an unattended .NET runtime install to use in my provision scripts (yes I know they have this for CI/...
0
votes
2
answers
97
views
How to inject a reference to a specific IHostedService into another (dependant) IHostedService?
I have a .NET 4.7.2 console application that uses .NET Generic Host and has 2 background services. One of them (dependent) should start its work only after another one (base) has completed its ...
0
votes
0
answers
108
views
Hope to cope with exceptions inside tasks
Here's my example code. It's of no use, but it's short.
I have an array to switch on or off the creation of Exceptions at different parts of my code and two functions. The first (Level 0) is an ...
2
votes
1
answer
157
views
Download ICS from outlook.com using HttpClient
Does anyone see what I'm doing wrong? Why can't I download a calendar file from outlook.com using HttpClient?
Whatever I try, Outlook will throw a http 302 error and redirect to an OWA error page ...
1
vote
0
answers
131
views
C# (.NET 4.8) HTTP/s Proxy Checking Accuracy
Over the past few days, I’ve been developing a project in C# (.NET 4.8) that scrapes and validates hundreds of HTTP/S proxies.
I’ve experimented with multiple approaches to confirm whether a proxy is ...
1
vote
0
answers
54
views
Simplify object construction using spread / with common base type [duplicate]
I have this code, but I want to simplify object construction. I have a base class with common properties but based on a condition create another type that inherits from the base with an additional ...
0
votes
1
answer
53
views
How to use a custom .cur file as cursor in .NET MAUI (Windows)?
I want to use a custom cursor (.cur file) in a .NET MAUI Windows app.
Changing to built-in cursors (like Hand, Arrow) works fine, but when I load a custom .cur file, the cursor only changes in the ...
0
votes
0
answers
28
views
why a kafka client with EnableAutoCommit being disabled still commit offset?
below is a kakfa .net consumer program:
class Program
{
static void Main(string[] args)
{
var config = new ConsumerConfig
{
BootstrapServers = "localhost:9092&...
0
votes
1
answer
49
views
Does blazor have default redirect to login
I am attempting to implement a redirect to login on unauthorized pages. I think I have removed all hardcoded values that redirect to Account/Login?returnUrl=... but blazor insists on redirecting to ...
-1
votes
1
answer
72
views
Dockerized .NET Project - handling DB migrations
I have dockerized API & PostgreSQL database, when I locally execute
dotnet ef migrations add InitialCreate -p MyProject1 -s MyProject2
It successfully creates initial migration.
When I try to ...