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

8

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.

windows-phone-8.1
windows-phone
visual-studio-2015
windows-10-mobile
asked on Stack Overflow Aug 11, 2015 by kernanb

7 Answers

20

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

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

answered on Stack Overflow May 4, 2016 by EduLopez • edited Jul 20, 2016 by EduLopez
2

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

answered on Stack Overflow Sep 30, 2015 by Tuan Tran
2

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.

answered on Stack Overflow Oct 9, 2015 by ablinkin
1

The error is telling you that the version on your phone is older than what the tools support and that you'll need to upgrade it. Can you try checking for updates on the phone and bringing it up to 10.0.10240.0? There are likely breaking changes between 10166 and 10240 that prevent the VS RTM tools from working with older versions.

Update: we have announced a newer build of Win10 mobile, which will work with the win10 tools. More information is available here:

http://blogs.windows.com/bloggingwindows/2015/08/12/announcing-windows-10-mobile-insider-preview-build10512/

answered on Stack Overflow Aug 11, 2015 by Michael Braude • edited Aug 13, 2015 by Michael Braude
1

Apparently 10.0.10166.0 is a pre-release Mobile Insider Preview Build. You just need to decrease Target Min version to 10166.

Unfortunately, you can't do this from Project settings. Bu you can do it manually. Follow these steps (Worked in my case with Nokia Lumia 520 Windows 10 Mobile Insider build 10.0.10166.0):

  1. Right click on your project in Visual Studio.
  2. Select "Unload Project", it will now appears as ProjectName (unavailable).
  3. Right click on the unloaded project and select "Edit ProjectName.csproj"
  4. Locate the <TargetPlatformVersion> and <TargetPlatformMinVersion> items in the first <PropertyGroup>.
  5. Change the <TargetPlatformMinVersion> value to 10.0.10166.0.
  6. Now Save and Close the file.
  7. Right click on the project again and select "Reload Project"
  8. Rebuild the project and deploy to device.
answered on Stack Overflow Aug 16, 2015 by Grigory
1

When I tried to deploy my app in Release mode to Windows Phone 10 I got the following error:

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

I tried a few things but what ended up working was quite simple: I built and ran the Debug mode of my app. Then without uninstalling the app I switched the configuration to Release and built and ran it on the phone and then it worked!

answered on Stack Overflow Feb 20, 2016 by Gary Shaw
0

Whoever ends here because they are getting

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

after trying to deploy a UWP app (but deploying on emulators work) and the Windows Phone ip over USB Transport service is started, first and foremost try reseting the phone to fabric settings. It worked for me and some others in this thread, so my advice is to start with this before spending lots of hours chasing ghosts.

I tried it with Visual Studio 2015 Update 2.

answered on Stack Overflow Jun 10, 2016 by Gonzalo Zavala • edited Oct 17, 2017 by Adriaan

User contributions licensed under CC BY-SA 3.0