Data dodania Pytanie
2018-02-15 23:02 Best practices for connecting from ASP.NET Core to SQL Server? »
I've had some recent difficulty with SQL Server not liking the default AppIdentityUser for logins, so I went ahead and created a custom DB user with w...
(1) odpowiedzi
2018-02-15 20:02 Can UserManager.GetUserAsync(User) return null in a class with Authorize attribute? »
I am using Asp.net core 2.0 MVC with Individual User Account enabled. The automatically-generated ManageController class is attributed by [Authorize]....
(1) odpowiedzi
2018-02-15 15:02 Environment variable not changing as I hope »
I set the value "Test" to ASPNETCORE_ENVIRONMENT using PowerShell, but when I start my app, it gets the value from launchSettings.json. [Environment]...
(2) odpowiedzi
2018-02-14 15:02 Audit trail with Entity Framework Core »
I have an ASP.NET core 2.0 using Entity Framework core on a SQL Server db. I have to trace and audit all the stuff made by the users on the data. My ...
(2) odpowiedzi
2018-02-14 14:02 Missing/changed API when migrating from DNX to ASP.NET Core 2.0 »
I have been working on migrating an application from obsolete DNX to ASP.NET Core 2.0. While doing so it found that there has been few changes in the ...
(1) odpowiedzi
2018-02-14 11:02 Is there a better way than using an IAsyncActionFilter to authorize if user is in role or user id is in database for specific record »
Requirement: There are some controller methods which only can be called if: 1. User has role "TaskAdmin" OR 2. User is responsible for the database...
(1) odpowiedzi
2018-02-13 23:02 ASP.NET Core 2.0 CORS from angular »
I am trying to resolve a CORS issue for my authentication/authorization workflow in my ASP.NET Core application with IIS express. The client applicat...
(1) odpowiedzi
2018-02-13 18:02 How can I split up my service registations into different files in ASP.NET Core? »
If you've ever used Windsor Installers then you know what I'm talking about. You can have different installers for different parts of the application ...
(1) odpowiedzi
2018-02-13 16:02 BitmapImage in .NET Core 2.0 »
I am porting .NET Framework project to .NET Core 2.0 but I have struggles with the BitmapImage class. I know that BitmapImage in .NET Framework is par...
(0) odpowiedzi
2018-02-12 23:02 ASP.NET - OpenIdConnect - The redirect URI is not well-formed »
When I use OpenIdConnect I have a problem in a OpenIdConnectHandler (394 line) So, I use a cyrillic domain http://грант-лев.рф (just for ex...
(1) odpowiedzi
2018-02-12 14:02 EF - IQueryable - two selects with one db call »
I am carrying out a pretty normal select data from table using Entity Framework Core and IQueryable. I am using paging in my search so want to fetch ...
(0) odpowiedzi
2018-02-12 10:02 ToArrayAsync() throws "The source IQueryable doesn't implement IAsyncEnumerable" »
I have a MVC project on ASP.NET Core, my problem is connected with IQueryable and asynchronous. I wrote the following method for search in IQueryable&...
(3) odpowiedzi
2018-02-11 21:02 VSTS docker task failed on '&&' token in docker RUN command »
I configuring CI for my ASP.NET Core application in VSTS (visual studio online). I've added "docker-compose build" task to build definition but it fai...
(1) odpowiedzi
2018-02-11 14:02 File Upload using angular 5 in asp.net core 2.0. File is null »
I, am trying to upload the file using angular 5 in asp.net core 2.0. Here is my server side code. public class QuestionViewModel { publ...
(1) odpowiedzi
2018-02-11 01:02 ASP.NET Core 2 Localization (ViewLocalizer Not Working) »
I have the following: public void ConfigureServices(IServiceCollection services) { ... services.AddLocalization(o => { o.ResourcesPath = "Re...
(1) odpowiedzi
2018-02-10 16:02 Visual Studio Code debugger for ASP.NET Core 2 don't work with different port »
My intention is to start the VSCode debugger with different port than the default 5000 and for that I'm specifying the url both in "args" array (comma...
(1) odpowiedzi
2018-02-10 13:02 Asp.net core 2 - 401 error with bearer token »
I'm not able to access protected method with Authorized with a token generated by Asp.net Core. The configuration : services.AddAuthentication(JwtB...
(1) odpowiedzi
2018-02-10 06:02 Get users last accessed time »
I am using IdentityServer 4 (with sql storage) for my asp.net core API. I would like to add a "Last Accessed" field somewhere in the database that ca...
(1) odpowiedzi
2018-02-09 20:02 Avoid 'Discriminator' with AspNetUsers, AspNetRoles, & AspNetUserRoles »
I am extending IdentityUser, IdentityUserRole, and IdentityRole like this: public class ApplicationUser : IdentityUser { public string FullName {...
(1) odpowiedzi
2018-02-09 13:02 .NET Core 2.0 Autofac Register Class InstancePerRequest doesn't work »
Here is my interface public interface IMatchServices { string MatchList(); } and class here public class MatchServices : IMatchServices { ...
(1) odpowiedzi
2018-02-09 13:02 Why mixing Razor Pages and VueJs is a bad thing? »
I'm trying to setup a dot net core project with razor pages and include vueJs inside the razor page for all my logic . Something like this : @{ ...
(2) odpowiedzi
2018-02-09 04:02 What is the proper place for db seeding from json files in ASP.NET Core 2.0? »
In my Core 1.0 app, Startup ctor loaded several extra json files into the configuration... public Startup(IHostingEnvironment env) { Environment ...
(1) odpowiedzi
2018-02-08 19:02 ASP.Net core publishes an empty folder »
EDIT: I've noticed that there's a folder in bin\Debug\net461\Publish with everything required, I tried to check the configuration used this way : #if...
(1) odpowiedzi
2018-02-08 09:02 IntelliSense for Razor Pages routes »
I was toying with new Razor Pages in ASP .NET Core 2.0 and noticed some problems with IntelliSense. When using tag helper for MVC controller I get us...
(0) odpowiedzi
2018-02-08 07:02 .Net Core2 EF MySQL having issue while changing foreign key column to nullable »
I am working on an application where I am using .Net Core 2, EF Core and MySQL as database server via Code First approach. I have 2 tables: User Em...
(0) odpowiedzi
2018-02-07 22:02 Extending the UserManager »
In my .NET Core 2.0 MVC project I added additional values to extend the ApplicationUser public class ApplicationUser : IdentityUser { pub...
(2) odpowiedzi
2018-02-07 15:02 service fabric client authentication in dotnetcore UserPasswordCredential not working »
I'm building a small service fabric maintenance in aspnetcore (dotnetcore2.0) application but now doesn't recognize the UserPasswordCredential class. ...
(1) odpowiedzi
2018-02-07 10:02 IConfiguration object is null. »
I'm trying to read connection strings from appsettings.json and I'm using: services.AddSingleton(Configuration); This line from startup throws null...
(3) odpowiedzi
2018-02-06 22:02 Implementing custom claim with extended MVC Core Identity user »
How can I create a custom authorize claim in MVC Core 2.0 (using AspNetCore.identity) to verify a custom user boolean property? I have extended the I...
(1) odpowiedzi
2018-02-06 22:02 Making OWIN use AssemblyResolved() assemblies »
I have a console app that is using AppDomain.CurrentDomain.AssemblyResolve() to load unresolved assemblies. I'm wiring up the handler in a static cons...
(0) odpowiedzi
2018-02-06 17:02 Application Variables in ASP.NET Core 2.0 »
How would I go about setting and accessing application-wide variables in ASP.NET Core 2.0? Details: I have a variable, let's call it CompanyName, wh...
(2) odpowiedzi
2018-02-06 16:02 ASP.NET Core Input Tag Helper Data HTML5 Standard Validation Attributes »
Curious as to whether anyone has had any luck using ASP.NET Core built-in <input> tag helper with respect to outputting HTML5 Standard validatio...
(1) odpowiedzi
2018-02-05 14:02 using EF Core IdentityContext and DbContext both for order management »
I am working on creating an ecommerce website on ASP MVC Core 2. I inherited my user from IdentityUser and inherited context from IdentityDbContext fo...
(1) odpowiedzi
2018-02-05 14:02 How to load navigation properties on an IdentityUser with UserManager »
I've extended IdentityUser to include a navigation property for the user's address, however when getting the user with UserManager.FindByEmailAsync, t...
(2) odpowiedzi
2018-02-05 14:02 ASP.Net Core 2 error handling: How to return formatted exception details in Http Response? »
I am looking for a way to return the details of any exception that occur when calling a method of my web API. By default in production environment, e...
(2) odpowiedzi