Skip to content
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

PackageManager Staging calls fail with ACCESS DENIED if made from inside a container. #2436

Open
TimMangan opened this issue Dec 16, 2023 · 0 comments
Assignees
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.

Comments

@TimMangan
Copy link

TimMangan commented Dec 16, 2023

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.

@issues-automation issues-automation bot added 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. labels Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants