|
Hello, When I try to debug my C++ program in .NET, I press F5 (or click the debug arrow from the main menu) I get the above error. The directory in the above message is wrong, it points to a an old project that no longer exists. I checked the Command value in the project properties and its correct (by right clicking the project in the solution explorer). If I right click the project and hit debug from the pop-up menu, it does execute the right program, just not from the main menu. Can anyone help, I have tried changing properties of everything, installed framework 2.0, searched the registry for references to the old project, deleting the pdb and debug directory and done a full rebuild, but no joy. Any help would be greatly appreciated. Thanks.
|
| DumbMonkey Thursday, November 30, 2006 2:22 PM |
Can you try right clicking on the project in question and selecting "set as startup project".
John |
| John Cunningham - MSFT Thursday, November 30, 2006 5:33 PM |
Can you try right clicking on the project in question and selecting "set as startup project".
John |
| John Cunningham - MSFT Thursday, November 30, 2006 5:33 PM |
Hi John, That fixed it. Thank you. Much appreciated. DumbMonkey.
|
| DumbMonkey Friday, December 01, 2006 8:55 AM |
Hello there. Well i have the same problem as dumbmonkey and selecting wjhat you tols hom to select does not help me out. My error says:
Unable to start program...........
The system cannot find the file specified. Same deal. I right clicked on Project and selected "set as startup project" and nothing happened. Even when compiled once agian. Thanks! |
| wayouk Monday, February 12, 2007 6:41 PM |
Woah! So glad I found this! Thank you for the solution!
|
| yoyoteng Thursday, February 21, 2008 10:02 PM |
Hey Wayouk,
Well, I tried to do the same as dumbmonkey and I got the same thing that you did. I didn't realize that I forgot something basic. I forgot the using namespace std;
You should double check the beginning too. However, I do have the same problem still with most of my programs, even ones that have run before perfectly sound. So, hopefully this helps. Hey, maybe you can help me out with this too. |
| El_Bobo Thursday, April 03, 2008 12:20 AM |
what do u rite clik on???????
|
| mike6991 Friday, October 03, 2008 4:49 PM |
It's not working for me. It warns me that test - Debug Win32 is outdated even if I click "set as startup project". Then it says I have errors, even though the syntax is fine and nothing is highlighted. Then it gives me the error the original poster had. Is there anything more specific I have to do? |
| Sahaqiel Sunday, June 14, 2009 7:12 AM |
It worked when I right clicked on the project name in solution explorer on (REBUILD) and set as startup project. Not sure if that was the right thing to do but hey its day 2 and it works for now;)
|
| mack71 Wednesday, October 07, 2009 8:51 PM |
Each time I try to run my program after building, it wouldn't run after clicking the start without debugging.It will show the message " the system cannot find the file specified. What do I do? |
| Emediong Thursday, October 08, 2009 7:58 PM |