Category "c++sharp"

How to prevent a popup Form from exceeding screen area?

I am building a two column custom context menu layout using Forms. I named the class of the form of the custom context menu as ContextMenu. I created a flag fun

AWS HTTP API Gateway integration with SQS - MessageAttribute doesn't work

I've integrated HTTP API Gateway with SQS and have some problem with MessageAttributes. The main goal is to pass parameter in URL, attach it to message attribut

image.Mat in EmguCV is always in BGR format?

My code is all done thinking that the input Mat is in BGR format, so I am wondering if given an Image object in EmguCV, the property Mat from this object is alw

Unsupported grant type exception on Flurl POST

I am making a POST to a client authentication endpoint with an encoded auth header and I receive Unsupported grant type exception. Speaking with the client, the

Read information of ID causing error from Exception

In C# My Sql Entity Framework 6 Insert is return exception Cannot add or update a child row: a foreign key constraint fails (portaldb.masterselectionhistory, C

Binding to a static property doesn't update in Xamarin Forms

I am learning to use MVVM in Xamarin Forms. I am stuck with a Binding issue. I have been trying different solutions on the internet for the past few hours. I am

WorldPay 3ds implementation INVALID_PAYMENT_DETAILS

I am trying to implement 3ds to an existing worldpay payment to my system. Although this works with test environment requests, I am facing problem with the live

C# connection to GIT fails

I have an application that generates file that needs to be stored in a GIT repository in ADO. I'm trying to connect to a repository but it fails to give me a GI

How should BlobServiceClient be created?

Should the BlobServiceClient be created in a similar pattern like HttpClient, effectively as a singleton, or should it be done per request? My instinct suggests

C# Npgsql connection checker Exception Throw System.NullReferenceException 'Object reference not set to an instance of an object.'

My code try to check is the PostgreSQL server running and accessible by given credentials for given database. Use the Npgsql NuGet. If all the data, also IP, P

Link Azure AD B2C login user to custom database table user

I'm pretty new to Azure AD and I could get the AD login working with username and password after setting client IDs, Domain and SignupSignin policies. My questi

AWS Lambda Json Serializer is removing trailing zeros from milliseconds in a date time input

I have created an AWS lambda with C# .net core 3.1. This lambda takes a json object as input and one of the property names of the json object is a datetime. Loo

AvaloniaUI: Cannot embed VideoView control (LibVlcSharp) in a UserControl

I am new to AvaloniaUI 0.10.5. Currently I am using the VideoView control (LibVLCSharp.Avalonia 3.5.0) in an application on macOS. The code is a copy of Donadre

AspNetCoreRateLimit endpoint wild-card does not work

I am trying to implement a rate limit using the AspNetCoreRateLimit package. I would like to limit the rate on only one endpoint This one: https://[removed for

ASP.Net Core API response takes too much time

I have a SQL database table with 9000 rows and 97 columns. Its primary key has 2 columns: Color and Name. You can see the simplified table to image better:

Can't remove contact from marketing list via Dynamics 365 Web API

I'm struggling with removing (unlinking) a contact record from a marketing list via Web API of Dynamics 365 CRM. I was able to successfully link a contact recor

How do I restore focus to previously focused control of the TabPage when switching between tabs

I have a TabControl and I'm adding Tabpages to it programmatically. Each TabPage loads a UserControl in it, and each user control contains a few controls. For e

Asp.Net Core Swagger Sort Tags Alphabetically

I'm using asp.net core 6 & Swashbuckle.AspNetCore and I'm using SwaggerAnnotations in my actions But my Tags Groups are not ordered Here's my Swagger UI pag

DxDataGrid - How to implement Server side pagination with or without grouping?

I am using REST api to generate JSON object from Server Side C#. I have my JSON object ready but since its having more then 500000 records, dxdatagrid (DevExtr

Use JSON_ARRAYAGG with Entity Framework Core

I am trying to use JSON_ARRAYAGG(JSON_OBJECT(...)) in Entity Framework Core but I don't know much how to trick Entity Framework Core to use this function with a