Other

This tag is for questions on multiple areas that are not listed. Questions asking us to recommend or find an editor are completely off topic.

58 votes
12 answers
2.3K views
ASP.NET Core Web API exception handling

I am using ASP.NET Core for my new REST API project after using regular ASP.NET Web API for many years. I don&

avatar
Clarice
0 1 0 9
asked 07 September, 2021
62 votes
18 answers
2.3K views
How to determine if .NET Core is installed

I know that for older versions of .NET, you can determine if a given version is installed by following https

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
63 votes
30 answers
2.1K views
How to register multiple implementations of the same interface in Asp.Net Core?

I have services that are derived from the same interface. public interface IService { } public class ServiceA

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
56 votes
20 answers
2.3K views
Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state

After fresh installation of Visual Studio 2017 I tried to run .NET Core Web project and when trying to run it

avatar
Wilber
0 1 0 9
asked 07 September, 2021
59 votes
8 answers
1.3K views
Resolving instances with ASP.NET Core DI from within ConfigureServices

How do I manually resolve a type using the ASP.NET Core MVC built-in dependency injection framework? Setting

avatar
Shanita
0 1 0 9
asked 07 September, 2021
60 votes
15 answers
2.8K views
How do you create a custom AuthorizeAttribute in ASP.NET Core?

I'm trying to make a custom authorization attribute in ASP.NET Core. In previous versions it was possibl

avatar
Louetta
0 1 0 9
asked 07 September, 2021
58 votes
8 answers
2.7K views
AddTransient, AddScoped and AddSingleton Services Differences

I want to implement dependency injection (DI) in ASP.NET Core. So after adding this code to ConfigureServices

avatar
Vi
0 1 0 9
asked 07 September, 2021