I have an ASP.NET Core application using Entity Framework Core (SQL Server).When I run the app in Debug, all migrations execute perfectly — all tables are created in the database as expected.However,...
After updating our Dotnet API from dotnet 6 to 8 the connection-attemps on AWS RDS increased significantly (see attached picture).The API is running in a docker-container.We use a MYSQL RDS instance ...
I have a console app constructed using the following code:public partial class Program{ private static async Task<int> Main(string[] args) { Host.CreateDefaultBuilder(args) ...
I get this error when migrating from Entity Framework:dotnet ef migrations add initAppUnable to create a 'DbContext' of type 'RuntimeType'. The exception 'Unable to resolve service for type '...
I've got a class model with a class PrincipalEntity, which serves as the principal and contains a 1:1-relationship as well as a 1:n-relationship both to DependentEntity. How to configure these ...
There's a specific tool that I had used in Windows in the past that doesn't currently exist in the Linux ecosystem. There are alternatives but as always they all require making compromises. I found ...
Tried to remove background from bill photo using OpenCvSharp GrabCut method: static Mat Grabcut(Mat imageMat) { Mat result = new(imageMat.Size(),MatType.CV_8UC1); OpenCvSharp.Rect rect = ...
Looking for a method to set image color to white outside single contour.Answer inFill the outside of contours OpenCVoutside-of-contours-opencvcontains python code for this:import cv2import numpy...
I want to be able to provide option to fix the error and save again. Now, when i click "Save", Save and cancel buttons are gone and when error message is shown in my new html element, I ...
If I use the following code in my OnPost() handler:return RedirectToPage(new { parm1 = "abc", parm2 = "" });The address bar shows:https://localhost:7240/Transloading/Assets/...
I'm working on an ASP.NET Core project, where I have to grab information and packages from a Nuget feed. Everything works like a charm locally, but when I deploy the site and try to access the nuget ...
I have 2 versions of a vendor DLL that contain same classes but are different for reasons, and have slightly different names.At any rate I either want to load DLLA or DLLB, I do not want to set these ...
My Blazor server application calls an external API. For each request to this API I want to send a unique correlation id (as a X-Correlation-Id header).I'm trying to use Activity.Current.Id.ToString();...
How can I enable verbose tracing in dotnet/runtime/src/native/corehost?There is enable function but it is not exported and I don't see calls to it so that I can't use another function as a mediator.
Steps to reproduceIn Visal Studio create .NET 9 console application.Add OpenCvSharp 4 Windows and Linux nuGet packages:Create program.cs file:using OpenCvSharp;using Mat src = new Mat();...