How to get the current logged in user ID in ASP.NET Core?
I’ve done this before with MVC5 using User.Identity.GetUserId() but that doesn’t seem to work here.
The User.Identity doesn’t have the GetUserId() method.
I’ve done this before with MVC5 using User.Identity.GetUserId() but that doesn’t seem to work here.
The User.Identity doesn’t have the GetUserId() method.
I understand that asp.net core has a new configuration system that is quite flexible and that’s great. But there are things I like about the web.config based configuration system from .net 4.x. For example one can put comments in the web.config file since it’s an xml file. And that for me is worth sticking with xml rather than going with the shiny new json approach. [Update: I now understand that the json approach also supports comments in the file.]
I have an ASP.NET Core 1.0 Web API application and trying to figure out how to pass the exception message to the client if a function that my controller is calling errors out.
With asp.net core 1.0 There are lots of functionality added. But there is not way to get Bin Folder path.
I am migrating an ASP.NET application to ASP.NET Core and they have some calls to HttpServerUtility.Transfer(string path). However, HttpServerUtility does not exist in ASP.NET Core.
I’m having this problem: No service for type ‘Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory’ has been registered. In asp.net core 1.0, it seems that when the action try to render the view i have that exception.
I have a problem with ASP.NET Core web application running on IIS 10.
I am developing a Single Page Application with AngularJS.
Does anyone know how to deal with Dropdowns in Asp.net core. I think I made myself very complicated to understand the new Asp.net core concept. (I am new to Asp.net Core).
Is there any alternative to System.Web.Security.Membership.GeneratePassword in AspNetCore (netcoreapp1.0).