Top "Asp.net-core-1.1" questions

Use this tag for questions specifically related to ASP.

Error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

I'm trying to upgrade the following template project to ASP.NET Core 1.1: https://github.com/wilanbigay/aspnet-core-aurelia-typescript-starter After running dotnet …

asp.net-core asp.net-core-1.1
Entity Framework Core Using multiple DbContexts

I'm having a problem that when I try to access a field in my PartsDbContext I get the following error: …

c# entity-framework-core dbcontext asp.net-core-1.1
How do I get current user in .NET Core Web API (from JWT Token)

After a lot of struggling (and a lot of tuturials, guides, etc) I managed to setup a small .NET Core …

jwt asp.net-core-webapi asp.net-core-1.1
'IServiceCollection' does not contain a definition for 'AddSession'

I am getting an error while adding 'AddSession' in ASP.Net Core 1.1 using VS2017. 'IServiceCollection' does not contain a definition …

session asp.net-core asp.net-core-1.0 asp.net-core-1.1 visual-studio-2017
connection string for sqlserver in Docker container

I'm using Visual Studio 2017 for mac with dotnet Core and EF Core. After setting up the mssql image in Docker …

macos docker connection-string asp.net-core-1.1
Bad Request - Invalid Hostname when accessing localhost Web API or Web App from across LAN

I have an ASP .Net Core 1.1 Web API and Web App running on my localhost from Visual Studio 2017 on Windows 10. …

asp.net-core-mvc iis-express asp.net-core-1.1
How to change VS 2017 RC .csproj project's target framework (from core to classic)?

How to change target framework with VS 2017 RC in new core asp "csproj" projects? I mean to change after project …

visual-studio asp.net-core visual-studio-2017 asp.net-core-1.1
How to POST via a link in ASP.NET Core

I try to POST to the SetLanguage action via a link, but not sure how to finalize the following code: &…

c# asp.net asp.net-core asp.net-core-1.1
Specify a format for "asp-for" HTML Tag (ASP.NET Core)

In an ASP.NET Core project I have to display a (readonly) date in a specific format (say "dd/mm/…

c# asp.net-mvc asp.net-core asp.net-core-mvc asp.net-core-1.1
ASP.NET Core Scaffolding does not work in VS 2017

I have a beginner ASP.NET Core project in Visual Studio 2017, and I am at the scaffolding step of the …

visual-studio visual-studio-2017 asp.net-mvc-scaffolding asp.net-core-1.1