Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error message: "ensure that the target device screen is unlocked" when using emulator

Anyone knows why I get the error message when debugging on emulator : "the application could not be launched for debugging. Ensure that the target device screen is unlocked and that the application is installed." while Developing in Visual Studio 2010.

I've Googled it through and try the solution, but still not fixed my problem. Btw, my solution type is SLXNA so, there are 3 projects in there, the main project, lib project, and libcontent project.

What I've tried :

  1. Set the main project as the startup project
  2. Checked the build and deploy check box for the main project and checked the build checkbox for the lib project
  3. Change active solution platform to Windows phone
  4. Rebuild solution

But it's still didn't fixed the problem

But when I debug it on device, it runs smoothly

Anyone knows how to fix this?

like image 650
bysreg Avatar asked Apr 18 '12 04:04

bysreg


1 Answers

  • Make sure that the project you want to run is set a default Startup project
  • Make sure that in dropdown on top you have selected "Windows Phone Emulator", not "Windows Phone Device"
  • And the most important is: click on an arrow pointing down near the Debug/Release configuration and open Configuration Manager... Make sure that the checkbox is checked in a column "Deploy" next to your project name.
like image 177
Jevgeni Tsaikin Avatar answered Nov 02 '22 13:11

Jevgeni Tsaikin