Category "c++sharp"

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

How to change a key value pair within a nested json structure C#

Hello everyone and thanks for helping me in advance. The following question might sound silly but I'm a beginner about it. I have the following json which comes

Can i "add module" to unity editor that download without unity hub?

I downloaded unity editor from unity download archive but now i need the android build support module "also known as android SDK/NDK tools" but the "add module"

PXImport not working properly in some screens

I tried inserting the upload button on the screens below but failed to achieved the desired result. I have enabled the Allow Upload mode in Customization Projec

Why am I getting this error/warning whenever I try to use MediaPicker.PickPhotoAsync?

Whenever I use the following code in order to select a photo from my Library using my iOS simulator I get an error/warning. The image is then selected and shown