MSIX Add-AppxPackage not working after WindowsUpdate(KB5005033) installed

%3CLINGO-SUB%20id%3D%22lingo-sub-2650718%22%20slang%3D%22en-US%22%3EMSIX%20Add-AppxPackage%20not%20working%20after%20WindowsUpdate(KB5005033)%20installed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2650718%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EAdd-AppxPackage%20https%3A%2F%2Fmywebserver%2FMyApp.msix%0AAdd-AppxPackage%20%3A%20Deployment%20failed%20with%20HRESULT%3A%200x80073CF0%2C%20Package%20could%20not%20be%20opened.%0AError%200x80D05011%3A%20Opening%20the%20package%20from%20location%20MyApp.msix%20failed.%0AFor%20additional%20information%2C%20look%20for%20%5BActivityId%5D%207c6dcda0-9004-0002-04af-6e7c0490d701%20in%20the%20Event%20Log%20or%20use%20the%20command%20line%20Get-AppxLog%20-ActivityID%207c6dcda0-9004-0002-04af-6e7c0490d701%0AAt%20line%3A1%20char%3A1%0A%2B%20Add-AppxPackage%20https%3A%2F%2Fmywebserver%2FMyApp.msix%0A%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%0A%20%20%20%20%2B%20CategoryInfo%20%20%20%20%20%20%20%20%20%20%3A%20OpenError%3A%20(https%3A%2F%2Fmywebserver%2FMyApp.msix%3AString)%20%5BAdd-AppxPackage%5D%2C%20FileNotFoundExcept%0A%20%20%20ion%0A%20%20%20%20%2B%20FullyQualifiedErrorId%20%3A%20DeploymentError%2CMicrosoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Ethis%20is%20worked%20when%20I%20uninstalled%20WindowsUpdate(KB5005033)%20or%20change%20uri%20from%20webserver%20to%20local%20storage%20or%20change%20min%20version%20from%201903%20to%201803(from%20msix%20to%20appx)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20can%20install%20msix%20created%20in%20Visual%20Studio%20PackageProject%20before%20Windows%20Update.%3CBR%20%2F%3EBut%20can't%20install%20msix%20created%20in%20Visual%20Studio%20PackageProject%20after%20Windows%20Update.%3CBR%20%2F%3EI%20think%20the%20problem%20is%20with%20the%20issued%20msix%20after%20Windows%20Update.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEvent%20Viewer%20Logs%3C%2FP%3E%3CP%3Eerror%200x80D05011%20Could%20not%20open%20the%20package%20from%20CareDataCenter.msix%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-08-12%20145256.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F303402iAC87155C01A36AF9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-08-12%20145256.png%22%20alt%3D%22%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-08-12%20145256.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eerror%200x80070002%20Could%20not%20open%20the%20Msix%20vs%20package%20from%20CareDataCenter.msix.%3CBR%20%2F%3EMake%20sure%20you%20have%20Msixvc%20Support%20Services%20installed.%E2%80%83%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-08-12%20145314.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F303403i0BA34E1B11254711%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-08-12%20145314.png%22%20alt%3D%22%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-08-12%20145314.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Eerror%200x80D05011%3A%20Could%20not%20get%20staging%20session%20due%20to%20%3CA%20href%3D%22https%3A%2F%2Fmywebserver%2FCareDataCenter.msix%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fmywebserver%2FCareDataCenter.msix%3C%2FA%3E%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-08-12%20145334.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F303404i039A05C547665D1B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-08-12%20145334.png%22%20alt%3D%22%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-08-12%20145334.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAppX%20deployment%20operation%20failed%20(package%2C%20error%200x80073CF0).%20Error%20specific%20to%20this%20error%20Text%3A%20Error%200x80D05011%3A%20The%20package%20could%20not%20be%20opened%20from%20the%20location%20CareDataCenter.msix.%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-08-12%20145353.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F303405i7042CDB772CBD2AD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-08-12%20145353.png%22%20alt%3D%22%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-08-12%20145353.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E2%80%83%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20can%20access%20mywebserver%20from%20browser.%3CBR%20%2F%3Emywebserver%20not%20restrict%20access.%3C%2FP%3E%3CP%3EKB5005033%20change%20logs%20isn%60t%20written%20anything%20like%20that%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fja-jp%2Ftopic%2F2021-%25E5%25B9%25B4-8-%25E6%259C%2588-10-%25E6%2597%25A5-kb5005033-os-%25E3%2583%2593%25E3%2583%25AB%25E3%2583%2589-19041-1165-19042-1165-%25E3%2581%258A%25E3%2582%2588%25E3%2581%25B3-19043-1165-b4c77d08-435a-4833-b9f7-e092372079a4%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fja-jp%2Ftopic%2F2021-%25E5%25B9%25B4-8-%25E6%259C%2588-10-%25E6%2597%25A5-kb5005033-os-%25E3%2583%2593%25E3%2583%25AB%25E3%2583%2589-19041-1165-19042-1165-%25E3%2581%258A%25E3%2582%2588%25E3%2581%25B3-19043-1165-b4c77d08-435a-4833-b9f7-e092372079a4%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDifferential%20updates%20for%20MSIX%20app%20packages%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fdesktop%2Fmanaging-your-msix-deployment-update%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fdesktop%2Fmanaging-your-msix-deployment-update%3C%2FA%3E%3C%2FP%3E%3CP%3EIs%20there%20a%20problem%20with%20the%20difference%20update%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewindows%20%3A%2010.0.19043%3CBR%20%2F%3Evisual%20studio%20%3A%2016.11.0%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2651601%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Add-AppxPackage%20not%20working%20after%20WindowsUpdate(KB5005033)%20installed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2651601%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1129083%22%20target%3D%22_blank%22%3E%40ShinnosukeKubo0329%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20resolved%20when%20change%20from%20https%20to%20http%3C%2FP%3E%3CP%3EMy%20Web%20Server%20using%20%5BAzure%20Web%20App%5D%20and%20%5BApp%20Service%20Free%20Managed%20SSL%20Certificate%5D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EMay%20be%20a%20certificate%20issue%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmsrc.microsoft.com%2Fupdate-guide%2Fvulnerability%2FADV210003%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmsrc.microsoft.com%2Fupdate-guide%2Fvulnerability%2FADV210003%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

 

