Category "c++sharp"

Move Zip file from Local system to Remote server system(Static IP IIS server)

I am dynamically creating dot net c# console application on my local system (i'm using - this code sourcePath = @"D:\temp\DirectoryToZip.zip"; destFile="@"\19

HTTP Endpoint not working with Elsa ERR_CONNECTION_REFUSED

I tried creating a web app in .Net standard 6.0 and added a simple workflow for HTTP Endpoint requests & responses. but the server URL returning ERR_CONNECT

C# Autofac ParameterFilterAttribute hangs when using Task.Run()

I have 3 classes: Apple1, Apple2, and Apple3. Apple2 depends on Apple1 and Apple3 depends on Apple2 like follows. public class Apple1 { } public class Apple2 {

Get Form1 properties from class

I want to be able to get Form1 properties from within a class. Properties such as Width, Left, WindowState, and so on. So that I can then do this in the class:

EF Core upsert child entities upon parent entity save

I have a DDD aggregate with User as root and Appointment as the child records. I want, when I save a User in my repository, the existing child appointments of t

c# riot RSO multifactor authentication

I'm following the authentication flow here, which works perfectly, but it doesn't include doing multifactor authentication, which riot added recently using

Do I need to add or rule or add Redis to VNet in Azure?

I enabled VNet integration on an Azure App Service and now when I attempt to connect to Redis, I receive this error message. However, I can connect without issu

Syncfunsio xslio exports null instead of blank in excel in C#

I am using Syncfusion library to generate an excel report. I referred syncfusion to generate the report using template makers. The data is correctly exported in

Best way to store RSA key and use it in .Net core(looking for a cross-platform solution)

I'm currently using this link to store my RSA key in windows Key Container (machine-level) and it works fine, but I'm looking for a way that works for both Linu

Can I output a raw HTML/CSS/JS file using Razor/Razor engine

I am trying to build a character sheet for roll20. While I understand I can use other systems for this, I am trying to learn C# and I figured doing this using C

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