Category "c++sharp"

Script Node.js from C# in vscode - Edge.js - Unexpected token

I successfully used vs code to write the sample program to script Node.js from C#. I use the following code block directly from https://github.com/tjanczuk/edge

Why does not Serilog selflog work in this simple windows service?

I am unable to get Serilog selflog working in my .NET Core 6.0 C# Windows Service. This is how the Main looks like : public static void Main(string[] args)

Can't connect to Redis Stack from ASP.NET application inside a container

I have an asp.net webApi application and using redis stack as the main database. I was able to connect to the database and perform operations normally till I ma

How properly use binding in wpf?

Let say I got app that is going to read data from database. So in c# i got class like this: public class Employee { public string Name { get; set; } public

The most efficient way to track allowed object movement in Unity 2D for puzzle making

Okay so I've rolled this around in my brain, and while I would probably know what code to use if I could figure it out, I just can't decide what the best way to

How to use REST Api or CSOM in .NET 6 client app for Sharepoint on premise

In my SPA with ASP.NET Core backend, I want to create UI for uploading files that will be stored in Sharepoint 2016 hosted on premise. I was just about to use C

azure function check if message received after X minutes

I am completely new to Azure and I have a function which is triggered by a service bus queue, the message is a JSON string. Now I want to check if after 3 minut

C# Generic foreach over IEnumerable of unknown type

I'm trying to write a generic static function that takes an instance of an IEnumerable class, the name of a property of and a string separator. It will loop th

Azure.Identity.VisualStudioCredential with IIS appPoolIdentity

I'm in my way to use Always Encrypted on an existing .Net Framework 4.8 WebApi codebase. The solutions runs locally (for development) on IIS on ApplicationPoolI

How to refresh dependent column in WPF datagrid when another column is changed?

So I got a WPF datagrid which is created like this: <DataGrid x:Name="columns" Grid.Row="1" HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch

EF Core 6 with Pomelo EntityFrameworkCore MySql fails to create database

I am using EF Core 6 with Pomelo.EntityFrameworkCore.MySql and code first. I have the following code in my connection string. public sealed partial class MyDbCo

Scanning all documents in feeder and working with ImageFile

I want to scan all documents in a feeder and save each Image in a List of Images. I have the following Setup: A C# Console Application with .NET6.0 Added Refere

How do i get the access token from the reques

I'm using account linking on amazon and I've managed to configure it to send my user's acessToken by a Json. I looked in the amazon documentation and it says th

Ajax call doesn't pass object to controller

I am trying to pass a string to an IActionResult function in an asp.net core 3.1 controller. Ajax: function CreateApprover() { const input = { Plant

How do I call the injected dependency 'level' and use it as a condition in an IF statement? C#

An object reference is required for the non-static field, method, or property 'Form1.level' public Form1( int level ) { this.level = level; playtune()

C# create crosshair overlay for video game

(I know this is very bootleg) I've currently made a FORM that acts as an overlay and I'm using panels as the crosshair however whenever I try to put the panels

Instaniate objects on Raycast

So, I want the code to instantiate clone objects onto the new Raycast points if the int i<Random.Range I have a code that allows to position an object onto t

Unity fill array Gameobject from another script

I have been follow video from youtube for creating custom tabs. But in condition Iam using dynamic panel, and then in script has to fill panel to array Gameobje

I would like to pass the values that i have in my view to a action

I'm developing a school project using a html.beginform to when i click in a button i go to a diferent Action, but i need to pass the values that i have inside m

EFCore navigational properties are not mapped

I have a model Contact with three navigational properties of type Place but when I make a request in to database ids are filled but navigational properties are