Debug profile does not exist - How to get it?

Justin Cooley 6 Reputation points
2022-02-24T22:16:47.297+00:00

I am new to Visual Studio 2019 and am attempting to make a data input application using a Windows Form App. I keep getting an error that won't let my app launch saying that

"The debug executable {file path to where the debug executable should be} specified in the {name of my app} debug profile does not exist"

I go to that file path, and sure enough it is an empty folder so there is supposed to be something there.

I have tried this two different ways - I tried it on the windows form app that I am trying to make, and I tried it on a brand new, empty windows form app. The error shows up on both when I hit 'run'. So this seems to be an issue at the program level, not at the app level.

Anyway so my questions are:

  1. What is the debug profile?
  2. How do I get the debug profile?

Here is an image of the error:

177636-image.png

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,852 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
948 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 26,566 Reputation points Microsoft Vendor
    2022-02-25T09:42:23.927+00:00

    Hi @Justin Cooley ,

    Welcome to Microsoft Q&A!

    The Debug profile determines how to start debugging the application. You can right click on your Project Properties > navigate to “Debug” > create a debug profile by specifying various properties.

    About the error message, please launch your VS2019 as administrator and create a new project to check if it persists or not.

    Besides, you can try to change the Target framework by right-clicking on your Project Properties > Application.
    Meanwhile, please delete the .vs and bin folder in your project folder, then, rebuild your project.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Karen Payne MVP 35,201 Reputation points
    2023-06-22T15:43:53.36+00:00

    Move to .NET Core 6, netcore 3.1 has reached end of life.

    Create the new project on your C drive (to rule out permission issues) with .NET Core and see the following. I also recommend for this issue to not have spaces in any of the folder names. Make sure to build rather than just run than open the project folder, make sure there is an obj and bin folder. If so run the project, what happens?

    0 comments No comments