1. Make sure that output path of project is correct (Project > Properties > Build > Output path)

  2. Go in menu to Build > Configuration Manager, and check if your main/entry project has checked Build. If not, check it.

  3. Go to properties > Application , and select the output type of your project


I've had the same problem;

Here are solutions that didn't work for me:

  • Building/rebuilding entire solution
  • Making sure the output path was correct (MyProject > Properties > Build > Output > Output path)

Here's the solution that did work for me:

  • Rebuilding just the project

You could open the project file with a text editor and replace 'c:\target' by 'bin\Debug'

EDIT

There are other more helpful answers but I can't delete mine since it's the accepted one.

@CZFox Answer

@Yehuda Shapira Answer

steps for changing target path is

  1. Go to Properties
  2. Then go to Debug
  3. Browse the Start external program and select the bin/Debug/.exe file

I have solve this type of problem follow this step

1.VS2010 right click on the solution explorer and select the Build.

  1. Again press Ctrl+F5 or F5

You can try the following steps to resolve the problem.

Step 1:

Right click on the solution and select the property

Step 2:

In Configureation property select the Build option button