How to Store AES Encryption Keys Securely in Windows Application?
Hello I am doing AES encryption in an application I developed in Windows. For this, I need to store Key and IV values securely. What method is used for this? If these values are not present at the start of the application, I am thinking of…
How Can I fix lParam pointer Error in Pinvoke/Win32 ?
Hi there, currently I need to dig up some Win32 code which is a part of my project, Actually, it's a part of my WPF application where access Win32 APIs using the traditional Pinvoke method. But Currently I facing some error at lParam pointer…
How can I upload x86 and x64 directories to github?
HelloBa I uploaded my project to github. However, I created a Lib folder in the directory where the project file is located. There are x86 and x64 folders in it. This directory is not uploaded to the repository. How can I include this directory and its…
Explain The C# Code
using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { Console.WriteLine("Hello World"); var nums = new List
Unable to make full screen splash in .NET MAUI
How can I make splash to display in full screen instead of just at the center of the mobile screen in .NET MAUI? I've tried different base sizes, but not working. Target android version up-to 13. <ItemGroup> <MauiSplashScreen…
Problem with DisableProcessing()
I'm trying to prevent a control from being rendered in Wpf because it takes too long to process the items. Since I haven't been able to achieve this, I'm now trying to prevent the screen Form from being rendered. After doing…
how to return value from popup table to the C# asp.net code
Hi, On clicking a button on UI, we have to show a dialog or Popup Table on the center of the screen asking user to enter integer value of area(Mandatory) when one condition is met, then user clicks Ok(which has captureAreaVal() function in my script as…
DateTime.ParseExact returns today if date string and format are set to "General"
During troubleshooting, I came across this weird behaviour which occurs when parsing text to create a DateTime object in C# (in .Net Core 8.0). Can anybody explain why the following statements return today's date when I would have expected them to…
Connection Manager not getting Iniialized
Hi, I'm currently writing a C# code in Script Component which is making a connection to MSSQL DB using ADO.NET Connection Manager. But it returns a NullReferenceException every time when I run it. I have tried the sample code as mentioned in the link …
Unable to fetch some group properties via C# SDK
I am trying to fetch groups via graph api and get resourceBehaviorOptions and resourceProvisioningOptions properties. Eventhough these properties exist in the direct graph api response, I am unable to find them when I use c# graph SDK. I can see these…
All Toolbox Options Greyed in Visual Studio 2022
I have recently upgraded my WinForm C# application from .Net 4.7.x to .Net 6 I wish to make a change to one of the Forms, however when I try to add any control to any form, I find that all options are greyed out in the Toolbox, so I can modify any of the…
How to get current User outside of Controller in another layer
In ASP.NET Core 6, I need to get the current user in service layer This is code: public class ServiceModel { private readonly IHttpContextAccessor accessor; public ServiceModel(IHttpContextAccessor accessor) { this.accessor =…
the sample console app from the emulator to create a database is throwing error
Hello, I'm downloaded and trying to execute the sample console app for database creation for Azure cosmos emulator. However it throwing me the below error. IOException: Unable to read data from the transport connection: The I/O operation has been…
using readAllBytes throws "file not accessible error"
I trying to read an encrypted file using the following: and getting access not allowed error. // would prefer to use the following instead of picker" // AuthFile = @"C:\vbscripts\pid.txt"; // if…
c# UWP resource directory DataTemplate with x:DataType not working
HI, using VS2022 UWP c# I am trying to put a DataTemplate into a ResourceDictionary using a x:DataType I get a compile error Severity Code Description Project File Line Suppression State Error The XAML Binary Format (XBF) generator reported syntax…
Graph API and Announcing mandatory multi-factor authentication for Azure sign-in
How to avoid having problems with: getting the presence of Teams user using graph api. In C# by using access token for webchat. I do not want to get effected by the MFA forcing. In other words: How to bypass MFA for multi-tenant azure app using graph…
when get data from procedure exist on PostgreSQL it show not exist although it exist?
I create stored procedure on PostgreSQL as below CREATE OR REPLACE PROCEDURE app_sec."app_perm_sp_pkg$get_all_tenants"( IN p_tenant_cur refcursor, OUT p_status integer, OUT p_status_desc text) I try to get data by call sp from PostgreSQL…
Read and save data from C# app onto SharePoint
For security reasons, our business is required to maintain a visitor control log to track when external guests enter and leave the premises. When our infrastructure used to have on-prem file/storage servers, I had written a simple app that enabled the…
Call backgroundWorker
I creating simple permutation code using c# app. Now I want to display a simple progressbar. Now if the program execute I want to check if the background is busy else I call the backgroundworker and show how many percent remaining. The code below I call…
I got two error in the MAUI project when I try to run the project
Below I attached the error message and screenshot: Severity Code Description Project File Line Suppression State Error APPX0002 Task 'WinAppSdkGenerateAppxPackageRecipe' failed. The specified module could not be…