asp.net-core-2.0 Questions
3
I have Asp.net Core Identity version 2.0 Set up and running. I am finding that _signinManager.SignoutAsync is not logging out user once they have signed in with Google. When I go back to my Login M...
Dorina asked 9/9, 2017 at 14:4
5
Kinda confused here, super simple hello-world example of localization in ASP.Net Core 2.0. My About page is set up to render two localized strings:
From the view (using IViewLocalizer)
From code ...
Fritillary asked 30/1, 2018 at 19:12
5
Solved
This question has been asked a couple times but none of the solutions/documentation is working for me.
Scenario - I need to build a database from scratch and edit it with migrations all from code,...
Settle asked 24/5, 2018 at 11:1
4
Solved
I have a ASP.NET Core 2.0 web application, where I need to pass the application's URL out during startup for the purposes of integration into something else.
When running under Visual Studio (IIS ...
Stace asked 31/1, 2018 at 16:24
2
Solved
I have installed VS2017 15.3.0 Preview 4 and .NET Core 2.0 Preview 2 and have created a default Web MVC application. I am interested in seeing how the new logging functionality works but I cannot g...
Incandesce asked 20/7, 2017 at 12:17
2
Solved
HttpClientFactory offers the following extension method:
public static IHttpClientBuilder AddHttpClient<TClient>(this IServiceCollection services, string name)
and I've created a typed Htt...
Domineering asked 6/9, 2018 at 10:23
3
I'm trying add migration using EF core 2 code first method. The issue is that, the entities with foreign key relationship are created with a foreign key id suffixed with '1' at the end and a redund...
Wynne asked 23/3, 2018 at 20:40
5
Solved
The Options pattern allowed me to create options objects containing values from configuration, as described here: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options
I...
Hindbrain asked 6/11, 2018 at 5:27
3
Solved
In my .Net Core 2.0 application i have implemented UseExceptionHandler to handle exceptions globally. But redirection only works for GET method and POST method always return Status Code: 404; Not F...
Ambie asked 7/8, 2018 at 5:8
5
Solved
I am using ASP.NET Core 2 with Razor Pages and I am trying to have two forms with separate properties (BindProperty) on one page.
@page
@model mfa.Web.Pages.TwoFormsModel
@{
Layout = null;
}
<...
Ankh asked 30/1, 2018 at 7:59
11
Solved
I'm trying to add facebook login to my .NET Core 2.1 site
I'm following this , guide and more specific, this (for facebook login)
After have adding the lines below to startup.cs, inside ConfigureSe...
Upolu asked 3/7, 2018 at 19:31
6
Solved
Trying to implement Identity in ASP.NET Core 2.0. Having many problems getting my head around this.
Startup.cs
public class Startup
{
public Startup(IConfiguration configuration)
{
Configurati...
Jonme asked 12/4, 2018 at 5:43
3
Solved
After converting my application from .NET Framework 4.6 to .NET Core 2 I made the requested changes to the database to support the new identity model, namely a few fields added to AspNetUsers and n...
Arty asked 16/12, 2017 at 23:2
7
Solved
I have some codes like below, I want to write unit tests my method. But I'm stuck in async methods. Can you help me please ?
public class Panel
{
public int Id { get; set; }
[Required] public d...
Vesica asked 25/6, 2018 at 12:12
13
Solved
I worked on a asp.net core 1.1 project a while ago and use in projetc AutoMapper.
in asp.net core 1.1, I add services.AddAutoMapper() in startup file :
StartUp file in asp.net core 1.1:
public ...
Grof asked 18/5, 2018 at 12:17
3
Solved
I am using EF Core 2.0 and Postgres 9.6. Whenever I insert data I get the error
PostgresException: 23505: duplicate key value violates unique
constraint "PK_country"
By tracing it looks like ...
Gawlas asked 24/12, 2017 at 14:42
5
Solved
I'm recently working on a ReactJS app that's calling an API (developed with .NET Core 2.0).
My question is how to use HttpPostedFileBase in an .NET Core 2.0 API in order to get file content and s...
Congelation asked 25/6, 2018 at 10:22
14
Solved
I get an exception when I try to read multi part content from the request saying the content may have already been read by another component.
if (MultipartRequestHelper.IsMultipartContentType(Req...
Policyholder asked 16/4, 2018 at 22:47
5
Solved
I know that is located in HttpContext.Request.PathBase, however I need it to configure my cookie before I have any HttpContext (in Startup.cs).
My problem:
When devops configure application they ...
Snowdrift asked 23/2, 2018 at 14:53
2
Solved
I have set up a new property in my User class (IsEnabled) and want the sign in manager to check this, so I am overriding PasswordSignInAsync as follows:
public class AuthSignInManager<TUser>...
Oilbird asked 6/7, 2018 at 0:31
3
Solved
I'm not sure how to implement combined "OR" requirements in ASP.NET Core Authorization. In previous versions of ASP.NET this would have been done with roles, but I'm trying to do this with claims, ...
Splay asked 20/3, 2018 at 16:52
4
Solved
I am trying to integrate google authentication in my ASP.NET Core 2.0 web api and I cannot figure out how to get it to work.
I have this code in my Startup.cs ConfigureServices:
services.AddIdent...
Eudemonism asked 11/2, 2018 at 3:7
9
Solved
When trying to run my .NET Core 2.0 app from IIS Express, I get the following error:
System.Data.SqlClient.SqlException: 'Failed to generate SSPI context.'
This occurs when trying to access the ...
Sadiron asked 28/2, 2018 at 13:47
2
Solved
I am getting a problem with possibly Cors. I am doing local dev(react frontend, asp.net core 2 api backend).
Both IE 11 and Chrome have no problem, but Firefox has a problem with my requests.
I j...
Avalanche asked 19/7, 2018 at 17:41
5
Solved
I have two kubernetes services deployed on a AKS, they receive traffic from a Nginx Ingress Controller. The endpoints for these two services are https:<dns>/service1and https:<dns>/serv...
Rosebud asked 13/9, 2018 at 16:12
1 Next >
© 2022 - 2024 — McMap. All rights reserved.