Category "c++sharp"

Send rest request with attached pfx certificate

I'm trying to consume an API that uses a certificate as an authentication method. I tried two methods but i get the same issue (The request was aborted: Unable

Infragistics Selected Node

Would like to know if I am the error or I have encountered a bug. I have a grid with parents and children. I have made buttons to move the nodes from top to bot

Blazor WebAssembly InvalidCastException when running Published version on IIS

I have a Blazor WebAssembly application that works fine when debugging, but throws an exception when running on IIS (Published): blazor.webassembly.js:1 crit: M

How to fire bullets in Unity 2D?

I'm currently working on a platform 2D game. So far made like 2 levels and I'm currently working on a boss level. I used a free model blue Sci-Fi type of gun, a

I have a Unity WebGL game uploaded. Is it possible to manually create a persistent directory in /idbfs inside IndexedDB?

In the Unity project, I attached a script in an empty game object, and the code is demonstrated below: Is it possible to create a persistent directory myself? p

how to find a position of an Object from World Space and convert to Canvas UI with render mode : Screen Space - Camera in Unity 2d?

I am working in a Game which is pretty similar to Mario. So when player touches the coin object in World Space, I need to animate by moving that coin object to

Cannot use PhotoCapture by importing 'UnityEngine.Windows.WebCam' by can access UnityEngine.Windows.WebCam.PhotoCapture in Unity

I'm using Unity 2019.4.26f1 (I'm working on a legacy project for my company) and I'm trying to capture images from a Hololens 2 using this official Unity tutori

Add/Delete Item in real-time from ListView (C# MVVM WPF)

I have a ListView with an ObservableCollection. The class User has a List with Groups. I have another ListView which shows the Groups of the selected User. Now

slow performance of outlook addin to get contact item for distribution list

I have the following code it takes lot of time to retrieve contact items from the distribution list, exchange server. Is there anything can be done to tune it s

Program triggered by msi can not create xml files on network volume

I have a HMI program that uses xml files for some machine specific settings. Theese xml files are stored on the machine itself while the HMI is running on a com

Using pscp in C# for file transfer between Windows and Linux through a post request

I have been trying to transfer files through a C# code, but it doesn't seem to work. Although the following line in command prompt works fine. "C:\Program Files

Alternative for c# .Last

Currently I am using .Last to find the last number in a database and then assign the incoming information a number that is plus one higher the last number. var

WPF bind list box Selected item into textbox

I'm trying to put any selected item's name in my list box in the textbox next to it. But I've got trouble doing so. Here's a little bit of my code: <Doc

Getting timeout error - increase the send timeout value on binding

WCF service returns timeout error as below. The request channel timed out while waiting for a reply after XX:XX: XX increases the send timeout value on binding.

error MSB4019: The imported project "C:\Program Files\dotnet\sdk\1.0.3\Microsoft\Portable\v5.0\Microsoft.Portable.CSharp.targets" was not found

I have .net core test project. When I build it in visual studio or use the TestManager it build without a problem. But when I execute the following command on t

Why is my .Net app only using single NUMA node?

I have a server with 2 NUMA node with 16 CPUs each. I can see all the 32 CPUs in task manager, first 16 (NUMA node 1) in the first 2 rows and the next 16 (NUMA

Check if todays date exists in a table with Entity Framework

I have a database table with columns of type dateTime. Now I need to see if there already is a row with today's date, but I don't know how to compare the column

.net core, testing service application. After leaving worker loop, program not stopping until console window closed. Is this normal behaviour?

I'm testing a .net core 6 multi-threaded service worker app that processes batches of data rows and tables on sql server. I use serilog to log to file only. Whe

How to Open Outlook file attachment directly not saving it? ( with C# VSTO)

I need to open mail file attachment directly from mail. Let say I have .txt file. I have already attached it to my mail. But now I need to open it, change some

How do you copy RTF attachments into a new mailitem?

I am working with C# Outlook Object Model (with a little bit of C++ extended MAPI for decoding TNEF for RTF mails) and am trying to find a way to get the attach