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.

59 votes
6 answers
1.1K views
Select Tag Helper in ASP.NET Core MVC

I need some help with the select tag helper in ASP.NET Core. I have a list of employees that I'm trying

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
59 votes
6 answers
990 views
Where are the Login and Register pages in an AspNet Core scaffolded app?

In VS 2017, I created a new ASP.NET Core Web Application. On the second page of the wizard, I chose Web Appli

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
69 votes
13 answers
3.2K views
How to read values from the querystring with ASP.NET Core?

I'm building one RESTful API using ASP.NET Core MVC and I want to use querystring parameters to specify f

avatar
Benton
0 1 0 9
asked 07 September, 2021
58 votes
26 answers
1K views
tsconfig.json: Build:No inputs were found in config file

I have an ASP.NET core project and I'm getting this error when I try to build it: error TS18003: Build:N

avatar
Virgil
0 1 0 9
asked 07 September, 2021
61 votes
5 answers
2.5K views
.NET Core vs ASP.NET Core

What exactly is the difference between .NET Core and ASP.NET Core? Are they mutually exclusive? I heard ASP.N

avatar
Alba
0 1 0 9
asked 07 September, 2021
58 votes
18 answers
1.5K views
How to enable CORS in ASP.NET Core

I am trying to enable cross origin resources sharing on my ASP.NET Core Web API, but I am stuck. The EnableCor

avatar
Cortez
0 1 0 9
asked 07 September, 2021
55 votes
15 answers
433 views
Getting value from appsettings.json in .net core

Not sure what am I missing here but I am not able to get the values from my appsettings.json in my .net core a

avatar
Solomon
0 1 0 9
asked 07 September, 2021
58 votes
30 answers
1K views
Entity Framework Core: DbContextOptionsBuilder does not contain a definition for 'usesqlserver' and no extension method 'usesqlserver'

I am new to EF core and I'm trying to get it to work with my ASP.NET Core project. I get the above error

avatar
Venice
0 1 0 9
asked 07 September, 2021
60 votes
14 answers
2.1K views
How to get the Development/Staging/production Hosting Environment in ConfigureServices

How do I get the Development/Staging/production Hosting Environment in the ConfigureServices method in Startup

avatar
Serina
0 1 0 9
asked 07 September, 2021
60 votes
16 answers
2.5K views
ASP.NET Core Get Json Array using IConfiguration

In appsettings.json { "MyArray": [ "str1", "str2", "str3" ] } In

avatar
Margo
0 1 0 9
asked 07 September, 2021
47 votes
12 answers
3K views
ASP.NET Core form POST results in a HTTP 415 Unsupported Media Type response

Sending a form POST HTTP request (Content-Type: application/x-www-form-urlencoded) to the below controller res

avatar
Daniel
0 1 0 9
asked 07 September, 2021
66 votes
9 answers
2K views
How to return HTTP 500 from ASP.NET Core RC2 Web Api?

Back in RC1, I would do this: [HttpPost] public IActionResult Post([FromBody]string something) { try{

avatar
Roger
0 1 0 9
asked 07 September, 2021
64 votes
30 answers
2.3K views
How to enable CORS in ASP.net Core WebAPI

What I am trying to do I have a backend ASP.Net Core Web API hosted on an Azure Free Plan (Source Code: https

avatar
Corey
0 1 0 9
asked 07 September, 2021
55 votes
17 answers
2.8K views
How do I get client IP address in ASP.NET CORE?

Can you please let me know how to get client IP address in ASP.NET when using MVC 6. Request.ServerVariables["

avatar
Majorie
0 1 0 9
asked 07 September, 2021
52 votes
18 answers
2.8K views
How to unapply a migration in ASP.NET Core with EF Core

When I run PM> Remove-Migration -context BloggingContext in VS2015 with an ASP.NET Core project using EF Co

avatar
Scot
0 1 0 9
asked 07 September, 2021
56 votes
12 answers
1.9K views
How to specify the port an ASP.NET Core application is hosted on?

When using WebHostBuilder in a Main entry-point, how can I specify the port it binds to? By default it uses 50

avatar
Suzan
0 1 0 9
asked 07 September, 2021
52 votes
14 answers
1.6K views
Command dotnet ef not found in .NET Core 3

I'm following the docs in order to create an initial migration. When I execute dotnet, I get the help sec

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
61 votes
23 answers
2.9K views
ASP.NET Core Dependency Injection error: Unable to resolve service for type while attempting to activate

I created an .NET Core MVC application and use Dependency Injection and Repository Pattern to inject a reposit

avatar
Trudy
0 1 0 9
asked 07 September, 2021
57 votes
17 answers
2.6K views
How to set up Automapper in ASP.NET Core

I'm relatively new at .NET, and I decided to tackle .NET Core instead of learning the "old ways". I found

avatar
Corey
0 1 0 9
asked 07 September, 2021
54 votes
23 answers
1.3K views
How to read AppSettings values from a .json file in ASP.NET Core

I have set up my AppSettings data in file appsettings/Config .json like this: { "AppSettings": { "t

avatar
Benton
0 1 0 9
asked 07 September, 2021