When i press F5, an "Attach to Process" window opens

670 views Asked by At

I have so many different C# source projects that run OK on other computers.

But on one computer, using Visual Studio 2013, when i press F5 to run the project, the "Attach to Process" window opens.

I searched a lot but no one have had my problem. Why is it like this? How can i fix it?


Edit:

I re installed the VS with C# configurations but it did not change anything. the Start Debugging option is disabled just like the screen shot below:

2

There are 2 answers

3
BradleyDotNET On BEST ANSWER

That will occur when you don't have a startup project set.

Right click the project you want to start and select "Set as Startup Project". Now F5 will run that project.

One other thing to try; from F5 or Start Debugging Button is Greyed Out for Winform application? is to:

  1. Exclude the project from you application
  2. Build the solution
  3. Re-add the project
  4. Build again
  5. Set the project as the startup project
0
Dunken On

Do you have DebugDiag or some other debugger (e.g. WinDbg) running in the background? Sometimes they are configured to automatically attach to a running process. Keep in mind only one debugger can be attached to one process.