Category "c++sharp"

HangFire running each job separately

I am using HangFire to run the job. I have a method that retrieve data from more than 50 sql servers. I want to use HangFire to run each location separately by

ERROR : Input String was not in a correct format when calculating multiple columns in DATAGRIDVIEW

I want to calculate the value of 3 cells in DATAGRIDVIEW the calculation : SDI = ((result - mean ) / SD) I tried the following code : private void dgvResult_Cel

DllNotFoundException libgurobi95 when invoking lambda function on AWS

I have a lambda function that uses the OPTANO.Modeling.Gurobi NuGet package (and OPTANO.Modeling). The code works perfectly when I run it locally using the Mock

array of integer input from user

I have a question related to filling it in an array. In the program I have to write I am given "input from user: different number of numbers separated by space

Unable to create an object of type 'AppDbContext'. asp.net 6/mvc

MY ERROR: ı want to "add-migration" but ı cannot also ı use web app and .NET 6.0 Unable to create an object of type 'AppDbContext'. For the diffe

Error when replacing .ToList() calls in with an IQueryable

I'm trying to improve the efficiency of this method and I can't figure out why my "solution" is throwing an error. Here's the existing and working, albeit slow,

How to use a generic HostBuilder in a UWP application

In my WPF applications I use a generic HostBuilder in this way: public partial class App : Application { private readonly IHost _host; public App()

Remove a BlurEffect from control WPF C#

I have a border containing a textblock, which has a blur effect applied to it: <Border Grid.Row="2"> <Border.Effect> <BlurEffect Radi

Unity gyroscope reads only two axes

I want to make it so that the gyroscope will only change the x and y-axes of an object. There is code for one axis and for three axes (mostly used), but I could

How to develop ms excel ribbon functions

how to develop ms excel ribbon functionality not COM add-ins or VSTO add-ins. Using visual studio Thank you I want to implement excel ribbon functions to valida

Google application credentials in azure app service (aspnet core web api)

So I am using Firebase SDK to send push notifications to my android clients. On local IIS this is how I have configured FirebaseSdk. In Startup.cs I have Fir

Implementing Azure Event Grid event handler in a Web API which subscribes to changes in Azure App Configuration

I am exploring various methods to get configuration data from Azure App Configuration and got most methods working however I am struggling to implement the Azur

Loading libzstd.dll in C# ASPNet Framework application

I'm upgrading the mongo driver to an ASPNet Framework (4.8) application from 2.7.3 to the latest, 2.15.0. I just use VS to upgrade the nuget packages, nothing

Unity Build Error: "System.UnauthorizedAccessException: Access to the path 'C:\Users\..\lib_burst_generated.txt' is denied."

I have a project in Unity which was built with version 2019.4.13f1. I opened it with version 2021.2.16f1 and since then when I try to build the project in an ap

C# mock unit test GraphServiceClient

I have a problem writing my unit test in C# using Moq and xUnit. In my service I have the following code: var options = new TokenCredentialOptions { Authori

Cant Update Image in a quick succession

I'm doing a simple code to update profile pics, by saving uploaded file into a folder and processing its required versions using Bitmap. Issue is that i cant ch

How do i properly bind the IsPressed property to my command parameter?

I've made a custom button to bind a command to a (custom, routed) IsPressedChanged event so that the command is executed both when the button is pressed AND whe

FileZip compression with cancellation

How to cancel long running compression task and release all resources when using ZipFile.CreateFromDirectory or other ZipFile compression methods in C#. Couldn'

Is there a way to generate XML-style comments for all methods/classes in project?

When using an IDE like Visual Studio or Rider for C#, writing triple-slashes auto-completes to an XML-style comment, along with fields for input and output (whe

Why does my OpenGL ES app crash on glDrawElements?

I have developed a mobile game with OpenGL ES 3 on Xamarin (Which uses OpenTK). It's running fine on most devices, but crashes on some devices (HUAWEI Y5 lite).