1,114 questions with Developer technologies | Visual Studio | Debugging tags

Sort by: Updated
0 answers

How do I detect a drawing error using the MFC Direct2D classes

I am developing a desktip application using the MFC Direct2D wrapper classes (most beginning with CD2D). For the most part it is working, but occasionally drawing fails. How do I detect what error codes may have been returned from the EndDraw method?

Developer technologies | Visual Studio | Debugging
asked 2025-08-28T00:08:27.2133333+00:00
Purple 0 Reputation points
edited the question 2025-08-28T17:48:47.3066667+00:00
mkaszewiak 90 Reputation points Microsoft Employee Moderator
1 answer

MSB4018 / The error was: Illegal characters in path. - Please help me with that annoying error. Cant run a simple container support enabled console app

Hello all , Please help fix that, since yesterday I am having this annoying problem. I have downgraded from enterprise to pro version of Visual studio 2022 then this error came in. Please please please help :) I have tried numerous times repairing ,…

Developer technologies | Visual Studio | Debugging
asked 2025-06-18T06:18:00.67+00:00
Katman, Furkan Sertap 5 Reputation points
commented 2025-08-27T15:09:40.3566667+00:00
Katman, Furkan Sertap 5 Reputation points
1 answer

Can't start the default Azure Function in Visual Studio 2022

Visual Studio 2022 17.14.7 Core Tools Version: 4.0.7317 Commit hash: N/A +5ca56d37938824531b691f094d0a77fd6f51af20 (64-bit) Function Runtime Version: 4.1038.300.25164 Following the quick start…

Developer technologies | Visual Studio | Debugging
asked 2025-07-02T04:32:17.5366667+00:00
Owen Chen 0 Reputation points
commented 2025-08-25T09:50:40.7833333+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 255 Reputation points Microsoft External Staff
1 answer

Microsoft Defender Graph API: Only Device Score Retrieved, Others Are Zero — Why?

Hi everyone, I'm using the Microsoft Graph API (Security > Secure Scores endpoint) to retrieve category-wise scores (Device, Identity, Apps, Data) from Microsoft Defender for Endpoint. I'm successfully getting the Device Score, but the values for App…

Developer technologies | Visual Studio | Debugging
asked 2025-07-28T09:28:42.94+00:00
Nandhana K 0 Reputation points
commented 2025-08-25T05:45:50.91+00:00
Varsha Dundigalla(INFOSYS LIMITED) 1,110 Reputation points Microsoft External Staff
13 answers

How to Debug Remote MAUI App Launch

I have a .NET 9 MAUI app being deployed to a remote Xcode iOS iPhone 16 Plus. All components have the latest release software. The deployment is successful, and the application is launched and the splash screen displayed on the phone. However, the first…

Developer technologies | Visual Studio | Debugging
asked 2025-07-01T10:53:00.0633333+00:00
Marc George 211 Reputation points
commented 2025-08-22T09:26:49.95+00:00
Gade Harika (INFOSYS LIMITED) 490 Reputation points Microsoft External Staff
4 answers

Error Debugging in Visual Studio Code: 'ConnectionLostException' when attempting to run C# code

Visual Studio Code Version: 1.79 Operating System: Windows 11 Pro, 64-bit Problem Description: When attempting to debug C# code in Visual Studio Code, the following error message appears: "Your changes cannot be applied due to an unexpected…

Developer technologies | Visual Studio | Debugging
Developer technologies | C#
asked 2023-10-05T08:57:22.1533333+00:00
Ladislav Hochman 40 Reputation points
answered 2025-08-22T06:09:12.1633333+00:00
Velouria Denzer 0 Reputation points
2 answers

Visual Studio Code does not let me type the letters a, s, or d, only in files

I can type these letters in the terminal just fine; however, I nothing shows up once I try and edit my code using these letters

Developer technologies | Visual Studio | Debugging
asked 2025-06-17T21:42:37.16+00:00
John Zhang 0 Reputation points
commented 2025-08-18T01:52:45.61+00:00
Omkara Varshitha Kunapalli (INFOSYS LIMITED) 380 Reputation points Microsoft External Staff
2 answers

Can't Deploy to Analysis Service Get Error

Hello, I have a new computer, new install of visual studio 2022 community and Analysis Services Project installed. I can't deploy my tabular project to SQL 2019 Analysis Services. I get the following error: See the end of this message for details on…

Developer technologies | Visual Studio | Debugging
asked 2025-06-25T22:26:07.1433333+00:00
Cherise Woods 5 Reputation points
answered 2025-08-18T01:49:31.4333333+00:00
Omkara Varshitha Kunapalli (INFOSYS LIMITED) 380 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Visual Studio Code - unable to change the size of a window

Hello, I have a code written by python that allows me to access web (via Selenium) but I cannot change the window size even though it´s not headless mode. Because of that I don´t see all elements and I cannot click them. For example I had to make…

Developer technologies | Visual Studio | Debugging
asked 2025-08-05T10:19:54.7033333+00:00
Prchalová Tereza 60 Reputation points
edited a comment 2025-08-15T12:21:43.5166667+00:00
Varsha Dundigalla(INFOSYS LIMITED) 1,110 Reputation points Microsoft External Staff
2 answers

All other products, downloads and keys have been removed from the subscriptions.

