Top "Asp.net-core" questions

ASP.

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 …

c# exception asp.net-core
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 …

c# rest asp.net-core cors cross-domain
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 filtering …

c# http asp.net-core query-string .net-core
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 …

c# asp.net-core asp.net-core-mvc tag-helpers
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 …

c# asp.net-core automapper
How to get current user in asp.net core

I want to get a current user for getting information of a user such as an email. But I can't …

c# asp.net-core asp.net-identity
JSON serialization/deserialization in ASP.Net Core

Since there is no JavaScriptSerializer, what native implementation can be used to handle this? I noticed JsonResult and I can …

c# json asp.net-core
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 5000. …

.net asp.net-core
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{ // ... } catch(Exception e) { return new …

c# asp.net-core asp.net-core-mvc
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 Core I …

c# asp.net-core entity-framework-core .net-core visual-studio-2015