Error: Action has more than one parameter bound from request body
I wrote a new method into my Controller of my ASP.Net MVC project and getting error below. I think `InvalidOperationException` coming from with Swagger. I marked it as "ignored Api" hoping it will ski...
- Modified
- 20 Jun at 09:12
UserManager.CheckPasswordAsync vs SignInManager.PasswordSignInAsync
using asp net core identity - when user provides password and username to get a jwt token they post credentials to /api/token should my token controller method be using usermanager to check the passw...
- Modified
- 19 Dec at 15:54
Flurl and untrusted certificates
Currently I worked on Flurl and I tried to contact an API in https (I am in my lab). So the certificate is not valid and Flurl can't continue to work :/ Here is my error message: ``` Unhandled Excep...
- Modified
- 19 Dec at 14:14
Visual Studio Code error - 'dotnet' is not recognized as an internal or external command
Setup: Windows 7 64 bit Visual Studio Code, version 1.30.0 Dotnet version: 2.2.101 I am at the beginning of trying to learn how to program with C# and I have hit a snag. I am attempting to follow...
- Modified
- 12 Sep at 01:42
Google APIs vs Google Play vs Intel x86 vs Android TV vs Wear OS Intel x86 system image differences
I have recently started exploring Xamarin.Android with Visual Studio 2017. On Android SKD Manager window I can see different Android versions and under each version there are multiple android system i...
- Modified
- 19 Dec at 09:14
IIS: Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list
I used angular .net core 2.2 template to build an application. In localhost working fine, When I host to IIS I'm getting this error. I'm using IIS 10 to host the application. Error, HTTP Error 500.21 ...
- Modified
- 14 Apr at 14:29
Async timer in Scheduler Background Service
I'm writing a hosted service in .Net-Core which runs a job in the background based off of a timer. Currently I have to code running synchronously like so: ``` public override Task StartAsync(Cancell...
- Modified
- 19 Dec at 04:27
No service for type 'Microsoft.Extensions.Logging.ILoggingBuilder' has been registered
I am building brand new Web APIs with .NET core 2.2. In my `Startup.cs` I have set `ILoggerFactory` in configure method. When I do such a thing and add following code ``` loggerFactory.AddConsole(); ...
How to fix obsolete ILoggerFactory methods?
I upgraded my project to .NET Core 2.2.x and got an obsolete warning regarding the following code - both lines: ``` public void Configure(IApplicationBuilder app, IHostingEnvir...
- Modified
- 29 Mar at 17:45
.Net Core 2.2 Web API getting 415 Unsupported Media type on a GET?
I have upgraded my WebApi project to .net core 2.2 and since then, all of my controllers are pulling 415 Unsupported Media type from every single GET call. Which is super strange because 415 is genera...
- Modified
- 16 Oct at 13:35
Hosting my Angular SPA with ServiceStack self-hosted service
I am using ServiceStack to build a small RESTApi self-hosted service with a NoSQL database and everything is perfect (not using .Net Core). Now I would like to build some maintenance screens using An...
- Modified
- 18 Dec at 17:2
How to make a Windows Service from .NET Core 2.1/2.2
Recently I had a need to convert a .NET Core 2.1 or 2.2 console application into a Windows Service. As I didn't have a requirement to port this process to Linux, I could dispense with the multiple pla...
- Modified
- 23 Jun at 12:15
Integrating Python Poetry with Docker
Can you give me an example of a `Dockerfile` in which I can install all the packages I need from `poetry.lock` and `pyproject.toml` into my image/container from Docker?
- Modified
- 12 May at 04:39
Does "where" position in LINQ query matter when joining in-memory?
Say we are executing a LINQ query that joins two in-memory lists (so no DbSets or SQL-query generation involved) and this query also has a `where` clause. This `where` only filters on properties incl...
- Modified
- 18 Dec at 12:8
Are ValueTuples suitable as dictionary keys?
I'm thinking this could be a convenient dictionary: ``` var myDict = new Dictionary<(int, int), bool>(); ``` What would the hashes look like? What would the equivalent key type (struct) look like? ...
- Modified
- 18 Dec at 10:31
Categories are not shown in PropertyGrid for a collection<T>, when all the properties of <T> are read-only
As the title says, I noticed that the categories are not shown in a **PropertyGrid* (in its default collection editor) for a collection(Of T), when all the properties of class "T" are read-only. The ...
- Modified
- 18 Dec at 10:26
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib error running php after installing node with brew on Mac
I installed node using homebrew (Mojave), afterwards php stoped working and if I try to run `php -v` I get this error: ``` php -v dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dyli...
How can I use Microsoft.Extensions.DependencyInjection in an .NET Core console app?
I have a library that I would like to run on all platforms supported by .NET Core (Xamarin, Windows, Mac). And to do this I need to have a cross platform DI to handle the platform specific customizat...
- Modified
- 7 Nov at 17:18
Flutter/Dart: How to access a single entry in a map/object
This might be a very simple question but I am having trouble finding an answer. I have a object/map that I would not like to iterate but access a specific key/value at an index. For example: ``` var...
- Modified
- 18 Dec at 00:37
React hooks useState Array
I tried looking for resetting `useState` array values in here but could not find any references to array values. Trying to change the drop down value from initial state to allowedState values. I am u...
- Modified
- 22 Apr at 22:27
Flutter Multiline for text
All I need is my text to be multi-line. Am giving the property of `maxLines` but its still getting `RenderFlex` overflowed error to the right as the next is not going to 2nd line, ``` Align( alignmen...
- Modified
- 17 Dec at 09:14
HTTP Error 500.30 - ANCM In-Process Start Failure
I was experimenting with a new feature that comes with .NET core sdk 2.2 that is supposedly meant to improve performance by around 400%. Impressive so I tried it out on my ABP () project `Template asp...
- Modified
- 19 Jul at 21:55
Unable to resolve service for type 'Microsoft.AspNetCore.Identity.RoleManager`
I writing code for adding roles to users in my asp.net core project Here is my Roles controller. ``` public class RolesController : Controller { RoleManager<IdentityRole> _roleManager; UserM...
- Modified
- 16 Dec at 10:16
Why is my application becoming less responsive over time?
I'm debugging a C# application that becomes almost unresponsive after a few days. The application calculates memory/CPU usage every second and displays it in the footer of the main UI. The cause for ...
- Modified
- 16 Dec at 06:11
Add `host`, `basePath` and `schemes` to swagger.json using Swashbuckle Aspnetcore
I am using official doc step by step method to configure Swagger UI and generate Swagger JSON file in my ASP.NET core API application. [Get started with Swashbuckle and ASP.NET Core](https://learn.mi...
- Modified
- 15 Dec at 13:56