Error: Registration of the app failed

12

While trying to deploy an app from Visual Studio, I'm getting an error. I have already set developer mode and also deleted the app package from the packages folder, but it still won't work.

Here's the error message:

Error : DEP0700 : Registration of the app failed. Deployment Register operation with target volume C: on Package App_1.0.0.2_x64__m0fsgersa29a0 from: (AppxManifest.xml) failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. (0x80073cf9)

Do I need to set anything else?

windows
visual-studio
windows-store-apps
asked on Stack Overflow Aug 8, 2015 by Tarak • edited Aug 8, 2015 by Calcolat

11 Answers

15

I got this when attempting to debug a project from a shared folder.

Opening the project from a local folder first resolved the issue.

answered on Stack Overflow May 25, 2016 by Michael Ribbons
12

I know there is already an accepted answer, but I had a totally different problem with the same excact error message. When th app was running I took a look in the SQLite database with a program that I didn't close when I uninstalled the app and re-run it from Visual Studio. I think that Visual Studio couldn't overwrite the database as I was 'using' it.

Closed the program and voila the app run smoothly.

Hope this helpes anybody else as I was stuck for precious hours!

answered on Stack Overflow Dec 1, 2015 by Michael
7

In Windows 10 there are two possible cause of this problem are as follows,

  1. Previously installed app is locked and preventing VS to delete while deploying the application. Goto C:\Users\{you user}\AppData\Local\Packages and delete the folder of your application. Now rebuild and deploy your application.(this was the solution in Windows 8 devices as well)

  2. If it is still not working, double check if you have removed the below entry from appxmanifest file. If you are targeting Desktop Name="Windows.Desktop" entry should be there in the file. If it is Phone, Name="Windows.Mobile" should be there in the TargetDeviceFamily. You can have both in the configuration but sometimes Microsoft will suggest to keep separate configuration when you submit the application for STARTS testing.

< Dependencies> < TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" /> < /Dependencies>

Hope this help in figuring out the reason and solution for "Error : DEP0700 : Registration of the app failed" error.

answered on Stack Overflow Jun 14, 2016 by Nidheesh Puthalath • edited Jun 14, 2016 by Nidheesh Puthalath
3

For me this was caused by being signed in with my Microsoft account in windows instead of the local user account. Logging in as a local user fixed this.

answered on Stack Overflow Aug 8, 2015 by Deca • edited Aug 8, 2015 by Deca
3

Don’t worry, the solution is actually very simple.

Error: DEP0700: Registration of the app failed. An internal error occurred.

So you’ve started your Windows 8 app development journey. All things are going smooth until one day you hit this error when trying to run/debug your app. The error says “Error: DEP0700: Registration of the app failed. An internal error occurred with error 0x80073D05. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. (0x80073cf6)”

This is a very cryptic error and does not give you any info about what the problem actually is. The problem is that Visual Studio is not able to delete the application data in your local packages folder.

Don’t worry, the solution is actually very simple. On your Windows 8 machine, go to C:\Users\\AppData\Local\Packages\ folder. There you will find a folder that has your application’s Package Family Name in it – you just need to delete that folder. The issue is that while your app is in development, it might have a random GUID as its Package Family Name, so the folder will also have that random GUID as its name which makes it hard to know which folder belongs to your app. Again, that is easy to find as well. Right click your project in Visual Studio and click properties. The value you see in the “Package Family Name” field is the name you should look for in the folder. Simply delete it and build your solution again and it will run like a charm.

Read more details at http://paraswadehra.blogspot.com/2012/12/error-dep0700-registration-of-app.html

answered on Stack Overflow Dec 26, 2016 by Zia Ur Rahman
1

I got this when I tried to run the project from a ReFS filesystem. Running from NTFS worked. My error code was 0x80073cfd.

answered on Stack Overflow Jun 3, 2016 by Austin
1

DEP0700: Registration of the app failed For me the error DEP0700: Registration of the app failed, was raised because my Store App was installed from the actual Microsoft Store. I had to uninstall it and then I could debug my app smoothly.

answered on Stack Overflow Apr 4, 2019 by Hugo
0

I stumbled over the same issue today and after a few hours I found out, that the problem was because I moved the AppIcon files into a subfolder and forgot to adjust the references inside my package.appxmanifest. Unfortunatly the corresponding error message didn't point into this direction and all the above mentioned solutions didn't help for me, so hopefully this helps someone else!

0

In my case, I was opening one of the App files (Log Files). When deploying, Visual Studio attempts to remove all the files and packages (if uninstall is on in the properties). It was unable to remove the Log file as it was opened. When I closed all files, and tried again, it worked.

answered on Stack Overflow May 8, 2019 by Walaa El Kerdy
0

I ran into this error when testing some code in domain-bound and non-domain-bound scenarios (which requires me to have a domain account and a non-domain account on the same machine).

I found that I had to uninstall the application from the account I originally deployed it from before I could deploy it again on the other account.

answered on Stack Overflow May 9, 2019 by George Howarth
0

My problem is that there is another Microsoft account in my computer that installed the app from Microsoft Store.

Nothing from the provided solution helped. The only thing that solved my problem is to delete that account that I installed the app there.

answered on Stack Overflow Jun 2, 2019 by gil123

User contributions licensed under CC BY-SA 3.0