Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't Deploy Universal App to Windows Phone 10 Technical Preview

Here's the details:

  • Created a blank Universal Windows App in Visual Studio 2015
  • Set to ARM, Debug
  • Attempt to deploy to a Lumia 925 Running Windows 10.0.10166.0
  • Phone is in 'Developer Mode'
  • I unlocked the phone using the Windows Phone Developer Registration (8.1) tool. Do I need one for Win10?
  • I first get the following error:

    Error : DEP3321 : To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.10240.0 or higher. You currently are running version 10.0.10166.0. Please update your OS, or change your deployment target to a device with the appropriate version.

Now I found a solution for this first error here so I changed the following in the App1.csproj file:

<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>

to

<TargetPlatformMinVersion>10.0.10166.0</TargetPlatformMinVersion>

Now I get the following error when I try and deploy the app to the phone and I can't find a solution:

Error : DEP0001 : Unexpected Error: Element not found. (Exception from HRESULT: 0x80070490)

Anyone have any idea how to resolve this? I can deploy the app fine to the emulator, just not to my physical phone running Windows 10.

like image 914
kernanb Avatar asked Aug 11 '15 19:08

kernanb


3 Answers

For me I had to turn on the Windows Phone ip over USB Transport

go to run -> services.msc -> [look for it].

like image 134
EduLopez Avatar answered Oct 27 '22 05:10

EduLopez


If any of these answer not solved your problems, here is what I've done:

  1. Reset the phone (it's dev phone, so it's okay to reset, not losing any data)
  2. DO NOT choose recovery. Start clean
  3. After all waiting (installing app, get settings set), plug it in and try to deploy again.

And it's just worked

The idea come from: https://social.msdn.microsoft.com/Forums/en-US/d2340565-a80a-4f1c-8a0c-ba8ad5ce34b1/cannt-deploy-wp-81-app-to-phone-using-vs-2013-error-dep0001-unexpected-error-element-not?forum=wptools

like image 24
Tuan Tran Avatar answered Oct 27 '22 06:10

Tuan Tran


What worked for me was resetting the phone to factory defaults ( and erasing all data... a true reset). The phone came with 8.1, when I reset it however, it was reset to windows 10 base. I re-enabled developer mode on the phone and I can deploy my apps to the phone now.

I had tried all the other suggestions with no luck.

like image 45
ablinkin Avatar answered Oct 27 '22 06:10

ablinkin