Can native Win32 exe show a WinUI3 Page?
I need to show a WinUI3 page from a native Win32 exe. I cannot make modifications to the Win32 exe. The architecture is like this: native Win32 .exe -> links to a C++/CLI dll with a known native C++ interface C++/CLI dll -> references and makes…
System.AccessViolationException when adding a new item in Visual Studio using IVsProject.AddItem
I'm encountering a System.AccessViolationException while working in Visual Studio 2022. The error occurs specifically when I try to add a new UI or CLR item to a project using the IVsProject.AddItem() method. Below is the full exception log: Aplicación:…
Cannot programatically create subscription
![Error-image] (/api/attachments/e4531a14-2bbe-4145-bb35-ef665d46065c?platform=QnA)Hi, I am having issues programatically creating MCA subscriptions. we want to use terraform to create the subscription but keep getting the following error. (See image) I…
Azure CLI ERROR when add extensions: An error occurred. Pip failed with status code 1
Hi everyone I'm trying to add extensions in Azure CLI with the command: az extension add --name subscription however I get the following message: An error occurred. Pip failed with status code 1. Use --debug for more information. Here the debug…
Error NETSDK1061 encountered when run "dotnet publish"
Hi All, Good afternoon. Let me first give a big picture on my project. The main project is using .NET8.0, and it has 2 dependencies. One of the dependencies is using netcoreapp2.1, which is also the one trigger the error NETSDK1061. I encountered…
High DPI with embedded WinForm UserControl in a Win32 application.
Apologies in advance as this question is a long shot and somewhat obscure. I have a C++ application I maintain. It embeds two .NET 4.x WinForms User Controls as panels in its Win32 window with: My_Control.CreateInstance(L"My…
Can't install MAUI workload properly on Mac with .NET SDK 8
I’m having trouble installing the .NET MAUI workload on my Mac running macOS. Despite trying different versions of the .NET SDK (8.0.401 and 8.0.400), Visual Studio Code consistently fails to detect the installation. I was removing all .net…
.NET MAUI ios Application Crashes When Published. Can Someone Guide me?
I maintaining .NET MAUI application that are created using .NET MAUI Blazor hybrid application project. now wwe need to publish it on Apple Appstore and there also some platform specific codes for android as well. so what i did is create .NET MAUI multi…
Windows Event Log with .Net 5
I have a .Net 5 console application and want to write messages to Windows EventLog. System.Diagnotics.EvengLog does not work also can't add Microsoft.Extensions.Logging.EventLog as getting error as it is targeted to .net framework 4.5.1 Why is it so…
Change "Current Code Page" in VS Debug Console to 437 (OEM - United States)
How can I change the code page in my Microsoft VS Debug Console to 437 (OEM - United States) ? Current code page is : 936 (ANSI/OEM - Simplified Chinese GBK) Microsoft Visual Studio Community 2022
how to use SendInput in .net?
How to use SendInput to send mouse click event? this is my code: [DllImport("user32.dll")] public extern static uint SendInput(uint inputs, INPUT[] pInputs, int cbSize); [StructLayout(LayoutKind.Sequential)] public struct INPUT { public…
MFC application Crashes intermittently in Clr.dll with internal error in the .Net Runtime ( Windows 10)
We have a C++ MFC application with COM interop for Managed C# code. Recently migrated to Windows 10 from windows 7. Application crashes intermittently pointing to below information in crash dump Exception code: C0000005 Exception Info: The…
mscoree.dll missing on Windows arm64
I am porting a .NET project to arm64. There are several C++/CLI assemblies in the project. I am using the latest version of Visual Studio (17.10), Windows SDK 10.0.22000.0 and .NET Framework 4.8.1 natively on a Windows arm64 computer. I am able to build…
Self-Contained Single-File does not produce a single file
I have a small .Net 5 console application with no dependencies on third party components. I have set it up to publish as a self-contained single-file. However, in the publish directory is the EXE file and four DLLs. The EXE file will not run without…
C:\Users\HMIS>dotnet list sdks The command could not be loaded, possibly because: * You intended to execute a .NET application: The application 'list' does not exist. * You intended to execute a .NET SDK command: No .NET SDKs were found.
every time i try to install SDKs in mywidnows machine its not going through even to open my already created app to open...using System; using System.Reflection; [assembly:…
How to create a PS/CLI script for file share capacity alert with Action group
I want to create an alert for file capacity of files and I need an action group as well. Problem is that the storage account has 90 files and i need for each fileshare 1 Alert. I want to try using a script to avoid taking a lot of time doing it…
i try to get the info in postgresql of the endpoint
i try to get the info of the endpoint by this sdk call : list(PostgreSQL(token, subscription_id).private_endpoint_connections.list_by_server("tommy","testtommy1")) the problem i get this as err: and the problem the endpoint info…
How read excel file and save into database
Hello guys, Is there any tutorial reading excel files and inserting them into a database with a .net core console application? Thanks in advance.