Why would this piece of WMI code fail to run if a console app is packaged and how to solve it? #100203
Unanswered
bogdan-patraucean
asked this question in
Q&A
Replies: 2 comments
-
There's probably nothing to do with .NET runtime. The packaged app process is not granted for enough permission. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Up |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
All I want to do is to count the system restore points, but this seems to be more difficult than I thought.
I have a WinAppSDK packaged app, and first I thought the issue was related to WinAppSDK, but as pointed by @DarranRowe in this discussion, seems it could be a problem with .NET runtime.
So, the console app, will run just fine and the code will execute elevated, but ones the console app is packaged using a C# application packaging project, it fails with the same error it fails in the WinAppSDK app:
System.Runtime.InteropServices.COMException (0x80040154)
What could be the cause of this error in a packaged app? Should I open an issue?
Beta Was this translation helpful? Give feedback.
All reactions