ASP.
To get the currently logged in user in MVC5, all we had to do was: using Microsoft.AspNet.Identity; [Authorize] …
c# asp.net-core asp.net-core-mvc asp.net-identityI 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-coreSending 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-mvcI 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-mvcIn 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.0After upgrading to ASP.NET Core 2.0, I can't seem to create migrations anymore. I'm getting "An error occurred while calling …
c# asp.net-core asp.net-core-mvc entity-framework-core asp.net-core-2.0In appsettings.json { "MyArray": [ "str1", "str2", "str3" ] } In Startup.cs public void ConfigureServices(IServiceCollection services) { services.AddSingleton<IConfiguration>(…
c# asp.net-core asp.net-core-mvcI am working on a web app that needs to integrate with an existing user database. I would still like …
c# asp.net authentication asp.net-core asp.net-core-mvcReading these two questions/answers I was able to run an Asp.net 5 app on IIS 8.5 server. Asp.net vNext …
iis asp.net-core visual-studio-2015 asp.net-core-mvcHow do I get the Development/Staging/production Hosting Environment in the ConfigureServices method in Startup? public void ConfigureServices(IServiceCollection …
c# asp.net-core asp.net-core-mvc