29

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

Piotrek
  • 10,919
  • 18
  • 73
  • 136
  • 2
    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](http://stackoverflow.com/questions/11648442/windows-phone-application-deployment-error-0x89731812). – Hans Passant Apr 03 '16 at 11:41

13 Answers13

44

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 ;)

Paradowski
  • 719
  • 1
  • 13
  • 17
  • 2
    it starts IpOverUsbSvc service on your PC. I think this service is responsible for maintaining connection with your device :) – Paradowski Apr 07 '16 at 19:44
  • 2
    I already have IpOverUsbSvc working, still same problem. Any idea? – user1085907 Jun 04 '16 at 14:34
  • 1
    Worked for me. Thanks – cablehead Jun 10 '16 at 23:42
  • I had the same problem. Ones I solved the error by starting the mentioned service. But after a while the error re-occured. The service is still up and running, a restart wont work at all. The unexpected error is back. Any other suggestions? – Titus T Sep 28 '16 at 16:43
  • Worked for me. Strange caz It was working fine and suddenly this happened – Nuwan Karunarathna Oct 21 '16 at 02:46
  • that works, Thanks, it was running fine but when i run WMware it suddenly show cant deploy to device – Sumit Oct 26 '16 at 08:30
  • Had this problem on and off for weeks - usually about 20 restarts would eventually solve it - I guess the restart would eventually kickstart IpOverUsbService - now I know how to do it without restarting! – Percy Jun 03 '17 at 17:58
  • If you have Windows 10 and you face this problem because there's no such service, see this answer: https://stackoverflow.com/a/53522760/1830814 – Artemious Nov 28 '18 at 15:22
9

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.
Tommaso Scalici
  • 480
  • 1
  • 6
  • 15
  • Everything seems to be set up correctly. How can I check whether Visual Studio sees my device? Maybe it's a problem with VS? – Piotrek Apr 03 '16 at 12:21
  • Yes, it may be a problem with VS, for that I suggested you to try to restart it after kill all processes related to VS. Or even a system reboot will be fine. If you open a command line to this path: C:\Program Files (x86)\Windows Kits\10\bin\x86\ and launch **WinAppDeployCmd** _devices_ you can see if your device is recognized and ready to receive a deployed package. You can also try to deploy your app using the _install_ command. – Tommaso Scalici Apr 03 '16 at 15:47
  • System reboot didn't help. WinAppDeployCmd doesn't see any devices (phone itself is connected to PC, I can browse through files using Windows File Explorer). – Piotrek Apr 03 '16 at 16:27
  • Where can I found Windows Universal App instalation file in my project? I thought that extension of those files is *.appx, but I can't find it. If I can't test it thorugh Visual Studio, I will run it manually. – Piotrek Apr 03 '16 at 16:33
  • 2
    IpOverUsbSvc was already working for me, uninstalling my app worked. – Adrian K Aug 22 '16 at 09:51
  • Same here @AdrianK, had to uninstall the app. Worked fine afterwards. Nothing else worked. Rebooted both devices, cleaned solution, restarted that service. – René Sackers Sep 04 '16 at 10:44
  • Sorted my problem. Uninstalling seems to sort it. Cheers! – Rexxo Nov 04 '16 at 13:37
5

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.

Agrgg
  • 279
  • 2
  • 5
  • I had the same problem. Ones I solved the error by starting the mentioned service. But after a while the error re-occured. The service is still up and running, a restart wont work at all. The unexpected error is back. Any other suggestions? – Titus T Sep 28 '16 at 16:45
2

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

NaTa
  • 57
  • 6
1

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

MrMHK
  • 11
  • 2
1

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.

Jmie
  • 97
  • 1
  • 12
0

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.

Jasongiss
  • 278
  • 1
  • 4
  • 11
0

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.

Danil Shaykhutdinov
  • 2,027
  • 21
  • 26
0

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

Vojtech Ruzicka
  • 16,384
  • 15
  • 63
  • 66
MosGeo
  • 1,012
  • 9
  • 9
0

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

xleon
  • 6,201
  • 3
  • 36
  • 52
0

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.

dirtydanee
  • 6,081
  • 2
  • 27
  • 43
Damperen
  • 1
  • 1
  • 1
0

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.
Artemious
  • 1,980
  • 1
  • 20
  • 31
-1

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).

leandrocrs
  • 26
  • 6