Add-AppxPackage https://mywebserver/MyApp.msix
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF0, Package could not be opened.
Error 0x80D05011: Opening the package from location MyApp.msix failed.
For additional information, look for [ActivityId] 7c6dcda0-9004-0002-04af-6e7c0490d701 in the Event Log or use the command line Get-AppxLog -ActivityID 7c6dcda0-9004-0002-04af-6e7c0490d701
At line:1 char:1
+ Add-AppxPackage https://mywebserver/MyApp.msix
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (https://mywebserver/MyApp.msix:String) [Add-AppxPackage], FileNotFoundExcept
   ion
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

 

this is worked when I uninstalled WindowsUpdate(KB5005033) or change uri from webserver to local storage or change min version from 1903 to 1803(from msix to appx)

 

I can install msix created in Visual Studio PackageProject before Windows Update.
But can't install msix created in Visual Studio PackageProject after Windows Update.
I think the problem is with the issued msix after Windows Update.

 

Event Viewer Logs

error 0x80D05011 Could not open the package from CareDataCenter.msix

スクリーンショット 2021-08-12 145256.png

 

error 0x80070002 Could not open the Msix vs package from CareDataCenter.msix.
Make sure you have Msixvc Support Services installed. 

スクリーンショット 2021-08-12 145314.png

 

 

error 0x80D05011: Could not get staging session due to https://mywebserver/CareDataCenter.msix

 

スクリーンショット 2021-08-12 145334.png

 

AppX deployment operation failed (package, error 0x80073CF0). Error specific to this error Text: Error 0x80D05011: The package could not be opened from the location CareDataCenter.msix.

 

スクリーンショット 2021-08-12 145353.png

I can access mywebserver from browser.
mywebserver not restrict access.

KB5005033 change logs isn`t written anything like that
https://support.microsoft.com/ja-jp/topic/2021-%E5%B9%B4-8-%E6%9C%88-10-%E6%97%A5-kb5005033-os-%E3%8...

 

Differential updates for MSIX app packages
https://docs.microsoft.com/en-us/windows/msix/desktop/managing-your-msix-deployment-update

Is there a problem with the difference update?

 

windows : 10.0.19043
visual studio : 16.11.0

 

Thank you

 

2 Replies

@ShinnosukeKubo0329 

 

I resolved when change from https to http

My Web Server using [Azure Web App] and [App Service Free Managed SSL Certificate]

 

May be a certificate issue

https://msrc.microsoft.com/update-guide/vulnerability/ADV210003

 

 

The problem was renaming the published Msix file.

Don't change it like this
"CareDataCenter.Package_1.0.0.0_x86_Debug.msix" to "CareDatacenter.msix".

This seems to happen when the url protcol is https or http.