Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error on every application I create for Windows Phone 7

Whenever I create a new application in Visual Studio for Windows Phone 7, every time I build my application this error pops up:

The application could not be launched for debugging. Ensure that the target device screen is unlocked and that application is installed.

Due to this error my application is not running in the emulator. I tried reinstalling the SDK and Visual Studio but can't seem to solve this error.

like image 539
Pro_Zeck Avatar asked May 03 '11 13:05

Pro_Zeck


1 Answers

When you say a 'new application', do you mean a completley new application, or have you added some code? I've heard this error occurring if you try and add non WP7 project to your WP7 solution. Right-click on your solution and select Properties. Open the Configuration Properties panel on the left and make sure that Build and Deploy are both selected. Also, make sure your project is the startup project (right click on your project and select Set as Startup Project.

like image 116
keyboardP Avatar answered Nov 10 '22 18:11

keyboardP