372,827 questions
Score of 0
1 answer
175 views
Playwright session state not loading
I am having trouble loading loading session state into a browser. I create a file with existing storage, point the new Page to the storage, but the sessionState variable is empty in the browser. ...
Score of -3
1 answer
192 views
How can SQL Server populate the foreign key value automatically, so I don't have to manually? [closed]
In my application an Admin user is authorized to access the AdminPanel view or page. The AdminPanel is initially empty; it does not show products. An Admin can click some button on the AdminPanel that ...
Score of 3
1 answer
121 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
202 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
273 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
50 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
116 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
109 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 0
9 answers
470 views
Is Windows required for C#?
I am learning 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 applications the instructors create. Is it ...
Score of -1
5 answers
210 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 2
1 answer
117 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
70 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
101 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
113 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
164 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:
...