tagged [asp.net-core-2.1]
How to catch ASP.NET Core 2 SignalR exceptions on server-side and handle them on client side with JavaScript?
How to catch ASP.NET Core 2 SignalR exceptions on server-side and handle them on client side with JavaScript? Context: There are differences between ASP.NET SignalR and ASP.NET Core SignalR you can re...
- Modified
- 19 Mar at 19:26
How to use Roles in ASP.NET Core 2.1?
How to use Roles in ASP.NET Core 2.1? I've created a test project using: This creates a Startup.cs that contains: ``` public void ConfigureServices(IServiceCollection services) { services.Configure(...
- Modified
- 19 May at 15:13
Running unit tests with .NET Core MSTest: "The following TestContainer was not found..."
Running unit tests with .NET Core MSTest: "The following TestContainer was not found..." I've searched high and low and can't find answer to this Exception. [This question](https://stackoverflow.com/q...
- Modified
- 10 Jul at 15:47
Asp.net Core Email confirmation sometimes says InvalidToken
Asp.net Core Email confirmation sometimes says InvalidToken I am using asp.net core identity 2.1 and i am having a random issue with email confirmation, which while email confirmation sometimes says ....
- Modified
- 20 Feb at 12:9
How to return 404 on wrong API url? (ASP.NET Core + SPA)
How to return 404 on wrong API url? (ASP.NET Core + SPA) I need to return 404 on wrong api call so I can create proper response to user on client side (Angular 5). Currently backend returns status cod...
- Modified
- 16 Sep at 21:24
How to run BackgroundService on a timer in ASP.NET Core 2.1
How to run BackgroundService on a timer in ASP.NET Core 2.1 I want to run a background job in ASP.NET Core 2.1. It has to run every 2 hours and it will need to access my DI Container because it will p...
- Modified
- 11 Dec at 19:57
Entity Framework Core Auto Generated guid
Entity Framework Core Auto Generated guid Can some One guide me I want `primeryKey` of a table as `guid` having db generated value on insert. but it's giving `error` > The seed entity for entity type ...
- Modified
- 2 Sep at 22:16
ASP.NET Core 2.1 - IdentityUser Issue - Cannot create a DbSet for 'IdentityUser' this type is not included in the model for the context
ASP.NET Core 2.1 - IdentityUser Issue - Cannot create a DbSet for 'IdentityUser' this type is not included in the model for the context I have upgraded my code from ASP.NET Core 2.0 to Core 2.1. I cre...
- Modified
- 7 Jun at 15:37
.NET Core - Hook incoming request with a Request-Id to outbound HTTP requests
.NET Core - Hook incoming request with a Request-Id to outbound HTTP requests We are looking a way to HOOK a `Request-Id` (or a `Correlation-Id`) across multiple API requests as shown figure below: []...
- Modified
- 13 Sep at 04:56
Azure Function, returning status code + JSON, without defining return in every part of logic
Azure Function, returning status code + JSON, without defining return in every part of logic I have an Azure Function 2.x that reside on a static class that looks like this ``` [FunctionName("Register...
- Modified
- 25 Feb at 10:23
Expand environment variables in appSettings.json file
Expand environment variables in appSettings.json file Is there a way "out of the box" to have environment variables in `appsettings.json` values expanded automatically? To take a contrived example: My...
- Modified
- 16 Mar at 22:13
HttpClient with .Net Core 2.1 hangs
HttpClient with .Net Core 2.1 hangs Given the following .Net Core 2.1 Console App... ``` using System; using System.Diagnostics; using System.Net.Http; using System.Net.Http.Headers; namespace TestHtt...
- Modified
- 8 Jun at 12:19
Core 2.1 refuses to respond with Access-Control-Expose-Headers: *
Core 2.1 refuses to respond with Access-Control-Expose-Headers: * I must be doing something wrong here but I can't figure it out; it seems to be a CORS issue from what I can tell. I need to expose `Ac...
- Modified
- 21 Apr at 09:9
More than one DbContext named 'NewProject.Models.DbContext' was found Specify which one to use by providing its fully qualified name using exact case
More than one DbContext named 'NewProject.Models.DbContext' was found Specify which one to use by providing its fully qualified name using exact case I was developing a Web-App with Asp.Net Core 2.1 ....
- Modified
- 13 Jul at 05:50
Routing is not working with self-hosted web API
Routing is not working with self-hosted web API This is essentially what I have, a very simple set of three files with fresh asp.net core 2.1 (actually copy-pasted from tutorials): ``` public class Pr...
- Modified
- 1 Jun at 09:57
InvalidOperationException: No authenticationScheme was specified, and there was no DefaultChallengeScheme found
InvalidOperationException: No authenticationScheme was specified, and there was no DefaultChallengeScheme found We have a Net Core 2.1 API project. We use the request headers to retrieve API key which...
- Modified
- 12 Sep at 04:33
How do ASP.NET Core's "asp-fallback-*" CDN tag helpers work?
How do ASP.NET Core's "asp-fallback-*" CDN tag helpers work? I understand what the `asp-fallback-*` tag helpers do. What I don't understand is how. For example: ```
- Modified
- 4 May at 13:35
How to translate Identity Password validation messages
How to translate Identity Password validation messages So far I have been able to translate everything in an ASP.Net Core 2.1 Web Application. It has proven a little challenge, since the scaffolded Ac...
- Modified
- 2 Dec at 09:22
Parallel queued background tasks with hosted services in ASP.NET Core
Parallel queued background tasks with hosted services in ASP.NET Core I'm doing some tests with the new Background tasks with hosted services in ASP.NET Core feature present in version 2.1, more speci...
- Modified
- 15 Jul at 16:19
The application completed without reading the entire request body, .net core 2.1.1
The application completed without reading the entire request body, .net core 2.1.1 I have created a user register controller to register users with repository design pattern. My controller looks like ...
- Modified
- 27 Jan at 04:3
SignInManager.PasswordSignInAsync() succeeds, but User.Identity.IsAuthenticated is false
SignInManager.PasswordSignInAsync() succeeds, but User.Identity.IsAuthenticated is false I'm new to ASP.Net Core and trying to create an user authentication system. I'm using ASP.Net Core Identity use...
- Modified
- 6 Feb at 06:30
ASP.NET Core 2.1: Navigating back to a page after an HTTP POST fails validation displays a browser error
ASP.NET Core 2.1: Navigating back to a page after an HTTP POST fails validation displays a browser error Using an project, I'm receiving the following browser error message after using the browser bac...
- Modified
- 2 Aug at 18:12
Empty href after upgrading to asp.net core 2.2
Empty href after upgrading to asp.net core 2.2 We have built an ASP.NET Core 2.1 website where URLs like [www.example.org/uk](http://www.example.org/uk) and [www.example.org/de](http://www.example.org...
- Modified
- 2 Jul at 10:40
How do I get a reference to an IHostedService via Dependency Injection in ASP.NET Core?
How do I get a reference to an IHostedService via Dependency Injection in ASP.NET Core? # Details I have attempted to create a background processing structure using the recommended `IHostedService` in...
- Modified
- 27 Aug at 10:7
Migrating to .NET Core 2.1 breaks Swagger UI
Migrating to .NET Core 2.1 breaks Swagger UI Recently we have migrated our project from `.NET Core 2.0` to `.NET Core 2.1`. As a result our Swagger documentation site stopped working. We are still abl...
- Modified
- 31 May at 12:9