What's a good solution for collecting metrics for notification purposes?

I have a console application that I want to add metrics to. But not the usual metrics (performance). Maybe a better term is _statistics_. Essentially, at certain points in my application, I want to re...

Anyone knows how to register a custom IViewLocationExpander in .NET Core?

This is the old way to add a "MyViewLocationExpander" with a Startup.cs file (from StackOverflow) ```csharp public class Startup { public void ConfigureServices(IServiceCollection servic...

3 May at 17:46

Best hosting option for Windows Server 2022, ASP.NET and SQL Server

I have a .NET FX ASP.NET application to host. What are the best hosting option for Windows Server 2022, ASP.NET and SQL Server, I mean I want my own Windows server that I access remotely. Criteria ar...

3 May at 17:44

Is there any way to use a .NET Standard 2.0 Library that relies on EF for both .NET Framework 4.8.1 and .NET 6

We want to migrate from .NET Framework 4.8.1 to .NET 6 (.NET Core 6). However, business-wise, we can't afford to both migrate the entirety of our solutions on one side while adding new features in...

3 May at 17:42

Creating .NET applications on Linux

I am planning to learn C# and .NET Core and the tutorials are all in visual studio which is not supported in Linux. It's alternative is visual studio code on linux but what are the limitations of visu...

3 May at 17:41

Difference between Infrastructure and Persistance layer in Clean Artchitecture ?

I'm currently learning how to build an API with a clean architecture. After reading a few articles, I followed a tutorial, and looking at what the final project looked like, I saw that the “Infras...

3 May at 17:40

C# .NET backend with a JS framework frontend?

I have been learning ASP .NET CORE for the past 4 months to go with a react/next frontend... Works great and I much prefer it to using node etc, I apply to the jobs that say they use react/angular on ...

3 May at 17:39

IIS 401 when I transported a site .NET 4.8 to a different IIS host.

The site is .NET 4.8 with **OWin**. I copied it from 1 working 2008 R2 box to another. I'm now getting 401's on several pages. It feels like authentication but I've double/triple checked th...

3 May at 17:38

How to execute class library?

I've created a web project with different layers from domain to web API. And just when I wanted to run it for the first time I've realised it's a class library and it doesn't have Program.cs thus no e...

3 May at 17:37

Why choose minimal API over controller based API?

I'm currently a student learning about minimal APIs. I am a little confused about their importance. Are they genuinely useful, or are they just a nice-to-have with little practical use? I've read a nu...

3 May at 17:36

How implementation DDD with EF Core ...

I've returned to using EF Core for a DDD project after a long time away. Previously, I worked with Spring. Implementing DDD with EF Core seems more challenging than I expected, particularly for com...

3 May at 17:35

Websocket in dotnet with API Gateway and Fargate?

I'm building an ASP.NET core project. The bulk of it is a REST API, which we have deployed in a Fargate Container behind API Gateway. Those are partly client requirements, not my decision. For part...

3 May at 17:34

PDF chunking for vector embeddings options?

I'm building a RAG on dotnet web api and looking for library/libraries that can take in a PDF and create text for vector embeddings (and possibly do the splitting strategy). Does anyone have any recom...

3 May at 17:33

In Windows we have IIS but what do we run dotnet websites when in Linux

Just curious what alternatives people use to run there app on linux hosting if not in azure? Is the standard these days some kind of plesk install

3 May at 17:32

LDAP integration in dotnet 6.0

We have a Web Api project in Dot Net 6.0 which is being hosted in Docker Linux Container and deployed in AWS ECS. Since the **System.DirectoryServices** only works on Windows , we have tried to use...

3 May at 17:31

Is this a misuse of Dispose?

I'm reviewing a class that implements `IDispose` and therefore has a Dispose method. In the constructor of this class we open a DB transaction. In the dispose method we commit the transaction and exe...

Best way to build static site?

I am a fresh graduate new to dotnet, C#. I am mostly building APIs and web apps using MVC for the past few months for my job. Now, I've got a client who needs a few static websites. What would be th...

3 May at 16:7

How to open an Angular+.NET project in Visual Studio GUI after creating it in VSC?

I have a [Angular+.NET](https://Angular+.NET) project where the 'client' folder holds the Angular files and 'api' folder has the .NET project. I started working on it in Visual Studio Code and jus...

3 May at 16:7

Web app container running .net with SMB access?

Has anyone managed to run .net code in a docker container running on an azure web app that can connect to a share using SMB? I'm looking to move some work loads to web apps rather than AKS for now....

3 May at 16:6

Settle an Argument (Logical/Physical Layers, Clean Architecture, etc).

A colleague and I are going through an exercise of developing guidance around practices and conventions for writing Clean Architecture projects in our organization. We have project structure as fol...

Piece of code that can kill computer performance

I'm searching for code in c# that can kill computer performance (CPU performance, maybe cpu - memory link performance too) as much as it is possible (it will run on 4 core box so I'm going to create 4...

30 Apr at 13:37

ComboBox SelectedItem binding not updating

I'm a bit puzzled: this works: ```xml ``` and the property for SelectedRol is: ```csharp public TblRollen SelectedRol { get { return _selectedRol; } set { ...

30 Apr at 13:36

Reformat SQLGeography polygons to JSON

I am building a web service that serves geographic boundary data in JSON format. The geographic data is stored in an SQL Server 2008 R2 database using the geography type in a table. I use `[ColumnN...

30 Apr at 13:35

Add web service reference from behind a proxy server

I'm using vs2010. In a simple console app I try to add a service reference to `http://***/service1.asmx` , old asmx service. My computer is behind a proxy server, so i get an error : > "The remo...

30 Apr at 13:34

No more post back after file download in sharepoint

I tried to download a file from sharepoint. But after I download this file, I can't click on other buttons. What is wrong with my coding? **This is my first way.** ```csharp Response.AppendHe...

30 Apr at 13:34