Visual studio the project needs to be deployed before it can be started

40

When starting to test the application on Windows Phone (even a blank app) on emulator or device, this error is poping out "The project needs to be deployed before it can be started". "verify the project is selected to be deployed in the solution configuration manager, or depoly it explicitly by clicking one of the deploy commands in the Build menu" The emulator will be started & run successfully, still no luck in deploying app on emulator.

enter image description here2>Error: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

visual-studio-2015
windows-phone
windows-mobile
windows-phone-8-emulator

1 Answer

104

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>:

enter image description here

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

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

Hope this helps!

answered on Stack Overflow Feb 3, 2017 by mindOfAi

User contributions licensed under CC BY-SA 3.0