Category "c++sharp"

Unusual Target Invocation Error in Unit Tests

I'm trying to run a group of 12 unit tests. When I run the entire group, one test passes and the rest fail with the same error: Could not find default endpoint

PGP BouncyCastle + Kleopatra Decryption: Unknown Packet Type: 20

I am attempting to decrypt a file using BouncyCastle in C# that has been encrypted with RSA via Kleopatra. Unfortunately, I am receiving an error that states "

My Xamarin app keeps crashing due to Databinding(Basic Databinding)

I was trying to use Databinding in my Xamarin app. After implementing, just like the many instructions suggest, it just always crashes while loading the app. Wi

C# How to delete certain part of string from text not to delete the rest text [duplicate]

Like in the title, how to delete a certain part of text without deleting the whole text. The example how it should work. "Some text I put in t

BlockSize must be 128 in this implementation

I'm using the following code to decrypt some strings I reicive but I'm getting the following error: BlockSize must be 128 in this implementation. I would like t

Entity Framework Core: one-to-one configuration

I updated the title to be more relevant. I have two objects and wish to use EF Core to map them to a database using code first. I have shortened them a bit for

Insert NON-DUPLICATE Data into SQL Database from Excel file using ASP.NET Core 3.1

I'm trying to use two C# DataTables like below to meet my requirement. dtExcelData: This DataTable holds the data which is uploaded from Excel file. This data s

How do I define and use IOn[X]SetListenerImplementor

I am reading through the source code for Xamarin and came across these two dialogs: the TimePickerDialog and DatePickerDialog. When reading through these, I see

What's an appropriate way to background process file IO operations? [closed]

I am presently using a FileSystemWatcher to spot when files arrive in a folder. However, locked files are a problem and so I wanted to try a d

how to migrate global.asax event 'Application_Start' to program.cs on net.6?

I try to migrate an old projet with a console app and a webservice ( both on .net framework 4.6) to a .net 6 console app (I want to suppress the ws and just hav

Why is my design works fine only with small screen sizes?

I have followed this great tutorial to the letter to design modern UI using FontAwsome.Sharp RJ Code Advance Modern UI I have two issues , First in the form des

Can't add reference to System.Windows.Forms to .NET 5.0 Xunit unit test project

I have a solution in Visual Studio 2019 containing a WinForms .Net Framework 4.8 project and a .Net 5.0 test project. The WinForms project contains all my windo

Signal and Wait in C#

In the below application there are two parties that are calling ChannelReservationCache to fetch or add information. I want to use the "signal and wait" thing i

FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.SignalR.Core

I'm creating a .net core console application where some of the libraries are using SignalR. I have installed "Microsoft.AspNetCore.SignalR.Core" from nuget pack

C#- http client response help request

I have the following code: static async Task checkIMEI( double IMEI) { var client = new HttpClient(); var request = new HttpRequest

What options do you have for the internal logger of a logger provider?

I have developed Logging.Raven: a net core logger provider that stores log entries in a RavenDB database. When something goes wrong I write the error informatio

error in publish blazor-wams version.net5 after install visual studio 2022

I'm having a weird issue with publishing my Blazor WASM version .net5 project to IIS Service after I install my Visual Studio 2022 In Console Write This Error :

Refit 6 not working when android project built with unity

I'm using Refit 6 in unity for rest calls but when project is built for Android getting below error. Message: MissingMethodException: Constructor on type 'Refit

Entity framework core multi tenant : auto increment column based in another column value

Using entity framework core 6 with sample class public class Sample { [Key] public long Id { get; set; } public long TenantId { get; set; } public long

What does the "RayPerceptionSensore3D" compocent observe?

I'm just learning about Unity ML-agent. Does the "RayPerceptionSensor3D" component observe only tags and positions that have been hit by rays? Then, is it the s