none
Error while trying to run project: Unable to start program. Refresh the process list before attempting another attach. RRS feed

  • Question

  • I'm trying to run a blank C# Console Application in Visual Studio 2019 Pro.

    I'm getting the above error every time I run a program with Start Debugging (but not when I run it with Start Without Debugging).

    Monday, July 29, 2019 7:33 PM

All replies

  • Hi Scottie0,

    Welcome to MSDN forum.

    According to your description, please open Debug -> Attach the process... -> select "Automatically determine the type of code to debug".

    If there is update information, please feel free to contact us.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Tuesday, July 30, 2019 5:19 AM
  • Hi Scottie0,

    Is there any update for this issue? Please check if you've set the Automatically determine the type of code to debug option as the way debugger selects Code Type as Dylan suggests.

    Also, if this issue persists you can try:

    1. Refresh the process list (Debug=>Attach to Process=>click the Refresh button)

    2. Right-click project=>Properties=>Debug page, make sure your Start Action is Start project, remove the command-line arguments if it exist, also make sure you didn't check the Use remote machine

    3. And if the blank project the only project in current solution? Please make sure you set it as Startup Project

    4. Change the Target Platform from Any CPU to X86 or X64

    5. Go Debug menu=>Options=>Check if it helps after you check the Use Managed Compatibility Mode

    If all above not helps, please close all vs instances and then delete all the component cache folders in 16.xxx folders. The path is by default C:\Users\xxx\AppData\Local\Microsoft\VisualStudio , you can find several 16.xx folders there. Delete all ComponentModelCache folders in them and restart VS.

    Looking forward to your reply :)

    Best Regards

    Lance


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, August 2, 2019 3:00 AM
  • Hi Scottie0,

    Did you try Lance's steps to refresh the process list? Here is a similar issue about it.

    If this issue still exists, please feel free to let us know. We are willing to help you further.

    Best Regards,

    Perry


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com


    Wednesday, August 7, 2019 10:28 AM