How to import an externally-generated AES key into a TPM2 using TSS.NET
Using TSS.NET on Windows 11 with .Net Core 8.0, I've been trying to import an externally-generated (via System.Security.Cryptography) AES key into the TPM on my system. Devices in this system will use this same TPM-protected AES key to encrypt &…
Developer technologies | C#
Setting a Datetime to null
I'm reading in data from a table. For each field I check to see if the value is null and how to handle it. Some of the DateTime fields can be null, see a field for when a request has been reassigned. Here's the code I have below. public static DateTime?…
Developer technologies | C#
Visual Studio C#: How to duplicate a form without messing up?
Right Click: FormChild.cs, then paste. But I guess it will mess up something. How should I duplicate a form? I would like to duplicate a form then make a little adjustment, rather than creating a new form. Thanks.
Developer technologies | Windows Forms
What is the difference if any...?
I normally leave the framework headers arranged by the default template, and add all other headers after. For example, #include <vector> #include <algorithm> #include <iterator> follows #include "targetver.h" #define…
Developer technologies | C++
Faulty #define in Resource.h
Visual Studio 2022, Version 17.13.3, Windows 11, C++, MFC This problem has been present for, maybe, since the project was first started. I am rather new with user interfaces and Visual Studio. This project has, so far, 3 dialog classes with several…
Developer technologies | Visual Studio | Other
Is it possible to disable the new "top-level-statements" compiler configuration, which obfuscates and makes the language less transparent?
It makes no sense to have top-level statements - it would have been better to have the console app auto-generate the boiler-plate console app with a Main() method, the same way a boilerplate HTML file can be created quickly. The language was consistent…
Developer technologies | C#
Error APT 2144 in Android.NET Upgrade
I am upgrading a long-term Android.Xamarin project to an Android.NET project and trying to build the new .NET project in VS 2022. When building the app in Debug or Release mode I get the following error: APT 2144 invalid file path 'E:\Android…
Developer technologies | Visual Studio | Debugging
Why does DI container retain references to transient instances that are IDisposable?
https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection-guidelines#disposable-transient-services-captured-by-container says, "by default the DI container will hold onto these references, and not Dispose() of them until the…
Developer technologies | C#
Best way to publish WPF Application
Hey everyone, I'm working on a WPF desktop application (targeting .NET Framework) that uses a local MySQL database to store user data. I'm ready to distribute it to clients, but I’m not planning to host it on a web server. My only method of sharing will…
Developer technologies | Windows Presentation Foundation

Razor Component Return Html but not Data from api call until page refresh manually
Hello There, blazor Web App .net 8 Interactive Render Mode Auto. sometimes, page load in razor in blazor wasm side the html content appears correctly but api doesnt get called and data not get loaded but I can see in command prompt window ef core…
Developer technologies | .NET | Blazor

if Task.Run runs a task in async then why and when i should write async in Task.Run(async () => {})
q1) does Task.Run creast async task? (it is writen it runs on an other thread.) q2) if it does create async task then why and when we need Task.Run(async ()={}). pls explan with examples.
Developer technologies | ASP.NET | ASP.NET Core
does Task.FromResult block the main thread.
"The Result property is a blocking property. If you try to access it before its task is finished, the thread that's currently active is blocked until the task completes and the" Does this apply to Task.FromResult or any others methods also?
Developer technologies | ASP.NET | ASP.NET Core
Read excel file from personal Onedrive shared link
I am trying to read data from an excel file using pandas library for Python, but I cannot access Excel file from OneDrive shared link. Is there an easy way to do this? getting error: An error occurred: HTTP Error 401: Unauthorized
Developer technologies | Visual Studio | Other
APT2144 invalid file path error in file Xamarin.Android.Aapt2.targets. Error message gives a file path, which I can find using File Explorer. Help on error message says it can't be found
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\33.0.26\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144: invalid file path…
Developer technologies | .NET | .NET MAUI
WebRequest Migration to HTTPClient - Needing Feedback to Calling Function
Hello.. I have some code migrating from VS Studio 2013 to VS Studio 2022. Seeing that WebReq has been deprecated. Working to migrate to HTTPClient. Seems that httpclient is async only, I am guessing here... My overall code is written to call a RoboCall…
Developer technologies | VB
How do I stop VS saying External source and decompiling my code, when it has all the source files in the project?
I have a project with about 95 source files arranged in folders. Suddenly VS has decided that it needs to decompile source and marks has external sources. This is incorrect: all the sources are in the project folders. Then it stops me placing breakpoints…
Developer technologies | Visual Studio | Debugging
Kudu/SCM Failure on Azure Functions Flex Consumption - Deployment Blocked (404)
Update [Date - e.g., 2025-04-27]: We have since successfully migrated the application to the Classic Consumption plan, where Kudu/SCM is accessible and deployment works as expected (after resolving separate build/runtime issues detailed elsewhere).…
Developer technologies | .NET | .NET Runtime
Dotnet-isolated .net8 function app, 502 error on consumption plan
Hi all, I am running into a very odd error with a dotnet-isolated .net8 function app in consumption plan. In the logs I can see after some idle time, that there is a log entry for Stopping JobHost. If I then proceed to do an http call to my Http trigger…
Azure Functions
Developer technologies | C#
Crashing when accessing Key Vault from C++ application
I am following this guide to connect to my Key Vault from my C++ app: https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-security-keyvault-keys/4.1.0/index.html I am writing in C++ for Unreal. I am getting a consistent crash when trying to do…
Azure Key Vault
Developer technologies | C++
OAuth implementation in web api
Hi Community members, How can I create oauth in web api where validation is not in cloud