372,899 questions
Score of 1
1
vote
1 answer
1
answer
41 views
41
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
votes
1 answer
1
answer
97 views
97
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 ...
Advice
0
votes
2
replies
55
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
votes
1 answer
1
answer
127 views
127
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 ...
Tooling
3
votes
26
replies
361
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 ...
Advice
2
votes
9
replies
173
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 ...
Advice
0
votes
0
replies
44
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
2
votes
1 answer
1
answer
102 views
102
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
0
votes
1 answer
1
answer
63 views
63
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 ...
Best practices
0
votes
1
replies
93
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, ...
Advice
0
votes
4
replies
102
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 ...
Advice
0
votes
7
replies
148
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:
...
Score of 2
2
votes
2 answers
2
answers
93 views
93
views
Generic delete of child entities before MarkAsDeleted() to avoid foreign key constraint errors in VirtualEntityDeleted
public void VirtualEntityDeleted(object sender, VirtualEntityChangedEventArgs e)
{
if ((_DocumentEntity.ID > 0 && _AddedRows != null && _AddedRows.Any(a => a.Key == e....
Best practices
0
votes
4
replies
103
views
What is best practice to use second caching layer with Redis to use it in service layer with ApiControllers?
I've started pet-project recently and created generic RedisService to use for caching, but I found problem that redis isn't good way to storing anomyous user data, if he revisists the webapp for like ...
Best practices
2
votes
2
replies
115
views
How would you build a chat system using JavaScript (web based )and cSharp as you backend language?
So I’m a second year student doing IT in applications development and we were given a project of our own choosing , the issue is we’ve never used any kind of language to build a full working website(...