-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After updating Windows 10, Windows can no longer manage any appx packages, and I can't deploy WinUI 3 apps from VS #4881
Comments
Can confirm. All our devs with win10 22H2 19045.5131, 19045.5011 machines faced with this issue. No problems for devs with win11 23H2 and above. Just quick note, I think Visual Studio update is not the reason of this issue. We faced it on VS 17.9.7. Related .NET MAUI topic: |
We experienced the same issue and identified Windows update KB5046613 as the cause. |
Uninstalling KB5046613 does not help |
Every time. "I think I'll update some packages. I may as well update VS while I'm at it. Oh, it suggests a restart. Ah, Windows wants to update during the restart." ~ "I wonder how much time & money this is going to cost me." Only "solution" I've found is a clean install, which isn't a solution at all. Maybe now that millions are impacted Microsoft will throw together some sort of fix... |
Same problem here, how you "clean install" ? i am noobie in C# development. Do you click "Clean Solution" and Rebuild ? |
@S4nt1ag0 clean install the whole OS. while im at it, im installing win11. it seems that win10 is really dying already. |
#MeToo right after Windows update. |
I had this issue with .NET 8 and Windows 10 22H2 19060.1000.0. Upgrading to Windows 11 was unfortunately the only thing that worked. |
I'm currently having this issue on Win10 22H2 builds |
@subratb That looks like a different issue, and it is a month old. This one is brand new this week. |
Experiencing the same here. Pretty much dead in the water until a fix is released. All development has been blocked. |
@StevoSM You can just stick this in your csproj files to make them unpackaged until a fix is available - unless they require something only packages support.
|
@johnt-star You need to change your configuration selection to Unpackaged. |
Thanks kmgallahan! I no longer get the deployment error dialog after changing to Unpackaged. Unfortunately after upgrading Visual Studio to the latest version, updating nuget packages where appropriate and installing .Net 9, I am now getting exceptions for things that use to work. At least I can see what has changed and hopefully resolve them in order to get my app running again. Appreciate the help! |
One thing I had to do was add this to resolve some ref issues: <OutputPath>$(SolutionDir)bin\$(Configuration)\</OutputPath> |
There was an issue in the WinAppSDK 1.6.2 release which affected Windows 10 version 19045 machines. The 1.6.2 release has been pulled to prevent more machines being impacted. This issue was not caused by an update to Windows and will not be fixed by uninstalling any Windows Cumulative Updates. There is an upcoming Windows Update which will fix this issue (adding extra safety in Windows), and a release of WinAppSDK 1.6.3 is coming soon with a fix. Machines in a bad state can also be manually fixed by running these steps:
If you have an app project referencing the Investigations are continuing and we'll provide further updates when available. |
@codendone Thanks for the update. I don't know how helpful this might be, but we are only on WinAppSDK 1.4 and are experiencing the issue. We have not yet updated to 1.6 at all. In our environment, it must be the result of a Windows update or possibly that combined with a Visual Studio 2022 update. |
@StevoSM There must be a different app on the system which is using 1.6. Running |
@codendone Apparently so. Your command revealed 3 results, 2 of which matched the problematic version. I went through your suggestion above and, well, it worked and we're back in business! Thanks so much for your hard work on this and posting those steps! |
@codendone
What now? |
@Balkoth , |
@codendone,
|
@Balkoth, this "Remote Procedure Call Failed" error comes from another issue causing AppxSvc crashes during package removal, which was fixed starting the optional update end of October (https://learn.microsoft.com/en-us/windows/release-health/resolved-issues-windows-10-22h2#3421msgdesc). Best would be to deploy the cumulative update from November 2024 (https://support.microsoft.com/en-us/topic/november-12-2024-kb5046613-os-builds-19044-5131-and-19045-5131-44e6c27e-e188-4dd5-8ad2-edde2e235c01). |
It doesn't work for self-contained WASDK apps. |
Luego de muchos intentos, instalé esto https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads y todo volvió a la normalidad |
When attempting to run the second group of commands, each one would error out in the style of
After doing some digging, I found this command to force the loading of the module in powershell form
Which allowed the commands to run happily. |
Thank you. Winget stopped working today after working yesterday. I did step one and Winget now works. |
For non-english localized systems the SID can be used:
|
After I ran' |
Has anyone had experience with this workaround for self-contained WASDK (not self-contained .net) apps? I've got a few end users with this issue. Will get them to run the work-around, but not sure if it'll fix anything in my case. |
A simpler solution to fix a machine in a bad state is to run the WinAppSDK 1.6.3 installer multiple times. The installer is available at Latest downloads for the Windows App SDK - Windows apps | Microsoft Learn, with this as right installer for most machines: Run that installer, which will fail the first time it is run. Run it again which usually succeeds. If necessary, run it again until it succeeds. We're continuing work on a better fix for broken machines and will provide an update when available. |
Thank you SOOOOOO much @codendone , this work great !!!!! |
Thank you. This was the only thing that worked. |
Does not work for me using Windows 11. Deploy box still grayed out in VS. Tried to install multiple times, got this return.
|
I had problems deleting this file. It turned about to be because it was in use. That was fixed by stopping the service first:
|
I can confirm the 1.6.3 does remove the 0x80073CFA error. It does however cause related issues. I cannot re-install Windows Terminal or winget as I am told I already have a newer version. I suspect that these are built as self contained bundles and the bundles then need to be updated with a later version of the SDK. But I cannot confirm this. See microsoft/winget-cli/issues/4991 and microsoft/terminal/issues/18237. So this seems to be related fallout. It would be nice if we could get confirmation if it would help these issues if they create new builds using the 1.6.3 SDK redistributable? |
You’ve saved us (admins) so much time, stress, and nerves! @codendone Out of two official tickets I raised with MS, only one was resolved, and that with a laughable, useless solution. If we had to rely on them, I don’t even want to think about the chaos we’d be dealing with in the company right now. From the information I’m receiving (as of today, 22.11.2024, 10:00 UTC+1), yet another company in our country is struggling with the same issue. How is it even possible that MS leaves companies to deal with this on their own? We spent countless man-days working on a solution, since last week ! First problems occurs 13.11.2024 Once again, thank you @codendone for this fix (you should get at least $100k from MS for it! 😊). |
This is actually an easy RTFM fix. Both issues have been resolved (for me) using |
Microsoft released a patch OS update for Windows 10 with the fix for the install / uninstall issue. Users might be unable to update or uninstall packaged apps on Windows 10 Updating the OS to the Below optional update will allow the user to uninstall in case if the corrupted version of the app is there. in certain cases, it automatically removes the corrupted app. allowing us to do a fresh install of the app again. |
This discussion post is now available with the summary of the situation and recommended resolutions: #4913. Any further updates will be posted there. |
I just updated
Visual Studio to 17.13.0 Preview 1 andWindows to 19045.5131.Now Visual Studio can no longer deploy WinUI 3 apps, I can't uninstall any apps, the Microsoft Store can't update any apps, and trying a different account also results in the Store malfunctioning.
It seems Windows has lost its ability to manage packages.
@DrusTheAxe From what I've seen you are an expert in this area. Any suggestions for how to approach this?
VS error is:
The text was updated successfully, but these errors were encountered: