Category "c++sharp"

I can't run C# console application ( version `GLIBC_2.32' not found)

I am on Ubuntu 21.04 and running a C# console application in Jetbrains Rider. And it says: /home/Door/RiderProjects/ConsoleApp1/ConsoleApp1/bin/Debug/net6.0/Con

containing type does not implement interface 'IComponentConnector'

For some reason visual studio will not compile the below code. I am on .NET 6 WPF. Has there been any breaking changes that doesn't allow me to extend System.W

Why is it valid to pass static types in and out of interface methods in C#?

I noticed that the following code seems to compile just fine, when I would've expected multiple errors: public interface ITest { Math Foo(MathF x, ref Conso

Create an expression dynamically to sort Linq to Entities ascending/descending based on a dynamically provided property name

Here is what I am trying to do. I have done a few simple expressions, but this one is a little too much for me right now. public static Expression<Func&l

How to use AutoBogus/Bogus to generate a constant value for a property based on its type?

I'm trying to generate objects of a class whereby its value should reflect its type. For example, if its property's type is a string, then that property's value

Complicated Json to C# Object Deserialize with classes

I am trying to deserialize a json response I get from a web call. I have it 90 percent figured out. The only part I am having a hard time figuring out is there

Complicated Json to C# Object Deserialize with classes

I am trying to deserialize a json response I get from a web call. I have it 90 percent figured out. The only part I am having a hard time figuring out is there

Sustainsys.Saml2 - Saml2/Acs endpoint returns Error 500 when processing SSO

I've created a C# ASP .Net Core 6.0 application, and trying to implement SSO with Azure AD using Sustainsys.Saml2, specifically with the Sustainsys.Saml2.AspNet

WinSCP .net library - Protocol.Ftp - System.FormatException Invalid length for a Base-64 char array or string

I have SFTP working, just to trying to add Ftp to our existing program. Is SshHostKeyFingerprint recommended for Ftp protocol the same as with SFtp? If needed,

HttpWebRequest.GetResponse() throwing multiple exceptions

I have this static class used for sending Http POST requests to my webserver via the HttpWebRequest libraries: using Newtonsoft.Json; using System; using System

Copy Text from one browser window to another programmatically

I have this two browser windows, which are opened for each order on an apparel list with about 18K orders. I have to manually copy the values from the first win

Foreign key created in shadow and appending random 1 to column name - ASP:NET EF Core

When I migrate my new models and data I get the following error for multiple foreign keys: The foreign key property 'InsurancePolicy.InsuranceSubjectID1' was c

How to change table name depends on User in EnityFramework?

I would like to change reference to db table depends on model, which would be send by user. For example: I have 3 types (A,B,C) of devices and 3 tables (tableA,

How to get current folder from a C# static class on Unity

I imported a Unity package where several Editor scripts depend on a RootPath property from a static class: public static class EditorUtils { public static s

Running EF core command 'update database' in .NET core 2.2 app is applying an old migration instead of the current one

I'm working on a .NET Core version 2.2 app (with Angular), which uses EF Core (code first). It's been an existing project for a few years, I've cloned it about

How to access fields or controls of Custom View from another Page's XAML in Xamarin Forms?

I am having a Custom Control, I want to add some elements from the Page in which it will be used. Just like this <Label> <Label.Text>First Name&

How to prepare Data-Set for main thread in an additional thread and stay threadsafe?

Description: (Following is only a low level description) Assume you have a List of automates, one of people and one of tasks. The corresponding Data comes from

user name and password popup coming for windows authentication in IIS

Details: I have hosted internal application on IIS 10. One of functionality requirement is open the one of the form to external users (out of our organization).

SAP Gui Scripting | .NET | Start transaction with parameters

I have the following script, which allows me to to control the SAP Gui with .NET (C#) SapROTWr.CSapROTWrapper sapROT = new SapROTWr.CSapROTWrapper(); object obj

LINQ script class throwing TaskCanceledException Error

I am working on .NET CORE 6 application along with Entity Framework CORE 7. I have class where I have written LINQ script. This is async method. I am not sure w