Cannot run UWP application because VS cannot uninstall the previous version #12908
Comments
I have reported this bug to Visual Studio issue tracker (https://developercommunity.visualstudio.com/content/problem/1256227/cannot-run-uwp-application-because-vs-cannot-unins.html). I think that this is NOT a Xamarin.Forms issue. I have tried different versions of XF that worked well in the past and there were no change. I believe that the problem was caused either by Visual Studio update, or Windows update. One of them deleted XML file for my application in C:\ProgramData\Microsoft\Windows\AppRepository. Without this file, Windows refuse to uninstall the application so I cannot deploy its new version in VS. Similar error messages when uninstalling UWP app are mentioned on various sites. Some of them (such as https://www.jriach.co.uk/repair-windows-10-apps/) recommend creating the XML file in C:\ProgramData\Microsoft\Windows\AppRepository manually. However, I cannot write into this folder ieven when I run PowerShell as administrator so, as a last resort, I reinstalled the whole Windows system. Now everything seems to work again. A few things happened just before the problem appeared: I have downgraded from XF 5.0.0. pre-3 to the latest stable XF 4.8, Visual Studio upgraded to 16.8 and Windows Update installed a major release (1909, but I am not 100% sure). One of them caused the bug. |
Running an app in Release mode is not a necessity for publishing succesfully to the Windows Store. After you've tested a Debug compilation, you might just want to upload |
@SymboLinker I am using package flights regularly to test each new version before releasing it to the public. I did not know that I could also publish a debug version. I have always used release versions. Unfortunately, this does not solve my problem because this application has already been published a few months ago and a few hundred people downloaded it so I should be able to create also release build not only the debug one. I was surprised that everything worked well for months and suddenly, after some update, I was not able to run release version of my app on my computer any more because VS could not uninstall the previous version of this app. I used a drastic solution - I reinstalled everything (Windows, Visual Studio, etc.). Now everything works again. So it is solved for me but I still think that Windows and Visual Studio teams should investigate how this could happen. Reinstalling Windows is not very comfortable solution. |
I am sorry, I was not clear with "After you've tested a Debug compilation, you might just want to upload it to (...)". What I meant to say was, that after testing a debug compilation, you might just want to upload the Release compilation, even if you cannot start it locally. Also, side-by-side installations may be possible by modifying the Identity section inside of the Package.appxmanifest file:
|
This issue has been moved from a ticket on Developer Community.
[severity:I'm unable to use this version]
When I press F5 in my UWP application (Xamarin.Forms), it does not start anymore. Visual Studio shows confirmation that it must uninstall the previous version. When I confirm this, the uninstall fails. The app worked well before. I have updated Visual Studio and Windows recently. The deployment output is:
I tried to uninstall the application manually in Windows but it fails with error code 0x80073cfa.
I have also tried to uninstall the application from PowerShell and it also failed with the following error:
A funny thing is that the error "Operace byla dokončena úspěšně" means ""Operation completed successfully". I have tried to delete all bin and obj folders, clean solution, restore nugets, rebuild the solution. Nothing helps.
Original Comments
Feedback Bot on 11/16/2020, 10:18 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
pavel.holecek on 11/16/2020, 07:32 PM:
Update: I have tried following:
I still cannot run the application in the release mode or publish new release :-(. I have tried usual clean, rebuild, etc. Nothing helps :-(. This bug is really frustrating.
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: