dynamic c# ValueKind = Object
As i'm trying to access using using debugger. [](https://i.stack.imgur.com/NaMXf.png) Here is my result which i'm having below. ``` OtpData = ValueKind = Object : "{ "OTP":"3245234", ...
- Modified
- 27 Jul at 19:42
Why my coreWebView2 which is object of webView2 is null?
I am creating a object of Microsoft.Web.WebView2.WinForm.WebView2 but the sub obect of this coreWebView2 is null ``` Microsoft.Web.WebView2.WinForm.WebView2 webView = new Microsoft.Web.WebView2.WinFor...
- Modified
- 27 Jul at 13:46
SSL_ERROR_UNSUPPORTED_VERSION when attempting to debug with IIS Express
Created a new template ASP.Net Core 3.1 MVC web app. When I attempt to debug it using IIS Express I get the following error in firefox: > Secure Connection FailedAn error occurred during a connection ...
- Modified
- 24 Sep at 09:45
c# 9.0 records - reflection and generic constraints
Two questions regarding the new records feature : 1. How do I recognize a record using reflection ? looking [here][1] maybe there is a way to detect the EqualityContract but I am not sure if that is ...
- Modified
- 23 Nov at 01:45
Visual Studio Code C# Debugging Problem (The terminal process failed to launch: Path to shell executable "dotnet" is not a file of a symlink.)
I created a workspace using `dotnet new console`, wrote some code. But when I try to start debugging it using the option Run/Start debugging in visual studio code, it fails with the message: > Executi...
- Modified
- 25 Jul at 19:57
How to convert camel case to snake case with two capitals next to each other
I am trying to convert camel case to snake case. Like this: `"LiveKarma"` -> `"live_karma"` `"youGO"` -> `"you_g_o"` I cannot seem to get the second example working like that. It always outputs as 'yo...
How to create an SDK-style .NET Framework project in VS?
Is it possible to create an `SDK-style` `.NET Framework` project in Visual Studio (to be more specific I use the latest VS2019)? Or does it still require manual manipulations? ``` <Project Sdk="Micros...
- Modified
- 9 Jun at 21:50
Blazor WebAssembly Environment Variables
I'm currently working on a .NET Standard 2.1 Blazor WebAssembly application. I try to include or exclude Stylesheets according to an environment variable. In .NET Core there are usually Environment Ta...
- Modified
- 23 Jul at 13:31
ServiceStack Nuxt.js SPA and ImageSharp.Web integration
I am migrating my project from Asp.Net MVC to ServiceStack Nuxt.js SPA and one thing that I used on MVC was ImageProcessor.Web to manipulate images on the fly I am now trying to use ImageSharp.Web wit...
- Modified
- 23 Jul at 07:46
ServiceStack AutoQuery get random rows
I am migrating from EF6 and trying ServiceStack AutoQuery and I came to a bump - cant find a way to get random rows from database. Also is there a way to create computed columns directly in ORMLite PO...
- Modified
- 22 Jul at 17:37
Azure Functions: Queue Trigger is expecting Base-64 messages and doesn't process them correctly
I have this `Queue Trigger`. The expected is when I insert a message in the `Queue`, the trigger must fire and process the dequeued message. ``` [FunctionName("NewPayrollQueueTrigger")] public asy...
- Modified
- 22 Jul at 14:20
FluentValidation: How to register all validators automatically from another assembly?
I'm using "FluentValidation.AspNetCore" library (Version="8.6.2") for a .Net Core project. What I would like to do is to register all my Validators automatically in Startup.cs class, using somethin...
- Modified
- 2 May at 11:0
Could not load file or assembly 'System.Buffers, Version=4.0.2.0...'
I'm getting the following exception when trying to call `GetDatabase` method of the `MongoClient` class after adding a new configuration using VS config. manager: ``` Could not load file or assembly '...
- Modified
- 22 Jul at 09:33
Startup Project Option in Jetbrains Rider
I'm using Jetbrain's Rider. I have two classes in a project. They both have main methods. So I'm getting an erorr saying " Program has more than one entry point". I cannot even find the "Startup Proje...
- Modified
- 17 Jul at 08:39
ServiceStack Redis Get an struct always return default
I'm using ServiceStack Redis. I have an `struct` and I want to storage it in Redis. But when I try to get it, it always return the default value. `struct``class`. Any ideas? ``` public struct PersonSt...
- Modified
- 20 Jul at 23:20
Convert object to System.Text.Json.JsonElement
Let's say I have an object of type: ``` public class MyClass { public string Data { get; set; } } ``` And I need to convert it to System.Text.Json.JsonElement. The only way I found is: ``` var js...
- Modified
- 20 Jul at 13:57
Request body too large
When I try to upload a 80mb file from postman to my local endpoint running in Visual Studio 2019 on IISExpress I get the following error: > The request filtering module is configured to deny a request...
- Modified
- 20 Jul at 01:11
What is pyproject.toml file for?
### Background I was about to try Python package downloaded from GitHub, and realized that it did not have a `setup.py`, so I could not install it with ``` pip install -e <folder> ``` Instead, the...
- Modified
- 5 Mar at 08:10
Asp .net core - Could not load file or assembly 'ServiceStack' or one of its dependencies
The site does not start on hosting with an error Could not load file or assembly 'ServiceStack' or one of its dependencies. I use 1. ASP net core with target net core 3.1 2. ServiceStack 5.7.0 3. Hos...
- Modified
- 19 Jul at 09:12
BigInt inconsistencies in PowerShell and C#
According to [microsoft documentation](https://learn.microsoft.com/en-us/dotnet/api/system.numerics.biginteger?redirectedfrom=MSDN&view=netcore-3.1) the `[BigInt]` datatype seems to have no defined ma...
- Modified
- 18 Nov at 18:38
How can I fix "unexpected element <queries> found in <manifest>" error?
All of a sudden, I am getting this build error in my Android project: ``` unexpected element <queries> found in <manifest> ``` How do I fix it?
- Modified
- 19 Aug at 16:46
can't find IWebHostEnvironment in Microsoft.AspNetCore.Hosting.Abstractions assembly in a .NET Core class library
I can't reference the IWebHostEnvironment element in my .NET Core class library. I have added NuGet packages and , but it still can't find the type. In the documentation, is in the Microsoft.AspNetC...
- Modified
- 16 Jul at 04:10
How to test an endpoint that has a re-direct?
I have the following endpoint I use to confirm email addresses: ``` public ConfirmEmailResponse Get(ConfirmEmail req) { var cacheItem = Cache.Get<ConfirmEmailCacheItem>(req.Token); if (cacheIt...
- Modified
- 15 Jul at 21:15
Can you use the same description in the ApiMember attribute and xmldoc summary comment?
In my API's model assembly, I heavily use the `ApiMember` attribute to provide descriptions for the properties for Swagger UI, e.g. ``` public class FindVendorItems : IReturn<List<VendorItem>>, IGet {...
- Modified
- 15 Jul at 14:54
'AddEntityFramework*' was called on the service provider, but 'UseInternalServiceProvider' wasn't called in the DbContext options configuration
I'm upgrading an ASP.NET Core application from Framework 2.2 to 3.1. It also uses Entity Framework Core. In the Startup.ConfigureServices method, there is this code: ``` services.AddEntityFrameworkNpg...
- Modified
- 15 Jul at 14:27