ASPNETCORE_ENVIRONMENT in Docker
i have problems setting the ASPNETCORE_ENVIRONMENT variable running my project in a docker container. The problem is that the value is always set/overwritten to “Development”.
i have problems setting the ASPNETCORE_ENVIRONMENT variable running my project in a docker container. The problem is that the value is always set/overwritten to “Development”.
I am using cookies authentication in my .net core mvc application. One of the requirements I have is to logout user when the browser is closed. I have set sliding expiration to 5 minutes in app. As expected if the user comes back to the website after 5 minutes user is redirected to login page, but if the user comes back inside 5 minutes the user is logged in automatically. Is there a way to logout user if the browser is closed?
I added wcf services end point in asp.net core 2.0 to connected services and then I try to use that but with client there is only functions which ended with ..async
I have the following problem, I created an application to add game categories and the games themselves to the database. I created a relationship and unfortunately when I add to the database I get an error.
In my asp.net core MVC application, I’m using HttpClientFactory to create HttpClient object for requests to API server.
It seems that in ASP.NET Core, the value in asp-* attributes (e.g. asp-for) is taken from the request payload before the model. Example:
I’ve just migrated a asp.net core project from 1.0.1 to 1.1.0 and when running dotnet run or dotnet restore I get the following message
how can I start the ASP.NET Core with the dotnet CLI samples so that they don’t listen to the localhost?
I am using Visual Studio 2017 community edition. I have installed .NET Core SDK 2.0.3 version and .NET Core 2.0.0 runtime. But I don’t see the ASP.NET Core with .NET Framework template option in Visual Studio 2017. Do I need to install anything else?
I am trying to describe a many-to-many self-referential relationship to Entity Framework Core 2. Essentially what I’m trying to model is a sort of tree structure, in which each element can have an arbitrary number of parent and child elements (so I guess more a graph than a tree). Here’s what I have so far: