Category "c++sharp"

404 error after scaffolding identity library of an ASP.NET Core 6 MVC project

I am using .NET 6. Every time I scaffold Identity, the application stops working. My Startup class is like this: using BulkBook.Data.Data; using BulkBook.Data.R

In Unity, how do you create a collection of pointers?

Is it possible to create a list or array of pointers in C#? I want to have a list of T* rather than use IntPtr because i am forever having to type Marshal Ptr T

How can i get Salesforce soql query results to a datatable?

I have a soql query: SELECT Amount, Id, Name, (SELECT Quantity, ListPrice, PriceBookEntry.UnitPrice, PricebookEntry.Name, PricebookEntry.product2.Family FROM

How to change a property of a specific element in a DataTemplate from code behind?

I have a bug in my code. FindChild<T>() is searching a Element which is named "PasswordTextBox" but because "PasswordTextBox" is in the DataTemplate there

compare user draw to a bitmap defined

I'm trying to build an app like StrokePlus using bitmap to be able to check between two images if they're the same visually. The user can draw on the whole scre

Why does commandTimeout raise SqlError in IDbConnection.Execute?

I have an IDbConnection to a SQL server and two stored procedures I would like to start from a console app using the Execute method on the open connection. When

How to get navigation properties with [Owned] attribute Tracked in Entity Framework Core

I got EF tracking turned off by default on my project. I got a DB model class UserModel: public class UserModel : BaseAdminDbModel { [Key] p

How Do I Get the Assigned Drive Letter When Mounting an ISO with WMI in C#?

This is the code that I am using to mount the ISO // With help of WMICodeCreator ManagementObject mo = new ManagementObject("root\\Microsoft\\Windows\\Storage",

Do a Raycast after Raycast-positioned object

I have a code that allows to position an object onto the other object by Raycast. Obviously, I am using Mesh Collider so everything works fine. Ray ray = new Ra

Selenium headless chrome with proxy authentication

I'm working on automation of Headless Chrome WebDriver (100.0.48.96.60) using Selenium (4.1.0) and C# (.Net 5.0/Console application). I want to add Proxy Authen

How do I Move My Mouse Position With a Scrollbar?

Video link I have a lot of dots that move, depending on the mouse position. I would like to change it so that it moves with the scrollbar value. How could I imp

Save an array to Windows.Storage.ApplicationData.Current.LocalSettings (C# + WinUI3)

I just started learning WinUI 3 and I am currently trying to make a little todo app. I want to save the data of the lists so I can keep it even if the applicati

How to open a C# call stack (string) in Visual Studio 2019 Professional?

OK, suppose I have a C# string for a callstack for a runtime Exception (copied to the clipboard from Azure Application Insights - but it could be from everywher

Modifying WebHook Message With Discord.Net c#

using (DiscordWebhookClient client = new DiscordWebhookClient(WEBHOOK_URL)) { ulong z = 42342340290226; client.ModifyMessageAsync(z);//Not sure how I wo

I want to refactor my loading game script

I wanted to load my save files in Start() but I got an error that there is no path to load file because the path is created in Start() so I changed loading plac

How can I get the the Microsoft Access Database Application Title via C#

I need to get the Application Title from an access database via C#. I have seen some samples using Office VBA: I.E: https://docs.microsoft.com/en-us/office/v

Is there any way to embed a class Element into a class Element in Entity Framework?

This is my code: namespace MyProject.Models.Database { public class Recipe { public Guid Id { get; set; } = Guid.NewGuid(); public strin

Authentication Error while trying to get the DHL Interface to run

I've been trying to get the DHL interface up and running for some time now. Unfortunately, there is already a lack of authentication. Request: client_id == AppI

How to perform a correct binding using wpf MVVM

I'm working on a bank application in c# wpf using the MVVM pattern which allows a manager in charge of a branch to display the data of one of the customers of t

Regex that gets the last set of numbers from a string

"abc_d1.txt" should get 0 "abc_d1_2.txt" should get 2 "abc_d1_14.txt" should get 14 "abc_d12_x2_156.txt" should get 156 This is what I've done so far, but I am