Top "Asp.net-core" questions

ASP.

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 …

asp.net visual-studio asp.net-core visual-studio-2017
How to run stored procedures in Entity Framework Core?

I am using EF Core 1.0 in an ASP.NET Core App. Can you please point me to the proper way …

asp.net-core asp.net-core-mvc entity-framework-core
How to read request body in an asp.net core webapi controller?

I'm trying to read the request body in the OnActionExecuting method, but I always get null for the body. var …

c# asp.net-web-api asp.net-core
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 results into a HTTP 415 Unsupported Media Type …

c# asp.net-core asp.net-core-mvc
The term "Add-Migration" is not recognized

I'm using this MSDN Tutorial to run in VS2015 the command PM> Add-Migration MyFirstMigration -context BloggingContext that ran yesterday …

visual-studio-2015 asp.net-core entity-framework-core
how to set ASPNETCORE_ENVIRONMENT to be considered for publishing an asp.net core application?

when i publish my asp.net core web application to my local file system, it always takes the production-config and …

c# asp.net-core environment-variables
How do I access Configuration in any class in ASP.NET Core?

I have gone through configuration documentation on ASP.NET core. Documentation says you can access configuration from anywhere in the …

c# asp.net-core asp.net-core-mvc
How to get current url in view in asp.net core 1.0

In previous versions of asp.net, we could use @Request.Url.AbsoluteUri But it seems it's changed. How can we …

asp.net-core asp.net-core-mvc asp.net-core-1.0
How to create roles in ASP.NET Core and assign them to users?

I am using the ASP.NET Core default website template and have the authentication selected as "Individual User Accounts". How …

c# asp.net asp.net-mvc asp.net-core asp.net-identity-3
'No database provider has been configured for this DbContext' on SignInManager.PasswordSignInAsync

.Net Core 1.0.0 - SDK Preview 2 (x64) .Net Core 1.0.0 - VS "15" Preview 2 (x64) .Net Core 1.0.0 - Runtime (x64) So, we updated …

c# entity-framework asp.net-core asp.net-identity-3