Category "c++sharp"

Unauthorized when attempting to post tweet api v1 (C#)

Morning all, I've not posted on SO for quite some time, but I need to ask the question, I’ve spent a day and a half trying to get this to work - it’

Passing multiple parameters in c# windows phone app using Frame.Navigate(typeof(Page2))

I am creating a basic MCQ app where 2 MCQ's along with options are showed on a single page and the submit button shows the results on the second page in a textb

How to write Repository method for .ThenInclude in EF Core 2

I'm trying to write a repository method for Entity Framework Core 2.0 that can handle returning child collections of properties using .ThenInclude, but I'm havi

Akka.net restart actor system termination on node quarentined

We are developing a cluster with Akka.net v1.4.38 on we have seed nodes that communicate with a external system using Akka.IO.TCP, and multiple client nodes tha

Client is unauthorized to retrieve access tokens using this method Gmail API C#

I am getting the following error when i tried to authorize gmail api using service account "Client is unauthorized to retrieve access tokens using this meth

.Net Core unable to use Bitmap

I am working on a Web Service using .Net Core 2.1. I have a byte array containing all pixels values (in grey scale), a width, a height. I want to create a bitm

What are all the possible expression keys used in Outlook .find .restrict method?

I can't come across the full list anywhere, it makes life creating tools for outlook particularly painfull. I am creating series of tools in WPF integrating wi

What is the difference between Publish methods provided in the Visual Studio?

When I click on the Publish method following options show up: What is the significance of each method?

Unsubscribing from event when object is disposed

What I'm trying to figure out is how to declaratively avoid the Object reference not set to an instance of an object exception thrown when disposing of subscrip

Stop Parallel.ForEachAsync

In C#, I am interested in stopping a Parallel.ForEachAsync loop (considering the differences between Stop and Break); for Parallel.ForEach I can do the followin

Is there a way to dynamically change the text of a textBox in Visual Studio with C# so that the value is a sum of values from other textboxes?

I need to have a text box that dynamically changes as values in other text boxes are being changed, and the value (would be an integer converted to string) of t

Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk' specified could not be found

env: ➜ KBDCompileApp git:(dev) ✗ dotnet --info .NET Core SDK (reflecting any global.json): Version: 2.2.101 Commit: 236713b0b7 Runtime E

c# Process() does not run certain files when compiled in 32bit

This code works in a 64 Bit build but not in a 32 bit build. Is it possible to make it work in a 32 bit build? What am I doing wrong here? var p = new Process()

ASP.Net Core Web API ModelState unvalidated when Dictionary used in FromQuery

I have a GET endpoint which accepts a few parameters and a Dictionary in the Query. public IActionResult Get([FromQuery] RequiredFields required, [FromQuery] D

Sendkeys does not work for uploading a folder in selenium c# in headless mode

The code is working fine in normal mode and it silently uploads the entire folder yet when executed in headless mode it does nothing. Just execute the line and

Translation animation between views on xamarin.ios

I'm trying to develop on xamari.ios, the animation consists in the translation of the View, when the swipe gesture is detected, the animation follows the finger

.NET Core stop HostedService in the Integration test

I have .NET Core web API project, for some reasons, we created a background service in this project and start running the background service while the applicati

C# Winform Webbrowser not updating after document text update

Good Morning, I have a Web browser embedded within a C# winform. When loading the web-browser, it loads in a local file and displays the page with no issues. I

How to generate a cryptographically secure random integer within a range?

I have to generate a uniform, secure random integer within a given range for a program that generates passwords. Right now I use this : RNGCryptoServiceProvide

Is there a known algorithm for finding which K elements out of N elements have a sum that is closest to a whole number?

As a small example, say I have N=6 elements { 0.03, 0.25000039, 1.391, 500.1, 0.5000001, 1.75001 } and K=3 then the combination { 0.25000039, 0.5000001, 0.