开发者

Granting ClickOnce System.Web.AspNetHostingPermission permission?

开发者 https://www.devze.com 2023-02-05 21:41 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消