1

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:

Ringil
  • 5,927
  • 2
  • 24
  • 33
Matin Lotfaliee
  • 1,620
  • 1
  • 19
  • 42

2 Answers2

4

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
Community
  • 1
  • 1
BradleyDotNET
  • 59,038
  • 10
  • 94
  • 113
0

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.

Dunken
  • 8,143
  • 4
  • 53
  • 83