tagged [asp.net-core-2.0]
Identity in ASP.Net Core 2.1< - Customize AccountController
Identity in ASP.Net Core 2.1
- Modified
- 18 Dec at 21:12
Local user account store for Web API in ASP.NET Core 2.0
Local user account store for Web API in ASP.NET Core 2.0 I'm using ASP.Net Core 2.0, I want to build a Web API project with Individual User Accounts Authorization type, but the only option is `Connect...
- Modified
- 6 Feb at 05:31
Reference another json file in appsettings.json for ASP.NET Core configuration
Reference another json file in appsettings.json for ASP.NET Core configuration In 'the old days' using XML configuration it was possible to include partial configuration from another file like [this](...
- Modified
- 10 Sep at 16:9
HTTP Error 404.13 - asp.net core 2.0
HTTP Error 404.13 - asp.net core 2.0 > HTTP Error 404.13 - Not Found The request filtering module is configured to deny a request that exceeds the request content length.Verify the configuration/sys...
- Modified
- 1 Oct at 09:9
Application Variables in ASP.NET Core 2.0
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? I have a variable, let's call it CompanyName, which resides in the ...
- Modified
- 8 Feb at 15:41
How to use Windsor IoC in ASP.net Core 2
How to use Windsor IoC in ASP.net Core 2 How can I use Castle Windsor as an IOC instead of the default .net core IOC container? I have built a service resolver that depends on `WindsorContainer` to re...
- Modified
- 21 Aug at 01:25
Unexpected end of Stream, the content may have already been read by another component. Microsoft.AspNetCore.WebUtilities.MultipartReaderStream
Unexpected end of Stream, the content may have already been read by another component. Microsoft.AspNetCore.WebUtilities.MultipartReaderStream I get an exception when I try to read multi part content ...
- Modified
- 17 Dec at 13:51
getting the request body inside HttpContext from a Middleware in asp.net core 2.0
getting the request body inside HttpContext from a Middleware in asp.net core 2.0 I am having a simple middleware which fetches the body of the request and store it in a string. It is reading fine the...
- Modified
- 4 Dec at 00:49
IServiceCollection does not contain a defintion for AddHttpClient
IServiceCollection does not contain a defintion for AddHttpClient I am trying to use HttpClient in my .net core 2.0 project and for that I have injected HttpClient in my controller. But when I am tryi...
- Modified
- 30 Aug at 07:36
How to access TempData in my own utility class? Or TempData is null in constructor
How to access TempData in my own utility class? Or TempData is null in constructor I use TempData in some of my Views/Actions but I'd like to extract that into some class. The problem is if I try to c...
- Modified
- 11 Sep at 22:16
Getting IConfiguration from ServiceCollection
Getting IConfiguration from ServiceCollection I´m writing my own extension method for `ServiceCollection` to registered the types of my module and I need to access the `IConfiguration` instance from t...
- Modified
- 18 Aug at 08:11
Unit test AuthorizationHandler
Unit test AuthorizationHandler I used the resource-based authorization pattern in .NET Core 2.1 as described [here](https://learn.microsoft.com/en-us/aspnet/core/security/authorization/resourcebased?v...
- Modified
- 14 Feb at 19:53
How To: Register ServiceStack's Redis Client Manager singleton in ASP.NET Core using the default container
How To: Register ServiceStack's Redis Client Manager singleton in ASP.NET Core using the default container I've been reading several documents and articles on how to ServiceStack's Redis client, but a...
- Modified
- 2 May at 19:36
How to enable Application Logs in Azure for Net Core 2 App?
How to enable Application Logs in Azure for Net Core 2 App? I am trying to enable application logs in azure. I have a dummy Net Core 2 App running in an appService in azure. and basically my goal is t...
- Modified
- 29 Oct at 03:59
Cannot resolve scoped service Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.IViewBufferScope from root provider
Cannot resolve scoped service Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.IViewBufferScope from root provider I'm trying to use in my ASP.NET Core 2.0 web app this sample [RazorViewEngineEmailTempl...
- Modified
- 23 Oct at 20:29
Exception calling "Remove" with "0" argument(s): "The given key was not present in the dictionary
Exception calling "Remove" with "0" argument(s): "The given key was not present in the dictionary I have added a migration using `Add-Migration`, Now If I run `Remove-Migration`, it reverts the migrat...
- Modified
- 20 Mar at 06:7
ASP.NET Core 2 - Multiple Azure Redis Cache services DI
ASP.NET Core 2 - Multiple Azure Redis Cache services DI In ASP.NET Core 2 we can add a Azure Redis Cache like this: Then the usage will be like this: ``` private readonly IDistributedCache _cache; pub...
- Modified
- 18 Oct at 11:21
In an ASP.NET Core Web App, what's the difference between AddJsonOptions and AddJsonFormatters?
In an ASP.NET Core Web App, what's the difference between AddJsonOptions and AddJsonFormatters? I'm trying to control json output settings across the board, like for normal HTTP 200 OK results to thin...
- Modified
- 11 Jul at 13:34
How to precompile views in ASP.NET Core 2.0?
How to precompile views in ASP.NET Core 2.0? I set up my solution according to this [article](https://dzone.com/articles/self-contained-ui-running-one-aspnet-core-mvc-site). I left out some of the thi...
- Modified
- 31 Mar at 09:10
Use multiple JWT Bearer Authentication
Use multiple JWT Bearer Authentication Is it possible to support multiple JWT Token issuers in ASP.NET Core 2? I want to provide an API for external service and I need to use two sources of JWT tokens...
- Modified
- 4 Feb at 11:45
Export to Excel in ASP.Net Core 2.0
Export to Excel in ASP.Net Core 2.0 I used to export data to excel in asp.net mvc using below code ``` Response.AppendHeader("content-disposition", "attachment;filename=ExportedHtml.xls"); Response....
- Modified
- 9 May at 06:56
Claims transformation support missing in ASP.NET Core 2.0
Claims transformation support missing in ASP.NET Core 2.0 I am using JWT Bearer auth in my new asp.net core 2.0 api app and want to add some extra claims to the current identity. This extra info is lo...
- Modified
- 25 Apr at 20:53
Remove console and debug loggers in ASP.NET Core 2.0 when in production mode
Remove console and debug loggers in ASP.NET Core 2.0 when in production mode In ASP.NET Core 2.0 we have this That `CreateDefaultBuilder(args)` has many helpful defaults. However it [contains this](ht...
- Modified
- 21 Sep at 06:56
.NET core X509Store on linux
.NET core X509Store on linux Where are the certificate files located in linux when using the .NET Core 2 `X509Store`? On Windows, the certificates are accessible from the management console `certlm.ms...
- Modified
- 16 May at 00:10
accessing appsetting.json values in startup.cs
accessing appsetting.json values in startup.cs I understand how to Configure services for appsettings.json and inject them into a controller. However, I need to use the values in the ConfigureServices...
- Modified
- 15 Sep at 01:59