29
votes

Exact error:

Severity Code Description Project File Line Suppression State Error DEP0001 : Unexpected Error: -1988945906 TestApp

What does it mean? It seems it isn't problem with application, it works OK on PC.

Version of OS: 1511, Windows 10 for phones 10.0.10586.164

13
Convert the error number to hex and you'll end up with "Connection to device failed. Please ensure the phone is connected and the not on the lock screen" and this Q+A.Hans Passant

13 Answers

44
votes

I've experienced the same problem after updating Visual Studio community to Update 2. Typing in CMD (under admin rights) the following command solved my issue:

net start IpOverUsbSvc

Thanks to Agrgg for a good tip ;)

9
votes

This kind of error happens very randomly and usually it means there was an issue during the deployment of the app. Things to check:

  • Developer mode is correctly enabled on phone
  • Uninstall the app from phone, rebuild solution and then try debug again
  • Check that the architecture for all projects is set accordingly (ARM for debugging on real device)
  • Sometimes the VS debugger hangs up, so closing VS and kill from Task Manager all VS processes that are eventually running and restart VS may also help.
5
votes

I had the same error with deploying onto Windows Phone 8.1 device. In my case the problem was in Windows Phone IP over USB Transport (IpOverUsbSvc) service, which wasn't running. The deployment error disappeared after I'd started the service manually.

2
votes

I had the same problem.

"net start IpOverUsbSvc" didn't worked for me (throws Access is denied Exception).

I have followed following steps to fix.

  1. Start Run (Windows+R), Type: services.msc
  2. Start/Restart Windows phone IP over USB Transport.

Windows Services window

1
votes

For the RPi, I have RPi3 with WIOT (build 14376) this error happens after failed deployment. Just restart VS and it'll deploy ok.

1
votes

After trying some of the answers already provided and nothing worked, I fixed the error by simply restarting the phone. After that the error was gone for me.

0
votes

I had the same issue, and found that in my case it was occurring while the phone was downloading system updates in the background. App updates/installations from the app Store were also prevented from downloading/installing.

After the update had finished, all was back to working again.

As Windows Phone 10 doesn't seem to make it obvious that it's downloading updates, maybe worth checking this out if you hit this problem.

0
votes

I had the same error, solution is here: https://msdn.microsoft.com/ru-ru/library/windows/apps/jj863509(v=vs.105).aspx Look at Checking BIOS settings required by Hyper-V for Data Execution Prevention. You must select "Turn on DEP for all programs and services except those i select" and in my case application deploys successfully.

0
votes

For me, it was as simple as unlocking the phone so that the computer would have access to it.

0
votes

I had this issue as well. None of the answers helped me. IpOverUsbSvc was up and runing, phone reset, system reboot, nothing... The issue was fixed after a Visual Studio "repair": control panel -> Programs and features -> select VS2015 -> Repair

0
votes

I got a similar error.

The reason the error occurred for me was because I forgot to add the new splash images in assets after deleting the old ones.

The solution was to add the images. To get the correct image names and sizes, I used this extension for visual studio.

0
votes

For Windows 10 (desktop) users

I faced this problem after I uninstalled Windows 10 SDK. It deleted the IpOverUsbSvc service from the system.

Solution

  1. Download the Windows 10 SDK .iso installer

  2. Inside it there is Installers folder.

  3. Find Windows IP Over USB-x86_en-us.msi. Install it. (Don't worry if there is no setup window, it installs fast and silently).

  4. I didn't even have to reboot VS2015, it just worked.

  5. Check if the IpOverUsbSvc service is running

    • Open a Powershell prompt and type Get-Service -Name *USB*
    • Or go to the Services window. There you should see the IpOverUsbSvc running.
-1
votes

So, I think I get the trick. After plugged in your Windows Mobile device, Windows App Deploy can see W10M device, but once your device goes to lock screen, WPD can not detect it anymore.

You should to plug out and plugin again, with screen unlocked, to make it detectable. (I'm not a really English speaker).