Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > admin permissions - manifest fail
 

admin permissions - manifest fail

Hello,

I try to make my app require admin permissions on vista, so in my C# app.manifest I do:
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

But than at compile I get this error:
Error 50 ClickOnce does not support the request execution level 'requireAdministrator'.


Please help
GVNPublic123  Tuesday, June 23, 2009 8:35 PM

Hi GVNPublic123,

From my experience, requireAdministrator is not accepted by ClickOnce, you can use asInvoker instead.

You can get more information via this link:
http://msdn.microsoft.com/en-us/library/bb383802.aspx.

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Thursday, June 25, 2009 6:45 AM

Hi GVNPublic123,

From my experience, requireAdministrator is not accepted by ClickOnce, you can use asInvoker instead.

You can get more information via this link:
http://msdn.microsoft.com/en-us/library/bb383802.aspx.

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Thursday, June 25, 2009 6:45 AM

You can use google to search for other answers

Custom Search

More Threads

• Changing the ClickOnce update lication at runtime
• Two setup project related questions
• ClickOnce Install Error
• Shortcuts could not be removed. Try again later
• IE Print Background Activate
• Changing connection properties on Deploy...
• Create a Strong Name for Com DLL so ClickOnce will work
• Running the program in background
• How to call APIs (that requires Admin privilege) from Standard User
• Prerequisites on Network Drive