I'm having issues with the above permission not being set. The .NET Clic开发者_C百科kOnce deployment has been set as full trust. How can I ensure this permission is available - I thought it would be since it is full trust??
Is this possible? (The app works fine when running on desktop, just not through clickonce)
Thanks, Ross.
Full trust does not mean administrative privileges. ClickOnce applications will not run with elevated privileges. So the question is would a user with no administrative privileges have that permission?
You can start a process that prompts for elevation, but you can't prompt for elevation successfully in a ClickOnce app. What I mean is if there's something specific that you are using that permission for, make a separate exe for it, and have the ClickOnce application do a process.start on it. Windows will prompt for elevation if needed, and then run it.
精彩评论