Category "c++sharp"

Get Windows NT Login From Azure AD msal

I am working on API that is secured using Azure AD. Is there a way to get the Windows NT login from claims? Example. jDelaCruz

Create a site term column with graph API

I'm trying to add a new column to a site using MS Graph API. I followed the docs, which shows a Text column example, and that works. When I try to add a Term co

Could not load file or assembly 'NLog.Web.AspNetCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c'

I'm upgrading my solution from .NET 5 to .NET 6 and getting the error at runtime Unhandled exception. System.IO.FileNotFoundException: Could not load file or a

Xamarin.Forms: editing (in VS) custom control's property value at runtime in XAML doesn't cause any updates

I have a custom control in Xamarin.Forms app that's described via XAML. For example, CustomControl.xaml: <ContentView xmlns="http://xamarin.com/schemas/2014/

How to deal with IEnumerables/Arrays/Collections in Fluxor State?

I'm currently trying to implement Fluxor for my Blazor WASM app and all the instructions/tutorials I found recommended something like this example for the Store

Description: The process was terminated due to an unhandled exception. Exception Info: System.CannotUnloadAppDomainException

After a user closed the application. If the user have not had a reboot. Next time when this user try to open the application will have an error : The * applicat

Description: The process was terminated due to an unhandled exception. Exception Info: System.CannotUnloadAppDomainException

After a user closed the application. If the user have not had a reboot. Next time when this user try to open the application will have an error : The * applicat

Improve insert performance for a C# application into SQL database

I need to improve the performance of my insert in my C# application. I first go out and get data from a view. Then I go through a FOREACH loop to insert into a

C# - Theard.Sleep skips over lines of code

I'm working on a small C# Windows Form application. In this application, I've used Thread.Sleep to wait on the current screen before moving to the next one. The

ReactiveUi: How can I replace the default IViewLocator when using AutoFac?

High! I am trying to replace the default IViewLocator of ReactiveUi/Splat in WPF. I am using AutoFac as container. My goal is very simple: ReactiveUi/Splat shou

How to export a DevExpress PivotGridControl to Excel

I have a button click that attempts to export a DevExpress pivot grid to an excel file however when you open the file in excel or google sheets it zeroes some o

Why does validation in ASP.NET Core Razor Pages doesn't accept empty inputs?

I am learning how to code in ASP.NET Core Razor Pages and am working on validation right now. Both in client side and server side validation no input is allowed

How to focus textbox and send ENTER key using child handle?

How to focus and send 'ENTER' key to child control's textbox? code: //Get textbox child handle IntPtr TextboxChild = FindWindow("Edit", "mulatetwindow"); //S

Is it possible to convert Unicode ASCII bytes[ ] to actual strings(Hi)

Is it possible to convert following bytes[] to a string as "Hi". Currently it is showing as "H�" //"Hi" - is actual message byte[] bytes = {72,175}; stri

Google.Drive.Api Oauth 2 Credientials in Xamarin android application

I am trying to read a file from google drive using my xamarin android application using google.drive.api, the latter requests Google Oauth2 ID credentials for A

Blazor Razor Class Library (RCL) No CSS Intellisense

I have a razor class library (RCL) that contains all the pages from my blazor application. The CSS intellisense does not seem to work within the RCL unless I ch

Is it possible to debug a C# console application using git bash?

I am using Visual Studio Community 2022, and I was wondering if you could use another CLI to run/debug a c# console application. (I can't use cmd.exe or powersh

How to apply seperation in one service for multiple tasks?

I have a service method that does so many things. public Result DoSomething(){ var queryResult = service.GetResult(); SaveResultToRedis(queryResult

Newtonsoft.Json.JsonSerializationException Message=Cannot deserialize the current JSON object

here the ex Newtonsoft.Json.JsonSerializationException Message=Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collection

How can I query for keyboard input in a GUI app without using a pre-built input form?

In a console app, I could put Console.ReadKey() in an infinite loop, and I have what I wanted. But how can I do that in a GUI app? Let's say I'm using the new M