Category "c++sharp"

Asp.Net Core http requests shows Headers.ContentLength

I am doing an http get call and I can see that Headers.ContentLength always returns null whereas I can see that in fiddler a value: This is my code string url =

How to execute Set-GPPermissions command without confirmation prompt

Set-GPPermissions -Guid <Guid> -TargetName "Authenticated Users" -PermissionLevel None -TargetType Group -Replace -Confirm:$false Used to work fine, but

System.IO.FileNotFoundException: 'Could not load file or assembly

I am beginner in C# and trying to add one DLL in project but getting the below error when running the project : System.IO.FileNotFoundException: 'Could not loa

Upload file uploaded via HTTP to ASP.NET further to FTP server in C#

Upload form: <form asp-action="Upload" asp-controller="Uploads" enctype="multipart/form-data"> <input type="file" name="file" maxlength="64" /> <

An exception was thrown while deserializing the token.The antiforgery token could not be decrypted in .Net Core 2.2 application

I am getting the error in my log. I spent most of my day finding the solution but could not find the one which meets my requirement. Here is the log error seve

ReactiveUI Bind an Enum Property to a Color Property in View Model

I am starting my first Reactive UI Project. I have an enum, and I want to map a specific color to a specific enum value. How could I accomplish this using React

How to copy file from Azure fileshare and zip it and move to some other place?

I have been using method in which I am taking data in bytes then creating zip file and then uploading it back to required location but I need something which is

How to find or count the duplicate in multidimensional array in c# [closed]

I am creating a 2d (3 * 3) array in c# which has to count or find the duplicate value int[,] arr = new int[3, 3] { {1, 2, 6}, {4, 1, 5}

C# Windows Messages in Console Application?

I need to use IPC to receive messages from another process. Currently I am using WPF application to receive messages using WindowsMessages but I am wondering if

Share Data Between Threads when using SpecFlow + SpecRunner

I am working on a test suit implementation which uses the SpecFlow + SpecRunner and XUnit. and we are trying to do parallel test execution and i would like to k

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