Probably the reason for this is that your Build and Deploy configurations aren’t enabled. To enable these configurations. Do these steps:
Step 1: Open the Configuration Manager by clicking the active solution configuration. The default is <Debug>:

Step 2: Enable the Build and Deploy configurations by checking the boxes for Any CPU.

After this, you can try running you app. It should be working properly.