Category "c++sharp"

Hebrew characters are printed in reverse order in iText 7

I'm using iText 7 for printing some text in List (in Hebrew) to PDF file, but while printing the Hebrew characters are printed in a reverse way. The input given

How to enumerate all possible keys that exist on a smartcard that is present in a reader with just UWP APIs?

Here are the constraints for my question: How to enumerate all possible keys that exist on a smartcard that is present in a reader with UWP APIs? Use just Unive

ASP.NET Core CSS Isolation with Webpack

My ASP.NET Core RazorPages project uses Webpack. I also want to use CSS Isolation. Every RazorPage Foo.cshtml has an associated css file Foo.cshtml.css. These

Visual Studio 2019 create NuGet package that includes NetStandard and updates web.config

Recently, I created a NuGet package in Visual Studio 2019 by following the steps here to create the package using the "Pack" command. The problem is when I tri

React Native run-windows error microsoft.ui.xaml.winmd not found

midlrt : error MIDL1001: [msg]cannot open input file [context]Error opening or processing WinMD d:\Desktop\projects\plenusbusiness\windows\packages\microsoft.ui

How to configure NewtonsoftJson with MinimalApi in .NET 6.0

I have net6.0 project with minimal api and I would like to use NetwtonsoftJson instead of built in System.Text.Json library for serialization and deserializatio

Sign error for bybit using c# when sending post request

I am trying to send a simple post request to the bybit api and I keep getting the 10004 sign error. Here is the response: {"ret_code":10004,"ret_msg":"error sig

Trying to debug my dotnet 5 WPF app and getting an error: "The target process exited without raising a CoreCLR started event."

This is dotnet 5 WPF app that was converted from a dotnet framework app using this tool from Microsoft. The full error says The target process exited without r

Finding the closest vertex below a certain height, from a start position

I have procedurally generated Islands with lakes, its basically a 3D mesh that has points above the water line and points below it, any vertex/point below the w

Serilog Filtering not working in appsettings.json

I implemented Serilogger and put the configuration in the Program.cs and it worked great. I'm trying to move the configuration to appsettings.json and its writ

System.Data.Entity.Core.MetadataException: 'Unable to load the specified metadata resource.' 2022

[Enter image description here] 1 I got this error when I tried to run the system. I am not sure why. it used to display the information from a database. Please

HangFire running each job separately

I am using HangFire to run the job. I have a method that retrieve data from more than 50 sql servers. I want to use HangFire to run each location separately by

ERROR : Input String was not in a correct format when calculating multiple columns in DATAGRIDVIEW

I want to calculate the value of 3 cells in DATAGRIDVIEW the calculation : SDI = ((result - mean ) / SD) I tried the following code : private void dgvResult_Cel

DllNotFoundException libgurobi95 when invoking lambda function on AWS

I have a lambda function that uses the OPTANO.Modeling.Gurobi NuGet package (and OPTANO.Modeling). The code works perfectly when I run it locally using the Mock

array of integer input from user

I have a question related to filling it in an array. In the program I have to write I am given "input from user: different number of numbers separated by space

Unable to create an object of type 'AppDbContext'. asp.net 6/mvc

MY ERROR: ı want to "add-migration" but ı cannot also ı use web app and .NET 6.0 Unable to create an object of type 'AppDbContext'. For the diffe

Error when replacing .ToList() calls in with an IQueryable

I'm trying to improve the efficiency of this method and I can't figure out why my "solution" is throwing an error. Here's the existing and working, albeit slow,

How to use a generic HostBuilder in a UWP application

In my WPF applications I use a generic HostBuilder in this way: public partial class App : Application { private readonly IHost _host; public App()

Remove a BlurEffect from control WPF C#

I have a border containing a textblock, which has a blur effect applied to it: <Border Grid.Row="2"> <Border.Effect> <BlurEffect Radi

Unity gyroscope reads only two axes

I want to make it so that the gyroscope will only change the x and y-axes of an object. There is code for one axis and for three axes (mostly used), but I could