PackageManager Staging calls fail with ACCESS DENIED if made from inside a container. #2436
Labels
Pri2
Topic is in the second 25% of page views for the repo.
uwp/prod
Topic product is UWP-related.
winrt-reference/tech
Topic technology is WinRT-related.
The PackageManager functions to StageInPlace will all fail with an AccessDenied exception, if made by a process that is itself running in a container. The same code run unpackaged will succeed, but hey - we all want us writing modern code, right??? It took 3 weeks to figure out that this was the cause.
To be clear, this is code in a package that is trying to add a different package using AppAttach style attachment of a CIMfs package (not a package trying to update itself).
At a minimum the documentation on the following items should reflect this restriction (but it sure would be nice if the code just handled it).
StagePackageAsync(all flavors)
StagePackageByUriAsync()
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: