Category "c++sharp"

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

Aspose Package document not saving when using doc.save method

I have tried below two methods and ensured that license is updated along with the correct binary. Using .net framework 4.5.2. Below using doc.save method is not

C# Azure durable functions [Aggregator]

I'm looking for a solution where I could aggregate data coming from TCP or even from an azure queue based on a device id. I have been looking at the documentati

The type arguments for method 'GridHelper.Grid<T>(HtmlHelper, IEnumerable<T>)' cannot be inferred from the usage. error

I'm getting "The type arguments for method 'GridHelper.Grid(HtmlHelper, IEnumerable)' cannot be inferred from the usage. Try specifying the type arguments expli

Microsoft.Graph.Core Code:accessDenied uploading file to One Drive API

I use the below code to upload the file to OneDrive API. var uploadedFile = await requestBuilder .ItemWithPath(fileName)