Share via


Visual Studio 2017: This task requires the application to have elevated permissions

Introduction

In this article, we will be fixing the below Visual Studio 2017 Compatibility Issue.

This task requires the application to have elevated permissions.

https://gallery.technet.microsoft.com/site/view/file/181555/1/This%20%20%20task%20requires%20the%20application%20to%20have%20elevated%20%20%20permissions.png


Scenario

Although we have administrator role on the server, we can't create a new SharePoint Project via Visual Studio 2017, we got the below error:
  

This task requires the application to have elevated permissions.

https://gallery.technet.microsoft.com/site/view/file/181556/1/This%20%20%20task%20requires%20the%20application%20to%20have%20elevated%20%20%20permissions.gif


Cause

It's a known compatibility issue that occurs when the current user doesn't have administrative privilege to use Visual Studio.


Solution

You have three different methods to overcome this issue:

  1. Run Visual Studio As Administrator.
  2. Troubleshoot Compatibility.
  3. Adjust Compatibility Settings.

(Method 1) Run Visual Studio As Administrator

You can easily run the Visual Studio as Administrator by right clicking on Visual Studio and Select Run as Administrator option.

https://gallery.technet.microsoft.com/site/view/file/181557/1/Run%20%20%20Visual%20Studio%202017%20As%20Administrator.png

Although it's an easy way to overcome this compatibility issue, it requires doing the same action every time you run the Visual Studio!


(Method 2) Troubleshoot Compatibility

This method is a permanent solution to this issue. 

  • Right-click Visual Studio 2017 > Select Open file location option.
  • Again, Right-click Visual Studio 2017 Shortcut > Select Troubleshoot Compatibility to run the Program Compatibility Troubleshooter
  • Click Troubleshoot program.
  • Check the program requires additional permissions > Next.
  • Click Test the Program to perform a quick test with the new assigned setting on the Visual Studio.
  • Wait for a little until the Visual Studio 2017 opens.
    • Try to create a new project that should be now created without any compatibility issue.
  •  Now click Next > then select 'Yes, save these settings for this program'.
  • Wait for a little for resolving the issue permanently and show that the Issue is fixed > then click close.

https://gallery.technet.microsoft.com/site/view/file/181558/1/Troubleshoo%20%20t%20Compatibility%20-%20This%20task%20requires%20the%20application%20to%20%20%20have%20elevated%20permissions.gif


(Method 3) Adjust Compatibility Settings

  • Right-click Visual Studio 2017 > Select Open file location option.
  • Right-click Visual Studio 2017 shortcut > Select Properties.
  • Click Compatibility Tab > Check Run this program as an Administrator.
    • You can also adjust the settings for all users by clicking on the change settings for all users > check Run as Administrator.

https://gallery.technet.microsoft.com/site/view/file/181559/1/Adjust%20%20%20Compatibility%20Settings.gif

Sometimes, you may not find the Compatibility tab. so, you should do the following:

  • Click Shortcut tab > Advanced > Check Run as Administrator.

https://gallery.technet.microsoft.com/site/view/file/181560/1/Compatibili%20%20ty%20Settings.gif


Applies To

  • Visual Studio 2017.
  • Visual Studio 2015.
  • Visual Studio 2013.
  • Visual Studio 2010.

Conclusion

In this article, we have solved the "This task requires the application to have elevated permissions" compatibility issue.

Reference

Visual Studio requires the application to have elevated permissions.

See Also


Back to Top