372,857 questions
Score of 2
1 answer
101 views
Why does enabling MultipleActiveResultSets (MARS) prevent TransactionScope from promoting to MSDTC?
I have a TransactionScope in a .NET application. When MARS is disabled, opening a second SqlConnection inside the same ambient transaction causes the transaction to be promoted to MSDTC. However, when ...
Score of 2
2 answers
190 views
Is there a reason creating IFormFile from stored image won't open
An image file is uploaded and kept in temporary location until the primary record is submitted and saved. The image record structure requires the ID of the primary plus another value. Other parts of ...
Score of -6
1 answer
236 views
Best practices for identifying clients in an API
I'm working on a C# API that is using auth and for that to work I need my server to remember certain clients.
I've considered using IP addresses as my primary identifier, but I've read that these are ...
Score of 1
1 answer
48 views
Global.Application_PostAcquireRequestState Session state is not available in this context when missing page 404
I am getting an exception in Global.Application_PostAcquireRequestState when trying read or write to session variables in ASP.NET Webforms app on .NET. This only happens when navigating to paths/files ...
Score of 0
0 answers
110 views
How do I send emails on a timer in an ASP.NET webforms application?
My client is having issues with their legacy system (ASP.NET webforms) sending emails as they are bottlenecking. So I made the code asynchronous (eg. await smtpClient.SendMailAsync(newMail);) and this ...
Score of 0
3 answers
100 views
Modernizing and maintaining a legacy ASP.NET WebForms application in Visual Studio 2022
I have spent the last several years working primarily on modern stacks, building .NET backends paired with ReactJS and Blazor frontends. However, I have recently inherited a legacy ASP.NET WebForms ...
Score of -1
1 answer
135 views
IIS keeps spiking in memory and stopping my WEB APP [closed]
I have a .NET web application hosted on my server with IIS. Usually the IIS process will run for days on end with memory at around 400-500mb. But sometimes which seems totally random to me this memory ...
Score of 0
10 answers
415 views
Is Windows required for C#?
I’ve started my software learning journey with C#, but the courses on YouTube and Udemy consistently proceed using Windows PCs. I use a MacBook Air, so I’m unable to build the Windows Forms ...
Score of 0
6 answers
187 views
ASP.NET Core learning journey
I'm currently learning backend development with C# and ASP.NET. Instead of following video tutorials, I've been trying to learn by building things myself.
At first, I had AI generate a few simple ...
Score of 0
0 answers
49 views
How to understand the Reliable web app pattern
I was reading some tutorial on Microsoft's documentation about MVC with Razor views, I finished the tutorial, and I fully understood how all the modules talk to each other, like how the controller ...
Score of 2
1 answer
112 views
Authorized HLS streams with LibVLC and ASP.NET
I am developing an application that uses HLS streams from an ASP.NET server to an Avalonia desktop client. My target is to provide HLS streams only to authenticated users and my solution is to ...
Score of 0
1 answer
68 views
Azure Container Apps OpenSearch security plugin not working over HTTP internal ingress (HTTPS → HTTP mismatch)
I am deploying OpenSearch in an Azure Container Apps (ACA) environment and facing issues when enabling the OpenSearch security plugin.
Architecture
API / WebJob (HTTPS)
↓
Azure Container Apps ...
Score of 0
1 answer
95 views
Best practice for organizing Claim Types and Values as constants in ASP.NET
I'm trying to refactor the authorization layer in my ASP.NET Core Web API project to remove any hard coded strings in policies.
For roles, I used an enum, and for policies I used a flat static class, ...
Score of 0
2 answers
104 views
How to exit on a found string for aws logs tail
I have made a customized deployment pipeline, for a legacy ASP.net web forms app, where I utilize Web deploy + S3 and SQS Services from Amazon.
I have written a script in Powershell that moves the ...
Score of 0
7 answers
160 views
.NET 6 .NET 10 Visual Studio
When creating or opening an ASP.NET Core MVC web project using .NET 6 and .NET 10, I encounter a frustrating error.
In Visual Studio Community, when I click to run, the following error appears:
...