Share via

cannot start the exe file during debugging

JJ Z 0 Reputation points
2026-04-08T10:09:54.07+00:00

When editing C# code on the Visual Studio platform and starting in either Debug or Release mode, the information as shown in the figure will be prompted. The generated .exe file functions normally, but the VS platform cannot start this .exe program. The verification process is as follows:

The complete folder of this program can be copied to another computer and debugged normally.

This computer can debug other C# projects normally.

Trying to delete the registry, reinstalling VS2019, VS2022 and VS2016 did not solve this problem.

User's image

Developer technologies | Visual Studio | Debugging

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.