Category "c++sharp"

ASP.NET Core YARP Reverse Proxy multiple listen ports

I want to Reverse Proxy multiple ports, with YARP. 0.0.0.0:5001 => RemoteHost.com:7001 0.0.0.0:5002 => RemoteHost.com:7002 0.0.0.0:5003 => Remote

Blazor wait for ef core to finish request

So right now I get a Error: System.InvalidOperationException: A second operation was started on this context before a previous operation completed. Because bla

Image.FromStream throws Parameter is not valid error only on linux

I have some Unit Tests made in .net core that checks if the file which is uploaded from angular frontend is actually resized on the backend. I have a service th

Output how many duplicates in an array

I'm looking to output the number of duplicates for each int in an array e.g. the array 1,2,3,4,1,1,3 would output 1:3, 2:1, 3:2, 4:1. at the moment no matter ho

Dotnet 5 scaffold changing table names

I have a database with tables like this: productos parametros before .net5 when I run the Scaffold command dotnet ef dbcontext scaffold "..............." "Pomel

How do I solve SqlNullValueException?

I'm trying to find an entity but I get a SqlNullValueException when entity framework is trying to get the value of a field that's Null. I checked in the databa

How to generate web service client from WSDL (like a pro), when address is changing frequently?

I have to consume some service on ESB which has addresses: for dev env: http://esbdev.com:11111/ws/ir.channel.aaa.pub.ws:ConsumeMeV1 for test env: https://esbte

Capture output from powershell without The PowerShell object

In my c# app there is some button, when the user clicks on this button the app runs a powershell script. a window of powershell pops out and the user see the r

Dodging the performance hit from using `in` with a struct without making the struct readonly?

C# 7.2 added two new features: In Parameters Using in for a parameter let's us pass by reference, but then prevents us from assigning a value to it. However the

How to load user control to a panel by button click in C#

I wanted to load a user control to a panel with a button, but when I tried this code it shows nothing. I wonder if there is a solution for my problem because I'

Durable Function Doesn't Correlate Telemetry

According to this developer blog post Durable functions can be configured (and according the the host.json schema are configured by default) to automatically cr

async/await "List<> does not contain a definition for 'GetAwaiter'"

I apologize for sounding dense, but I swear I have read up on async/await and played with examples, but I am still stumped at simple things like why the followi

Check if Outlook MAPIFolder is visible?

When I iterate through all Outlook folders (in a C# Add-In) I see folder names like: Yammer Root Sync Issues Subscriptions These folders are not visible in Out

I want to create an object as soon as ARCore recognizes a plane

In the ARCore tutorial, recognizing a plane and touching it creates an object on the screen. But I want to create an object as soon as I know the plane. The al

Access IHost across application classes globally

Below is an example code for CreateHostBuilder. Asp.net core host takes care of resolving dependency through constructor and middleware. If we want to resolve

USB Cam Feed Not Displaying In Picturebox Using C# And Aforge

I have a C# Winforms project in which I have to capture an image from an external webcam (Logitech HD Pro C920). I am using the Aforge media library. The list o

DPI Awareness - Unaware in one Release, System Aware in the Other [duplicate]

So we have this really odd issue. Our application is a C#/WinForms app. In our 6.0 release, our application is not DPI aware. In our 6.1 relea

Incompatible Target Framework on Visual Studio Community

I`ve been trying to make a unit test in my project following this tutorial: https://docs.microsoft.com/en-us/visualstudio/test/walkthrough-creating-and-running-

A possible object cycle was detected which is not supported

I know there are question and answers with that particular problem here on so, but my problem is little unique (I guess). Here is my model class: public class

ForEach Loop not detecting any Controls (PictureBoxes)

This following code is supposed to detect all PictureBoxes in the Controls property, and apply collisions to it. (This is in Windows Form for a CompSci final pr