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...
- Modified
- 3 May at 17:47
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...
- Modified
- 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...
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...
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...
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...
- Modified
- 3 May at 17:40
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...
- Modified
- 3 May at 17:38
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...
- Modified
- 3 May at 17:36
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...
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...
- Modified
- 3 May at 17:30
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...
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...
- Modified
- 3 May at 16:6
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...
- Modified
- 30 Apr at 13:37
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...
- Modified
- 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...
- Modified
- 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...
- Modified
- 30 Apr at 13:34