54,102 questions with Developer technologies-related tags

Sort by: Updated
0 answers

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#
asked Jul 31, 2025, 11:42 PM
Ballentine, Casey 0 Reputation points
1 answer

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#
asked Jul 30, 2025, 3:02 PM
Brown, Matt 126 Reputation points
edited a comment Jul 31, 2025, 10:22 PM
Bruce (SqlWork.com) 78,926 Reputation points Volunteer Moderator
1 answer

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
asked Dec 31, 2020, 4:18 PM
VAer-4038 771 Reputation points
commented Jul 31, 2025, 10:14 PM
John G 0 Reputation points
3 answers

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++
asked Jul 31, 2025, 12:37 AM
CDev-8220 405 Reputation points
answered Jul 31, 2025, 7:43 PM
Bruce (SqlWork.com) 78,926 Reputation points Volunteer Moderator
1 answer

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
asked Jul 29, 2025, 9:55 PM
Bryan Kelly 516 Reputation points
edited an answer Jul 31, 2025, 7:06 PM
Bryan Kelly 516 Reputation points
3 answers One of the answers was accepted by the question author.

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#
asked Sep 17, 2024, 1:35 PM
Jim Copeland 20 Reputation points
commented Jul 31, 2025, 6:42 PM
Bruce (SqlWork.com) 78,926 Reputation points Volunteer Moderator
0 answers

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
asked Jul 31, 2025, 5:55 PM
was 0 Reputation points
2 answers

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#
asked Jun 30, 2025, 7:50 PM
Chuck Krutsinger 1 Reputation point
commented Jul 31, 2025, 5:37 PM
Bruce (SqlWork.com) 78,926 Reputation points Volunteer Moderator
0 answers

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
asked Jul 15, 2025, 11:06 AM
Milan Jadav 0 Reputation points
edited a comment Jul 31, 2025, 4:52 PM
saadhaffar025 15 Reputation points
1 answer

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
asked Jul 29, 2025, 5:12 AM
Prathamesh Shende 511 Reputation points
edited an answer Jul 31, 2025, 4:26 PM
Bruce (SqlWork.com) 78,926 Reputation points Volunteer Moderator
4 answers

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
asked Jul 12, 2025, 12:36 PM
rajesh yadav 231 Reputation points
edited an answer Jul 31, 2025, 4:16 PM
Bruce (SqlWork.com) 78,926 Reputation points Volunteer Moderator
2 answers

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
asked Jul 31, 2025, 12:10 PM
rajesh yadav 231 Reputation points
answered Jul 31, 2025, 4:06 PM
Bruce (SqlWork.com) 78,926 Reputation points Volunteer Moderator
0 answers

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
asked Jul 31, 2025, 4:03 PM
Gumaro Fuentes Soto 0 Reputation points
0 answers

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
asked Mar 22, 2023, 7:39 AM
Papai Das 5 Reputation points
commented Jul 31, 2025, 3:18 PM
Rob Caplan - MSFT 6,112 Reputation points Microsoft Employee Moderator
1 answer One of the answers was accepted by the question author.

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
asked Jul 28, 2025, 4:12 PM
Smith, Jeffery Thomas (Jeff) 156 Reputation points
accepted Jul 31, 2025, 2:10 PM
Smith, Jeffery Thomas (Jeff) 156 Reputation points
1 answer One of the answers was accepted by the question author.

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
asked Nov 22, 2023, 6:56 AM
Malcolm Crowe 20 Reputation points
commented Jul 31, 2025, 2:07 PM
Manual Franco 0 Reputation points
3 answers

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
asked Apr 25, 2025, 5:16 PM
James Newlin 20 Reputation points
answered Jul 31, 2025, 2:01 PM
Társis Francke Ferreira 15 Reputation points
3 answers

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
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,992 questions
Developer technologies | C#
asked Mar 7, 2024, 7:21 PM
Lewis, Leon 0 Reputation points
edited an answer Jul 31, 2025, 10:50 AM
RNareddy 2,505 Reputation points Microsoft External Staff Moderator
1 answer

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
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,460 questions
Developer technologies | C++
asked Mar 2, 2024, 12:32 AM
Robyn To 0 Reputation points
edited a comment Jul 31, 2025, 10:45 AM
RNareddy 2,505 Reputation points Microsoft External Staff Moderator
2 answers

OAuth implementation in web api

Hi Community members, How can I create oauth in web api where validation is not in cloud

Developer technologies | ASP.NET | ASP.NET API
asked Mar 6, 2025, 3:38 PM
90036475 0 Reputation points
commented Jul 31, 2025, 10:29 AM
Raymond Huynh (WICLOUD CORPORATION) 545 Reputation points Microsoft External Staff