TLDR: Effective June 5, 2025, Pacific time zone, the Visual Studio Enterprise benefit will be tiered according to Ambassador milestone. All Ambassadors should immediately take steps to ensure:

Developer technologies | Visual Studio | Debugging
asked 2025-06-08T02:16:22.12+00:00
samin ali 0 Reputation points
commented 2025-08-14T04:50:55.8266667+00:00
Omkara Varshitha Kunapalli (INFOSYS LIMITED) 380 Reputation points Microsoft External Staff
1 answer

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 2025-07-31T17:55:44.6133333+00:00
was 0 Reputation points
answered 2025-08-08T14:23:42.9733333+00:00
was 0 Reputation points
3 answers One of the answers was accepted by the question author.

Starting release version of an app crashes VS consistently

I have a UWP app. When I start the debug version from VS, everything is flawless. When I try to start the release version (i.e., the .Net Native version), VS shows the following error, then crashes. This is 100% reproducible. I tried half a dozen times…

Developer technologies | Visual Studio | Debugging
asked 2025-07-30T15:16:08.9033333+00:00
Hong 1,326 Reputation points
commented 2025-08-06T12:17:00.67+00:00
Hong 1,326 Reputation points
1 answer One of the answers was accepted by the question author.

Issue with connection to the database through VS code

Hi, My Python code is supposed to access a database and perform a check, but the behavior is inconsistent — sometimes it works, and other times it doesn’t. I’m not sure what’s causing the issue. I’ve already added retries, delays, and other safeguards. I…

Developer technologies | Visual Studio | Debugging
asked 2025-08-05T10:29:26.58+00:00
Prchalová Tereza 60 Reputation points
edited an answer 2025-08-06T09:01:19.64+00:00
Varsha Dundigalla(INFOSYS LIMITED) 1,110 Reputation points Microsoft External Staff
1 answer

Unable to connect Visual Studio debugger to Azure Web App

I have a web app running in Azure. This is a mature app. I have always been able to periodically connect my Visual Studio 2022 debugger to this web app to debug code. At some point in the last month, this has stopped working. I should say that this…

Developer technologies | Visual Studio | Debugging
asked 2025-06-19T15:28:46.3+00:00
Nick Evans 5 Reputation points
commented 2025-08-05T04:32:33.8+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 255 Reputation points Microsoft External Staff
3 answers One of the answers was accepted by the question author.

SerialPort.Write blocks when using multiple classes and separate COM ports

Hello dear community, After a long time, I’m reaching out to you again. Some time ago, I started a new coding project in WinUI3 that has gradually grown. Unfortunately, the code has developed quite quickly since I could only work on it in my limited free…

Developer technologies | Visual Studio | Debugging
asked 2025-07-20T19:27:22.7033333+00:00
Silvan Zihlmann 20 Reputation points
accepted 2025-08-04T19:04:31.8333333+00:00
Silvan Zihlmann 20 Reputation points
4 answers

Get error deploying to analysis services via VS 2022 Community to SQL 2019

Hello All, Hope you can help. I get an error trying to deploy my tabular package to SQL 2019 from VS 2022 community. I get a JIT error

Developer technologies | Visual Studio | Debugging
asked 2025-06-25T22:28:23.8666667+00:00
Cherise Woods 5 Reputation points
answered 2025-08-04T08:40:11.46+00:00
Omkara Varshitha Kunapalli (INFOSYS LIMITED) 380 Reputation points Microsoft External Staff
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 2023-11-22T06:56:48.8633333+00:00
Malcolm Crowe 20 Reputation points
commented 2025-07-31T14:07:00.9433333+00:00
Manual Franco 0 Reputation points
1 answer

Dotnet 9 apps blocked by Windows security Completely

Dotnet 9 applications unable to run as its blocked by Windows security. i tried with multiple simple applicaitons console all. all blocked,same app if i change to .net 8 then it works fine. I have visual studio, sdk ,os all updated to latest. Mostly…

Developer technologies | Visual Studio | Debugging
asked 2025-04-21T08:09:29.75+00:00
Anonymous
answered 2025-07-31T04:31:00.75+00:00
Son Pham 0 Reputation points
4 answers One of the answers was accepted by the question author.

Debug -> "Attach to Process" in Visual Studio 2022 Professional is not adding the Script file to the Solution Explorer

Dear Microsoft team, I am trying to attach my ALM application project workflow script using the instructions provided in the below…

Developer technologies | Visual Studio | Debugging
asked 2025-07-27T15:48:00.7166667+00:00
Sai Nagendra Srihari Vanumu 20 Reputation points
commented 2025-07-30T12:10:20.0433333+00:00
Sai Nagendra Srihari Vanumu 20 Reputation points
1 answer

Visual Studio 2022 Build Failure Due to Shortcut Creation Issue

The solution includes a Setup Project that fails to build, causing the build process to be cancelled. This has worked previously without issues. To troubleshoot, the solution was tested on two other computers: one with Visual Studio 2019 and another with…

Developer technologies | Visual Studio | Debugging
asked 2025-06-27T07:11:40.6133333+00:00
Sean Kozen 0 Reputation points
commented 2025-07-29T10:51:13.7133333+00:00
Adiba Khan 340 Reputation points Microsoft External Staff