-
Notifications
You must be signed in to change notification settings - Fork 325
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). |
This is an enterprise managed device where i have no control over windows updates... @kimpel70 It does not help to execute the lines once at a time, i already tried that. |
The really big problem is that existing app installations that are used productively can no longer be started by customers. |
@codendone we have a number of people at our company (including one of my machines) that have this. We do not have local admin rights, so I can't run the script steps you posted above. Btw, for us it is an Maui MSIX installed via Software Center, not the windows store. When the SDK 1.6.3 comes out, will it "fix" broken machines, or will all affected users have to run your steps above ? Thanks, |
WinAppSDK 1.6.3 is now available, providing access to the improvements in 1.6.2 minus the issue. This release does not fix any machine which is already in the bad state. We're working on a better way to fix broken machines and will provide an update when available. |
In our case this issue happens not only to WinAppSDK applications, but when installing/uninstalling UWP applications as well. Trying to uninstall a UWP application we got 0x80073CFA error. Trying to install the same app we got "Remote Procedure Call Failed" error. We were facing this issue after applying KB5046613 update to win10 22H2. The problem occurs on the win 10 client machine, not on the dev machine. Development device is a win 11 pc in my case. |
First step worked for my Store Apps like WhatsApp, thank you. |
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. |
yes, how could it. |
Does not work for me using Windows 11. Deploy box still grayed out in VS. Tried to install multiple times, got this return.
|
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: